@gv-tech/ui-web 2.29.0 → 2.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__contracts.d.ts +0 -1
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-Bd0-CZQn.js +1 -0
- package/dist/accordion-Cf6DNbLH.mjs +244 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +1 -1
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -2
- package/dist/{alert-dialog-BkUyJb_F.mjs → alert-dialog-BxFH0Lwn.mjs} +73 -75
- package/dist/alert-dialog-C6vNmGBL.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +1 -1
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -2
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +4 -5
- package/dist/{aspect-ratio-C7oBX-p_.mjs → aspect-ratio-CdQevcDV.mjs} +4 -6
- package/dist/aspect-ratio-Z4Nkc56X.js +1 -0
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +2 -2
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -2
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.d.ts +2 -2
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.mjs +5 -6
- package/dist/avatar-B5PWwGhY.mjs +136 -0
- package/dist/avatar-CFhYRM52.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +6 -7
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +3 -6
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.d.ts +1 -1
- package/dist/bubble.d.ts.map +1 -1
- package/dist/bubble.mjs +6 -7
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +4 -4
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +5 -7
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +5 -6
- package/dist/calendar-D5qgt2o2.js +1 -0
- package/dist/{calendar-CkHWa9Uu.mjs → calendar-DIqXNjOR.mjs} +732 -879
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -2
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +2 -3
- package/dist/carousel-D-xEqRCX.js +1 -0
- package/dist/{carousel-ynaeMNIV.mjs → carousel-DPjWmM_A.mjs} +15 -19
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +3 -3
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -2
- package/dist/chart.cjs +2 -2
- package/dist/chart.mjs +14 -15
- package/dist/{checkbox-BLvAEmRC.mjs → checkbox-DEPm1BBc.mjs} +70 -68
- package/dist/checkbox-DI9Hn_e_.js +1 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -2
- package/dist/chunk-HBS6WEDP-D2-yWzIN.js +1 -0
- package/dist/{chunk-HBS6WEDP-CzyhzCaP.mjs → chunk-HBS6WEDP-DD8ZmxRM.mjs} +3 -4
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +4 -4
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +8 -9
- package/dist/combobox-C4y8AbZX.mjs +5644 -0
- package/dist/combobox-boXp-mix.js +3 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -2
- package/dist/command-BnW6UIVk.js +1 -0
- package/dist/{command-DY6u8V0D.mjs → command-Cbsp7PBx.mjs} +121 -124
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -2
- package/dist/context-menu-CwsdFpx1.js +1 -0
- package/dist/{context-menu-tL6CY6a0.mjs → context-menu-FNgV55ZV.mjs} +137 -140
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +3 -4
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +1 -1
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +2 -3
- package/dist/dist-7YyzJonC.mjs +39 -0
- package/dist/dist-AlmToDtO.mjs +17 -0
- package/dist/{dist-DyMv0xk8.mjs → dist-B76UOZbx.mjs} +1 -2
- package/dist/{dist-BQhMregZ.mjs → dist-B7Ph9-T6.mjs} +2 -3
- package/dist/dist-B7jnFMko.js +1 -0
- package/dist/{dist-CS572Be42.mjs → dist-BOiFyvyS.mjs} +1 -2
- package/dist/dist-BQkDLAY7.js +1 -0
- package/dist/dist-Bal96K8t.js +1 -0
- package/dist/dist-Blgp9lfa.js +1 -0
- package/dist/{dist-Dg9ASyqI.mjs → dist-BnlI08Je.mjs} +4 -4
- package/dist/{dist-5r7hQmO0.mjs → dist-Bu-uFV1C.mjs} +60 -56
- package/dist/dist-C2BHd5i1.mjs +460 -0
- package/dist/{dist-8fYwoWd4.mjs → dist-C516Vwxy.mjs} +23 -18
- package/dist/dist-CBlqVBTk.js +1 -0
- package/dist/dist-CDcZ8WMF.js +1 -0
- package/dist/dist-CDksSmTD.mjs +189 -0
- package/dist/dist-CF-qVmmV.js +1 -0
- package/dist/dist-CIgGRTmJ.js +1 -0
- package/dist/dist-CJqVmdrU.js +1 -0
- package/dist/{dist-DMwCTE2i.mjs → dist-COqM3IM6.mjs} +3 -4
- package/dist/{dist-CYrqAnIr.mjs → dist-CbWpCWog.mjs} +13 -15
- package/dist/{dist-rx5WaFf5.mjs → dist-CcGLWbPa.mjs} +3 -4
- package/dist/dist-Cn4F8XlY.mjs +220 -0
- package/dist/dist-CoTs6T03.js +1 -0
- package/dist/dist-Co_xSt6d.js +1 -0
- package/dist/{dist-CBsYNwXz.mjs → dist-Cu0GG-3j.mjs} +2 -3
- package/dist/{dist-BUXpRW9O.mjs → dist-DKI-XYwI.mjs} +3 -5
- package/dist/dist-DQeXXRYL.mjs +201 -0
- package/dist/dist-DW2ltK5-.js +1 -0
- package/dist/dist-DWcKY_sJ.js +1 -0
- package/dist/dist-DdAeWIwf.js +1 -0
- package/dist/dist-DhubV_gU.mjs +4 -0
- package/dist/dist-DmY7elIQ.js +1 -0
- package/dist/{dist-Dm3IQk5b.mjs → dist-DoWtzxYc.mjs} +234 -235
- package/dist/dist-DuQlxGyN.js +1 -0
- package/dist/dist-KFF7QKuL.js +1 -0
- package/dist/dist-RXrZgzkO.js +1 -0
- package/dist/dist-R_G5UQRm.js +1 -0
- package/dist/dist-dwRwxUPt.mjs +22 -0
- package/dist/dist-fzmUl3YX.mjs +553 -0
- package/dist/{dist-ByW6RHeZ.mjs → dist-hBsne-A2.mjs} +24 -26
- package/dist/{dist-BIXhHahX.mjs → dist-ljiGYyay.mjs} +4 -5
- package/dist/dist-pqMcQ1Nk.js +1 -0
- package/dist/dist-zmnQp5Xf.js +1 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/dropdown-menu-ChuqZeix.js +1 -0
- package/dist/{dropdown-menu-BWqWoYis.mjs → dropdown-menu-DU7KNoXP.mjs} +131 -133
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -2
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +7 -7
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +3 -4
- package/dist/es2015-BooeZGhO.mjs +554 -0
- package/dist/es2015-Dggv0vx3.js +41 -0
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +12 -12
- package/dist/field.d.ts.map +1 -1
- package/dist/field.mjs +6 -8
- package/dist/{floating-ui.react-dom-CyupHsR6.mjs → floating-ui.react-dom-2hihjuTL.mjs} +12 -17
- package/dist/floating-ui.react-dom-BtFIezY4.js +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +19 -20
- package/dist/hooks/use-theme.d.ts +52 -52
- package/dist/hover-card-BeqCs_2R.js +1 -0
- package/dist/hover-card-w8PmCyw2.mjs +176 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +66 -66
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +3 -3
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +5 -11
- package/dist/{input-otp-m_BTudNY.mjs → input-otp-Bn_Uy1mR.mjs} +7 -18
- package/dist/input-otp-CTRB_0Xp.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +1 -1
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -2
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +2 -3
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +2 -2
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +7 -9
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/{label-DVA-YKpB.mjs → label-Da0kELfR.mjs} +4 -6
- package/dist/label-JMa1tFfC.js +1 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -2
- package/dist/marker.cjs +1 -1
- package/dist/marker.d.ts +1 -1
- package/dist/marker.d.ts.map +1 -1
- package/dist/marker.mjs +6 -7
- package/dist/menubar-B7sRxpE4.mjs +405 -0
- package/dist/menubar-Bd-QKMcw.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -2
- package/dist/{message-scroller-FwdKclRM.mjs → message-scroller-B8AU0v3Y.mjs} +83 -102
- package/dist/message-scroller-BJb4Mh_I.js +1 -0
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.d.ts +1 -1
- package/dist/message-scroller.d.ts.map +1 -1
- package/dist/message-scroller.mjs +1 -2
- package/dist/message.cjs +1 -1
- package/dist/message.d.ts.map +1 -1
- package/dist/message.mjs +2 -3
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/navigation-menu-B-RwfscB.mjs +638 -0
- package/dist/navigation-menu-kPwxYZCR.js +1 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +1 -1
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -2
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +5 -5
- package/dist/popover-Cq5cTNtC.js +1 -0
- package/dist/popover-T6Ra737i.mjs +241 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -2
- package/dist/{progress-ClcVCqjl.mjs → progress-e9YzxvRo.mjs} +15 -18
- package/dist/progress-iUSEI7J9.js +6 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +1 -1
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -2
- package/dist/{questionnaire-DKWcZeWT.mjs → questionnaire-BLCvUX1C.mjs} +153 -175
- package/dist/questionnaire-CcymIPae.js +1 -0
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.d.ts +1 -1
- package/dist/questionnaire.d.ts.map +1 -1
- package/dist/questionnaire.mjs +1 -2
- package/dist/{radio-group-5VwmCXRK.mjs → radio-group-BKpiDcIb.mjs} +76 -77
- package/dist/radio-group-DPEzCmxe.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-ByF0NmN9.mjs +2153 -0
- package/dist/resizable-oL3v42zT.js +1 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.mjs +1 -2
- package/dist/{chunk-BmowowmI.mjs → rolldown-runtime-D7yIeQp2.mjs} +2 -3
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/scroll-area-BzNeOQ6C.mjs +568 -0
- package/dist/scroll-area-s4_ZJK59.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +1 -1
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -2
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +13 -16
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +12 -13
- package/dist/select-B_nRxX2Y.mjs +831 -0
- package/dist/select-j5_dph9S.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -2
- package/dist/separator-Bn-3XUSJ.js +1 -0
- package/dist/separator-CCcMNS78.mjs +38 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +1 -1
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -2
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +1 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +3 -4
- package/dist/{sidebar-B5q6nH2G.mjs → sidebar-C2ax_A0G.mjs} +50 -52
- package/dist/sidebar-Cnem2n5A.js +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +1 -1
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/slider-B2PUTc7W.mjs +484 -0
- package/dist/slider-wZuXwuib.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +1 -1
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -2
- package/dist/sonner.d.ts +1 -1
- package/dist/sonner.mjs +1 -2
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +2 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +10 -7
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +21 -22
- package/dist/switch-CD675xU7.js +1 -0
- package/dist/{switch-DagjjAQu.mjs → switch-ikzIzrme.mjs} +66 -64
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -2
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +5 -10
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +6 -6
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +2 -3
- package/dist/{tabs-OQ6rj-3B.mjs → tabs-DCm5zOYB.mjs} +73 -73
- package/dist/tabs-fcahDQDp.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -2
- package/dist/text.cjs +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.d.ts.map +1 -1
- package/dist/text.mjs +17 -15
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-provider.mjs +1 -2
- package/dist/theme-toggle-BGTJsIA-.js +1 -0
- package/dist/{theme-toggle-BCcH-QtH.mjs → theme-toggle-BSMwXb8o.mjs} +29 -22
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast-C31v9P1K.js +1 -0
- package/dist/toast-vU5ISM03.mjs +445 -0
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts +1 -1
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.mjs +1 -2
- package/dist/toaster-CaJyOCyC.js +1 -0
- package/dist/{toaster-CKAJ9cht.mjs → toaster-D2BV6jez.mjs} +3 -5
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -2
- package/dist/toggle-CSZdCCwX.js +1 -0
- package/dist/{toggle-CuLxBIWH.mjs → toggle-Cv9YYwLI.mjs} +14 -15
- package/dist/toggle-group-RT8wyBwK.js +1 -0
- package/dist/toggle-group-qvjasXS-.mjs +166 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +1 -1
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.mjs +1 -2
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +1 -1
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -2
- package/dist/tooltip-7ERoN5mV.mjs +386 -0
- package/dist/tooltip-CC9_spXT.js +1 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -2
- package/dist/{utils-A_oVsYw5.mjs → utils-DQKc9joa.mjs} +1 -2
- package/package.json +18 -18
- package/src/__contracts.ts +318 -321
- package/src/accordion.tsx +1 -2
- package/src/alert-dialog.tsx +1 -2
- package/src/alert.tsx +3 -4
- package/src/aspect-ratio.tsx +1 -2
- package/src/attachment.tsx +8 -9
- package/src/avatar.tsx +1 -2
- package/src/badge.tsx +2 -3
- package/src/breadcrumb.tsx +1 -4
- package/src/bubble.tsx +7 -8
- package/src/button-group.tsx +2 -3
- package/src/button.tsx +3 -4
- package/src/calendar.tsx +8 -9
- package/src/card.tsx +1 -2
- package/src/carousel.tsx +9 -10
- package/src/checkbox.tsx +1 -2
- package/src/collapsible.tsx +1 -2
- package/src/combobox.tsx +6 -7
- package/src/command.tsx +1 -2
- package/src/context-menu.tsx +1 -2
- package/src/dialog.tsx +1 -2
- package/src/direction.tsx +1 -2
- package/src/drawer.tsx +1 -2
- package/src/dropdown-menu.tsx +1 -2
- package/src/empty.tsx +2 -3
- package/src/field.tsx +9 -11
- package/src/form.tsx +8 -8
- package/src/hooks/use-mobile.ts +1 -1
- package/src/hover-card.tsx +1 -2
- package/src/input-group.tsx +12 -21
- package/src/input-otp.tsx +5 -6
- package/src/input.tsx +1 -2
- package/src/item.tsx +10 -12
- package/src/kbd.tsx +1 -2
- package/src/label.tsx +1 -2
- package/src/marker.tsx +4 -5
- package/src/menubar.tsx +1 -2
- package/src/message-scroller.tsx +9 -10
- package/src/message.tsx +2 -3
- package/src/native-select.tsx +3 -4
- package/src/navigation-menu.tsx +2 -3
- package/src/pagination.tsx +5 -4
- package/src/popover.tsx +1 -2
- package/src/progress.tsx +1 -2
- package/src/questionnaire.tsx +6 -7
- package/src/scroll-area.tsx +1 -2
- package/src/scroll-to-top.tsx +7 -2
- package/src/search.tsx +2 -1
- package/src/select.tsx +1 -2
- package/src/separator.tsx +1 -2
- package/src/setupTests.ts +9 -9
- package/src/sheet.tsx +1 -2
- package/src/sidebar.tsx +15 -16
- package/src/skeleton.tsx +1 -2
- package/src/slider.tsx +1 -2
- package/src/spinner.tsx +8 -7
- package/src/support-fab.tsx +5 -1
- package/src/switch.tsx +1 -2
- package/src/table-of-contents.tsx +8 -11
- package/src/table.tsx +1 -2
- package/src/tabs.tsx +2 -3
- package/src/text.tsx +4 -4
- package/src/textarea.tsx +1 -2
- package/src/theme-provider.tsx +1 -1
- package/src/theme-toggle.tsx +26 -23
- package/src/toast.tsx +3 -4
- package/src/toaster.tsx +2 -1
- package/src/toggle-group.tsx +1 -2
- package/src/toggle.tsx +3 -4
- package/src/tooltip.tsx +1 -2
- package/dist/accordion-BgbjpZAF.js +0 -1
- package/dist/accordion-Bqt-y-u7.mjs +0 -239
- package/dist/alert-dialog-DonbkCSD.js +0 -1
- package/dist/aspect-ratio-X3HWxQz0.js +0 -1
- package/dist/avatar-DTkhTxt7.mjs +0 -133
- package/dist/avatar-DhvZbCtI.js +0 -1
- package/dist/calendar-Bo8kovKR.js +0 -1
- package/dist/carousel-Cv5isLeg.js +0 -1
- package/dist/checkbox-Dt06B4YW.js +0 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +0 -1
- package/dist/chunk-mLOUI7ql.js +0 -1
- package/dist/combobox-BB_YzCTY.js +0 -4
- package/dist/combobox-YxjYGUoe.mjs +0 -5748
- package/dist/command-BqO-CfH6.js +0 -1
- package/dist/context-menu-Dad9hs94.js +0 -1
- package/dist/dist-6c2NeKfz.mjs +0 -536
- package/dist/dist-9-j0_8D1.mjs +0 -34
- package/dist/dist-BMl8xXCH.mjs +0 -188
- package/dist/dist-BOKg7rhq.js +0 -1
- package/dist/dist-BPhn-EOy.mjs +0 -15
- package/dist/dist-BTN2t9yv.js +0 -1
- package/dist/dist-Bivv8B6p.mjs +0 -16
- package/dist/dist-BoNQb2nd.js +0 -1
- package/dist/dist-C83rnWRv.js +0 -1
- package/dist/dist-C8Pm6LRc.js +0 -1
- package/dist/dist-CGgemr2V.js +0 -1
- package/dist/dist-C_iFkwIX.js +0 -1
- package/dist/dist-CdBAkUWT.js +0 -1
- package/dist/dist-Cn7g8jD0.js +0 -1
- package/dist/dist-D7-Fky36.js +0 -1
- package/dist/dist-D7UHN1DJ.mjs +0 -5
- package/dist/dist-DOoZ3vGL.mjs +0 -407
- package/dist/dist-DYUvPCPC.js +0 -1
- package/dist/dist-DcRkoHAk.js +0 -1
- package/dist/dist-DfvK7DpO.mjs +0 -213
- package/dist/dist-Dj9s8AIv.js +0 -1
- package/dist/dist-NEeQKKDZ.js +0 -1
- package/dist/dist-N_70prl1.js +0 -1
- package/dist/dist-YAADIsyo.js +0 -1
- package/dist/dist-dMp9dzmY.mjs +0 -20
- package/dist/dist-mHQuNOH-.js +0 -1
- package/dist/dist-oyFh63Uq.js +0 -1
- package/dist/dist-v-Y6tnMq.js +0 -1
- package/dist/dist-v9094Auw.js +0 -1
- package/dist/dist-yA6iVq_M.js +0 -1
- package/dist/dropdown-menu-BpZcobmP.js +0 -1
- package/dist/es2015-CYxXY2oV.mjs +0 -727
- package/dist/es2015-t2RPC0Rg.js +0 -41
- package/dist/floating-ui.react-dom-BwFRxNGc.js +0 -1
- package/dist/hover-card-7NjGqlP0.js +0 -1
- package/dist/hover-card-DuRUptxQ.mjs +0 -176
- package/dist/input-otp-D9MwUsPO.js +0 -20
- package/dist/label-CgKiKHKG.js +0 -1
- package/dist/menubar-CyKBLHme.mjs +0 -405
- package/dist/menubar-DlOMZeh1.js +0 -1
- package/dist/message-scroller-DqLu0YI6.js +0 -1
- package/dist/navigation-menu-BzE1J1rs.mjs +0 -608
- package/dist/navigation-menu-CrR01R8Z.js +0 -1
- package/dist/popover-CFF_HXSf.mjs +0 -222
- package/dist/popover-D9pVy08c.js +0 -1
- package/dist/progress-nfJMuKGj.js +0 -6
- package/dist/questionnaire-PWClWvST.js +0 -1
- package/dist/radio-group-DhXnB0fI.js +0 -1
- package/dist/resizable-ChIqXiu4.js +0 -1
- package/dist/resizable-CpovHnG-.mjs +0 -1573
- package/dist/scroll-area-CUqjuvqH.js +0 -1
- package/dist/scroll-area-DstdIGvS.mjs +0 -539
- package/dist/select-CnCTQeh7.js +0 -1
- package/dist/select-CnHZdna2.mjs +0 -792
- package/dist/separator-BXaVJadH.js +0 -1
- package/dist/separator-D1a8myFf.mjs +0 -38
- package/dist/sidebar-ns_2TNBM.js +0 -1
- package/dist/slider-PoIV6N-u.js +0 -1
- package/dist/slider-ZnyQjYsS.mjs +0 -460
- package/dist/switch-DLY8PkmL.js +0 -1
- package/dist/tabs-QBWdNfSK.js +0 -1
- package/dist/theme-toggle-Q3UHstP_.js +0 -1
- package/dist/toast-BOdziIGg.mjs +0 -424
- package/dist/toast-D1fjLwO1.js +0 -1
- package/dist/toaster-DS9iODKU.js +0 -1
- package/dist/toggle-DtpvPox_.js +0 -1
- package/dist/toggle-group-DfkvPKU_.mjs +0 -164
- package/dist/toggle-group-UHY0Tip1.js +0 -1
- package/dist/tooltip-BbCL1gtU.mjs +0 -384
- package/dist/tooltip-BvpyStn2.js +0 -1
- /package/dist/{dist-DJqkhIXb2.js → dist-DJqkhIXb.js} +0 -0
package/dist/calendar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./calendar-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./calendar-D5qgt2o2.js");exports.Calendar=e.t,exports.CalendarDayButton=e.n;
|
package/dist/calendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { DayPicker, DayButton, Locale } from 'react-day-picker';
|
|
2
3
|
import { Button } from './button';
|
|
3
|
-
import { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
6
6
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
package/dist/calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAwB,KAAK,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAE,MAAM,EAAkB,MAAM,YAAY,CAAC;AAEpD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,MAAM,EACN,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC1C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAChE,qBAgHA;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,EACH,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,qBA8BvE;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;AAGvC,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,iBAAiB,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/calendar.mjs
CHANGED
package/dist/card.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");function i({className:e,size:n=`default`,...i}){return(0,r.jsx)(`div`,{"data-slot":`card`,"data-size":n,className:t.t(`group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,e),...i})}function a({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:t.t(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...n})}function o({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:t.t(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...n})}function s({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:t.t(`text-muted-foreground text-sm`,e),...n})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-action`,className:t.t(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:t.t(`px-(--card-spacing)`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:t.t(`bg-muted/50 flex items-center rounded-b-xl border-t p-(--card-spacing)`,e),...n})}exports.Card=i,exports.CardAction=c,exports.CardContent=l,exports.CardDescription=s,exports.CardFooter=u,exports.CardHeader=a,exports.CardTitle=o;
|
package/dist/card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,IAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CAAE,qBAYjH;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAE5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC;AAC7F,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,SAAS,aAAa,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/card.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./dist-
|
|
2
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/card.tsx
|
|
6
6
|
function n({ className: n, size: r = "default", ...i }) {
|
|
7
7
|
return /* @__PURE__ */ t("div", {
|
|
8
8
|
"data-slot": "card",
|
|
@@ -53,5 +53,4 @@ function c({ className: n, ...r }) {
|
|
|
53
53
|
...r
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { n as Card, o as CardAction, s as CardContent, a as CardDescription, c as CardFooter, r as CardHeader, i as CardTitle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./button.cjs");let r=require("lucide-react"),i=require("react");i=e.r(i);let a=require("react/jsx-runtime");function o(e){return Object.prototype.toString.call(e)===`[object Object]`}function s(e){return o(e)||Array.isArray(e)}function c(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function l(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!s(r)||!s(i)?r===i:l(r,i)})}function u(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function d(e,t){if(e.length!==t.length)return!1;let n=u(e),r=u(t);return n.every((e,t)=>{let n=r[t];return l(e,n)})}function f(e){return typeof e==`number`}function p(e){return typeof e==`string`}function m(e){return typeof e==`boolean`}function h(e){return Object.prototype.toString.call(e)===`[object Object]`}function g(e){return Math.abs(e)}function _(e){return Math.sign(e)}function v(e,t){return g(e-t)}function y(e,t){return e===0||t===0||g(e)<=g(t)?0:g(v(g(e),g(t))/e)}function b(e){return Math.round(e*100)/100}function x(e){return E(e).map(Number)}function S(e){return e[C(e)]}function C(e){return Math.max(0,e.length-1)}function w(e,t){return t===C(e)}function T(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function E(e){return Object.keys(e)}function D(e,t){return[e,t].reduce((e,t)=>(E(t).forEach(n=>{let r=e[n],i=t[n];e[n]=h(r)&&h(i)?D(r,i):i}),e),{})}function O(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function k(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return p(e)?n[e](r):e(t,r,i)}return{measure:o}}function A(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function j(e,t,n,r){let i=A(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function M(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function N(e=0,t=0){let n=g(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function ee(e,t,n){let{constrain:r}=N(0,e),i=e+1,a=o(t);function o(e){return n?g((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return ee(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function te(e,t,n,r,i,a,o,s,c,l,u,d,f,p,h,b,x,S,C){let{cross:w,direction:T}=e,E=[`INPUT`,`SELECT`,`TEXTAREA`],D={passive:!1},k=A(),j=A(),M=N(50,225).constrain(p.measure(20)),ee={mouse:300,touch:400},te={mouse:500,touch:600},ne=h?43:25,P=!1,F=0,I=0,L=!1,R=!1,z=!1,B=!1;function re(e){if(!C)return;function n(t){(m(C)||C(e,t))&&ce(t)}let r=t;k.add(r,`dragstart`,e=>e.preventDefault(),D).add(r,`touchmove`,()=>void 0,D).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,U).add(r,`contextmenu`,U).add(r,`click`,le,!0)}function ie(){k.clear(),j.clear()}function ae(){let e=B?n:t;j.add(e,`touchmove`,H,D).add(e,`touchend`,U).add(e,`mousemove`,H,D).add(e,`mouseup`,U)}function oe(e){let t=e.nodeName||``;return E.includes(t)}function V(){return(h?te:ee)[B?`mouse`:`touch`]}function se(e,t){let n=d.add(_(e)*-1),r=u.byDistance(e,!h).distance;return h||g(e)<M?r:x&&t?r*.5:u.byIndex(n.get(),0).distance}function ce(e){let t=O(e,r);B=t,z=h&&t&&!e.buttons&&P,P=v(i.get(),o.get())>=2,t&&e.button!==0||oe(e.target)||(L=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),ae(),F=a.readPoint(e),I=a.readPoint(e,w),f.emit(`pointerDown`))}function H(e){if(!O(e,r)&&e.touches.length>=2)return U(e);let t=a.readPoint(e),n=a.readPoint(e,w),o=v(t,F),c=v(n,I);if(!R&&!B&&(!e.cancelable||(R=o>c,!R)))return U(e);let u=a.pointerMove(e);o>b&&(z=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(T(u)),e.preventDefault()}function U(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*V(),r=se(T(n),t),i=y(n,r),o=ne-10*i,s=S+i/50;R=!1,L=!1,j.clear(),l.useDuration(o).useFriction(s),c.distance(r,!h),B=!1,f.emit(`pointerUp`)}function le(e){z&&=(e.stopPropagation(),e.preventDefault(),!1)}function ue(){return L}return{init:re,destroy:ie,pointerDown:ue}}function ne(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(O(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&g(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function P(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function F(e){function t(t){return t/100*e}return{measure:t}}function I(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(g(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(m(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function h(){d=!0,c&&c.disconnect()}return{init:p,destroy:h}}function L(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=_(a),d=u,C}function p(){return g(r.get()-t.get())<.001}function m(){return c}function h(){return s}function v(){return o}function y(){return x(i)}function b(){return S(a)}function x(e){return c=e,C}function S(e){return l=e,C}let C={direction:h,duration:m,velocity:v,seek:f,settled:p,useBaseFriction:b,useBaseDuration:y,useFriction:S,useDuration:x};return C}function R(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=N(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=g(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&g(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function z(e,t,n,r,i){let a=N(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return v(e,t)<=1}function u(){let e=o[0],t=S(o);return N(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=w(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function B(e,t,n){let r=t[0];return{limit:N(n?r-e:S(t),r)}}function re(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=N(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1&&a(n.get())}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function ie(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function ae(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>S(e)[o]-e[0][a]).map(g)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-g(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function oe(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=w(n,t);return r?T(S(n[0])+1):i?T(C(a)-S(n)[0]+1,S(n)[0]):e})}return{slideRegistry:l}}function V(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>g(e)-g(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>g(e.diff)-g(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>_(e)===r);return a.length?c(a):S(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function se(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function ce(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function p(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));f(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(m(s)||s(u,e))&&p(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function H(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return f(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function U(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=b(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function le(e,t,n,r,i,a,o,s,c){let l=.5,u=x(i),d=x(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:H(-1),translate:U(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){let e=t-o[0]-1;return g(m(u,e),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function S(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:S,loop:b,loopPoints:f}}function ue(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(m(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function de(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return E(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function fe(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=_();function m(){if(!l)return 0;let e=n[0];return g(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(S(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function _(){return n.map((e,t,n)=>{let r=!t,i=w(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(g)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function pe(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,p=f(n);function m(e,t){return x(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function h(e){return e.length?x(e).reduce((n,f,p)=>{let m=S(n)||0,h=m===0,_=f===C(e),v=i[l]-a[m][l],y=i[l]-a[f][u],b=!r&&h?d(o):0,x=g(y-(!r&&_?d(s):0)-(v+b));return p&&x>t+c&&n.push(f),_&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function _(e){return p?m(e,n):h(e)}return{groupSlides:_}}function W(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:w,watchFocus:T}=a,E=P(),D=E.measure(t),O=n.map(E.measure),N=M(c,l),W=N.measureSize(D),me=F(W),he=k(s,W),ge=!d&&!!v,{slideSizes:_e,slideSizesWithGaps:G,startGap:ve,endGap:ye}=fe(N,D,O,n,d||!!v,i),K=pe(N,W,g,d,D,O,ve,ye,2),{snaps:be,snapsAligned:xe}=ae(N,he,D,O,K),q=-S(be)+S(G),{snapsContained:Se,scrollContainLimit:Ce}=z(W,q,xe,v,2),J=ge?Se:xe,{limit:Y}=B(q,J,d),X=ee(C(J),u,d),we=X.clone(),Te=x(n),Ee=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},De=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},Oe=j(r,i,()=>Ee(Be),e=>De(Be,e)),ke=.68,Ae=J[X.get()],je=H(Ae),Me=H(Ae),Z=H(Ae),Q=H(Ae),$=L(je,Z,Me,Q,f,ke),Ne=V(d,J,q,Y,Q),Pe=se(Oe,X,we,$,Ne,Q,o),Fe=ie(Y),Ie=A(),Le=de(t,n,o,h),{slideRegistry:Re}=oe(ge,v,J,Ce,K,Te),ze=ce(e,n,Re,Pe,$,Ie,o,T),Be={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:D,slideRects:O,animation:Oe,axis:N,dragHandler:te(N,e,r,i,Q,ne(N,i),je,Oe,Pe,$,Ne,X,o,me,p,m,_,ke,w),eventStore:Ie,percentOfView:me,index:X,indexPrevious:we,limit:Y,location:je,offsetLocation:Z,previousLocation:Me,options:a,resizeHandler:I(t,o,i,n,N,y,E),scrollBody:$,scrollBounds:R(Y,Z,Q,$,me),scrollLooper:re(q,Y,Z,[je,Z,Me,Q]),scrollProgress:Fe,scrollSnapList:J.map(Fe.get),scrollSnaps:J,scrollTarget:Ne,scrollTo:Pe,slideLooper:le(N,W,q,_e,G,be,J,Z,n),slideFocus:ze,slidesHandler:ue(t,o,b),slidesInView:Le,slideIndexes:Te,slideRegistry:Re,slidesToScroll:K,target:Q,translate:U(N,t)};return Be}function me(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var he={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function ge(e){function t(e,t){return D(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,E(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>E(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function _e(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function G(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=ge(i),o=_e(a),s=A(),c=me(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:m,emit:h}=c,g=O,_=!1,v,y=l(he,G.globalOptions),b=l(y),x=[],S,C,w;function T(){let{container:t,slides:n}=b;C=(p(t)?e.querySelector(t):t)||e.children[0];let r=p(n)?C.querySelectorAll(n):n;w=[].slice.call(r||C.children)}function E(t){let n=W(e,C,w,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?E(Object.assign({},t,{loop:!1})):n}function D(e,t){_||(y=l(y,e),b=u(y),x=t||x,T(),v=E(b),d([y,...x.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,O)),b.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(V),v.eventHandler.init(V),v.resizeHandler.init(V),v.slidesHandler.init(V),v.options.loop&&v.slideLooper.loop(),C.offsetParent&&w.length&&v.dragHandler.init(V),S=o.init(V,x)))}function O(e,t){let n=I();k(),D(l({startIndex:n},e),t),c.emit(`reInit`)}function k(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),s.clear()}function j(){_||(_=!0,s.clear(),k(),c.emit(`destroy`),c.clear())}function M(e,t,n){b.active&&!_&&(v.scrollBody.useBaseFriction().useDuration(t===!0?0:b.duration),v.scrollTo.index(e,n||0))}function N(e){M(v.index.add(1).get(),e,-1)}function ee(e){M(v.index.add(-1).get(),e,1)}function te(){return v.index.add(1).get()!==I()}function ne(){return v.index.add(-1).get()!==I()}function P(){return v.scrollSnapList}function F(){return v.scrollProgress.get(v.offsetLocation.get())}function I(){return v.index.get()}function L(){return v.indexPrevious.get()}function R(){return v.slidesInView.get()}function z(){return v.slidesInView.get(!1)}function B(){return S}function re(){return v}function ie(){return e}function ae(){return C}function oe(){return w}let V={canScrollNext:te,canScrollPrev:ne,containerNode:ae,internalEngine:re,destroy:j,off:m,on:f,emit:h,plugins:B,previousScrollSnap:L,reInit:g,rootNode:ie,scrollNext:N,scrollPrev:ee,scrollProgress:F,scrollSnapList:P,scrollTo:M,selectedScrollSnap:I,slideNodes:oe,slidesInView:R,slidesNotInView:z};return D(t,n),setTimeout(()=>c.emit(`init`),0),V}G.globalOptions=void 0;function ve(e={},t=[]){let n=(0,i.useRef)(e),r=(0,i.useRef)(t),[a,o]=(0,i.useState)(),[s,u]=(0,i.useState)(),f=(0,i.useCallback)(()=>{a&&a.reInit(n.current,r.current)},[a]);return(0,i.useEffect)(()=>{l(n.current,e)||(n.current=e,f())},[e,f]),(0,i.useEffect)(()=>{d(r.current,t)||(r.current=t,f())},[t,f]),(0,i.useEffect)(()=>{if(c()&&s){G.globalOptions=ve.globalOptions;let e=G(s,n.current,r.current);return o(e),()=>e.destroy()}o(void 0)},[s,o]),[u,a]}ve.globalOptions=void 0;var ye=i.createContext(null);function K(){let e=i.useContext(ye);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function be({orientation:e=`horizontal`,opts:n,setApi:r,plugins:o,className:s,children:c,...l}){let[u,d]=ve({...n,axis:e===`horizontal`?`x`:`y`},o),[f,p]=i.useState(!1),[m,h]=i.useState(!1),g=i.useCallback(e=>{e&&(p(e.canScrollPrev()),h(e.canScrollNext()))},[]),_=i.useCallback(()=>{d?.scrollPrev()},[d]),v=i.useCallback(()=>{d?.scrollNext()},[d]),y=i.useCallback(e=>{e.key===`ArrowLeft`?(e.preventDefault(),_()):e.key===`ArrowRight`&&(e.preventDefault(),v())},[_,v]);return i.useEffect(()=>{d&&r&&r(d)},[d,r]),i.useEffect(()=>{if(d)return g(d),d.on(`reInit`,g),d.on(`select`,g),()=>{d?.off(`select`,g)}},[d,g]),(0,a.jsx)(ye.Provider,{value:{carouselRef:u,api:d,opts:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:_,scrollNext:v,canScrollPrev:f,canScrollNext:m},children:(0,a.jsx)(`section`,{onKeyDownCapture:y,className:t.t(`relative`,s),"aria-roledescription":`carousel`,"data-slot":`carousel`,...l,children:c})})}function xe({className:e,...n}){let{carouselRef:r,orientation:i}=K();return(0,a.jsx)(`div`,{ref:r,className:`overflow-hidden`,"data-slot":`carousel-content`,children:(0,a.jsx)(`div`,{className:t.t(`flex`,i===`horizontal`?`-ms-4`:`-mt-4 flex-col`,e),...n})})}function q({className:e,...n}){let{orientation:r}=K();return(0,a.jsx)(`fieldset`,{"aria-roledescription":`slide`,"data-slot":`carousel-item`,className:t.t(`min-w-0 shrink-0 grow-0 basis-full`,r===`horizontal`?`ps-4`:`pt-4`,e),...n})}function Se({className:e,variant:i=`outline`,size:o=`icon-sm`,...s}){let{orientation:c,scrollPrev:l,canScrollPrev:u}=K();return(0,a.jsxs)(n.Button,{"data-slot":`carousel-previous`,variant:i,size:o,className:t.t(`absolute touch-manipulation rounded-full`,c===`horizontal`?`inset-y-0 -start-12 my-auto`:`start-1/2 -top-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2`,e),disabled:!u,onClick:l,...s,children:[(0,a.jsx)(r.ChevronLeftIcon,{className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Previous slide`})]})}function Ce({className:e,variant:i=`outline`,size:o=`icon-sm`,...s}){let{orientation:c,scrollNext:l,canScrollNext:u}=K();return(0,a.jsxs)(n.Button,{"data-slot":`carousel-next`,variant:i,size:o,className:t.t(`absolute touch-manipulation rounded-full`,c===`horizontal`?`inset-y-0 -end-12 my-auto`:`start-1/2 -bottom-12 -translate-x-1/2 rotate-90 rtl:translate-x-1/2`,e),disabled:!u,onClick:l,...s,children:[(0,a.jsx)(r.ChevronRightIcon,{className:`rtl:rotate-180`}),(0,a.jsx)(`span`,{className:`sr-only`,children:`Next slide`})]})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return be}});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as e } from "./dist-
|
|
1
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
2
|
import { Button as t } from "./button.mjs";
|
|
3
3
|
import { ChevronLeftIcon as n, ChevronRightIcon as r } from "lucide-react";
|
|
4
4
|
import * as i from "react";
|
|
5
5
|
import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// ../../node_modules/.bun/embla-carousel-reactive-utils@8.6.0+3dde5556684c958d/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js
|
|
8
8
|
function d(e) {
|
|
9
9
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
10
10
|
}
|
|
@@ -32,8 +32,7 @@ function g(e, t) {
|
|
|
32
32
|
return m(e, n);
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
//#region ../../node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js
|
|
35
|
+
// ../../node_modules/.bun/embla-carousel@8.6.0/node_modules/embla-carousel/esm/embla-carousel.esm.js
|
|
37
36
|
function _(e) {
|
|
38
37
|
return typeof e == "number";
|
|
39
38
|
}
|
|
@@ -280,7 +279,7 @@ function L(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v) {
|
|
|
280
279
|
}
|
|
281
280
|
function ce(e) {
|
|
282
281
|
let t = N(e, r);
|
|
283
|
-
B = t, z = m && t && !e.buttons && te, te = C(i.get(), o.get()) >= 2,
|
|
282
|
+
B = t, z = m && t && !e.buttons && te, te = C(i.get(), o.get()) >= 2, t && e.button !== 0 || oe(e.target) || (L = !0, a.pointerDown(e), l.useFriction(0).useDuration(0), i.set(o), ae(), ne = a.readPoint(e), I = a.readPoint(e, b), f.emit("pointerDown"));
|
|
284
283
|
}
|
|
285
284
|
function le(e) {
|
|
286
285
|
if (!N(e, r) && e.touches.length >= 2) return H(e);
|
|
@@ -480,7 +479,7 @@ function V(e, t, n) {
|
|
|
480
479
|
function se(e, t, n, r) {
|
|
481
480
|
let i = .1, { reachedMin: a, reachedMax: o } = F(t.min + i, t.max + i);
|
|
482
481
|
function s(e) {
|
|
483
|
-
return e === 1 ? o(n.get()) : e === -1
|
|
482
|
+
return e === 1 ? o(n.get()) : e === -1 && a(n.get());
|
|
484
483
|
}
|
|
485
484
|
function c(t) {
|
|
486
485
|
if (!s(t)) return;
|
|
@@ -694,7 +693,8 @@ function me(e, t, n, r, i, a, o, s, c) {
|
|
|
694
693
|
return g(m(d, e), n, !1);
|
|
695
694
|
}
|
|
696
695
|
function v() {
|
|
697
|
-
|
|
696
|
+
let e = t - o[0] - 1;
|
|
697
|
+
return g(m(u, e), -n, !0);
|
|
698
698
|
}
|
|
699
699
|
function y() {
|
|
700
700
|
return f.every(({ index: e }) => p(u.filter((t) => t !== e), t) <= .1);
|
|
@@ -974,7 +974,7 @@ function W(e, t, n) {
|
|
|
974
974
|
g || (g = !0, s.clear(), k(), c.emit("destroy"), c.clear());
|
|
975
975
|
}
|
|
976
976
|
function j(e, t, n) {
|
|
977
|
-
|
|
977
|
+
b.active && !g && (_.scrollBody.useBaseFriction().useDuration(t === !0 ? 0 : b.duration), _.scrollTo.index(e, n || 0));
|
|
978
978
|
}
|
|
979
979
|
function M(e) {
|
|
980
980
|
j(_.index.add(1).get(), e, -1);
|
|
@@ -1047,8 +1047,7 @@ function W(e, t, n) {
|
|
|
1047
1047
|
return D(t, n), setTimeout(() => c.emit("init"), 0), V;
|
|
1048
1048
|
}
|
|
1049
1049
|
W.globalOptions = void 0;
|
|
1050
|
-
|
|
1051
|
-
//#region ../../node_modules/.bun/embla-carousel-react@8.6.0+62547eec5a2188e3/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
1050
|
+
// ../../node_modules/.bun/embla-carousel-react@8.6.0+62547eec5a2188e3/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
1052
1051
|
function G(e = {}, t = []) {
|
|
1053
1052
|
let n = s(e), r = s(t), [i, l] = c(), [u, d] = c(), f = a(() => {
|
|
1054
1053
|
i && i.reInit(n.current, r.current);
|
|
@@ -1062,12 +1061,12 @@ function G(e = {}, t = []) {
|
|
|
1062
1061
|
W.globalOptions = G.globalOptions;
|
|
1063
1062
|
let e = W(u, n.current, r.current);
|
|
1064
1063
|
return l(e), () => e.destroy();
|
|
1065
|
-
}
|
|
1064
|
+
}
|
|
1065
|
+
l(void 0);
|
|
1066
1066
|
}, [u, l]), [d, i];
|
|
1067
1067
|
}
|
|
1068
1068
|
G.globalOptions = void 0;
|
|
1069
|
-
|
|
1070
|
-
//#region src/carousel.tsx
|
|
1069
|
+
// src/carousel.tsx
|
|
1071
1070
|
var we = i.createContext(null);
|
|
1072
1071
|
function K() {
|
|
1073
1072
|
let e = i.useContext(we);
|
|
@@ -1088,7 +1087,7 @@ function q({ orientation: t = "horizontal", opts: n, setApi: r, plugins: a, clas
|
|
|
1088
1087
|
e.key === "ArrowLeft" ? (e.preventDefault(), _()) : e.key === "ArrowRight" && (e.preventDefault(), v());
|
|
1089
1088
|
}, [_, v]);
|
|
1090
1089
|
return i.useEffect(() => {
|
|
1091
|
-
|
|
1090
|
+
d && r && r(d);
|
|
1092
1091
|
}, [d, r]), i.useEffect(() => {
|
|
1093
1092
|
if (d) return g(d), d.on("reInit", g), d.on("select", g), () => {
|
|
1094
1093
|
d?.off("select", g);
|
|
@@ -1104,10 +1103,9 @@ function q({ orientation: t = "horizontal", opts: n, setApi: r, plugins: a, clas
|
|
|
1104
1103
|
canScrollPrev: f,
|
|
1105
1104
|
canScrollNext: m
|
|
1106
1105
|
},
|
|
1107
|
-
children: /* @__PURE__ */ l("
|
|
1106
|
+
children: /* @__PURE__ */ l("section", {
|
|
1108
1107
|
onKeyDownCapture: y,
|
|
1109
1108
|
className: e("relative", o),
|
|
1110
|
-
role: "region",
|
|
1111
1109
|
"aria-roledescription": "carousel",
|
|
1112
1110
|
"data-slot": "carousel",
|
|
1113
1111
|
...c,
|
|
@@ -1129,8 +1127,7 @@ function J({ className: t, ...n }) {
|
|
|
1129
1127
|
}
|
|
1130
1128
|
function Y({ className: t, ...n }) {
|
|
1131
1129
|
let { orientation: r } = K();
|
|
1132
|
-
return /* @__PURE__ */ l("
|
|
1133
|
-
role: "group",
|
|
1130
|
+
return /* @__PURE__ */ l("fieldset", {
|
|
1134
1131
|
"aria-roledescription": "slide",
|
|
1135
1132
|
"data-slot": "carousel-item",
|
|
1136
1133
|
className: e("min-w-0 shrink-0 grow-0 basis-full", r === "horizontal" ? "ps-4" : "pt-4", t),
|
|
@@ -1169,5 +1166,4 @@ function Ee({ className: n, variant: i = "outline", size: a = "icon-sm", ...o })
|
|
|
1169
1166
|
})]
|
|
1170
1167
|
});
|
|
1171
1168
|
}
|
|
1172
|
-
//#endregion
|
|
1173
1169
|
export { Te as a, Ee as i, J as n, K as o, Y as r, q as t };
|
package/dist/carousel.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./carousel-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./carousel-D-xEqRCX.js");exports.Carousel=e.t,exports.CarouselContent=e.n,exports.CarouselItem=e.r,exports.CarouselNext=e.i,exports.CarouselPrevious=e.a,exports.useCarousel=e.o;
|
package/dist/carousel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
1
2
|
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
|
2
3
|
import { Button } from './button';
|
|
3
|
-
import { CarouselBaseProps } from '@gv-tech/ui-core';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
6
6
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
@@ -21,9 +21,9 @@ type CarouselContextProps = {
|
|
|
21
21
|
canScrollNext: boolean;
|
|
22
22
|
} & CarouselProps;
|
|
23
23
|
declare function useCarousel(): CarouselContextProps;
|
|
24
|
-
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'
|
|
24
|
+
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<'section'> & CarouselProps): React.JSX.Element;
|
|
25
25
|
declare function CarouselContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
26
|
-
declare function CarouselItem({ className, ...props }: React.ComponentProps<'
|
|
26
|
+
declare function CarouselItem({ className, ...props }: React.ComponentProps<'fieldset'>): React.JSX.Element;
|
|
27
27
|
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
28
28
|
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
29
29
|
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel, type CarouselApi };
|
package/dist/carousel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../src/carousel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../src/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEpC,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,WAAW,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB,GAAG,aAAa,CAAC;AAIlB,iBAAS,WAAW,yBAQnB;AAED,iBAAS,QAAQ,CAAC,EAChB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,GAAG,aAAa,qBAsFjD;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,qBAW9E;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,qBAuBrC;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,OAAmB,EACnB,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,qBAuBrC;AAED,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC;AAGlH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,iBAAiB,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/dist/carousel.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
export { a as Carousel, n as CarouselContent, i as CarouselItem, t as CarouselNext, e as CarouselPrevious, r as useCarousel };
|
|
2
|
+
export { t as Carousel, n as CarouselContent, r as CarouselItem, i as CarouselNext, a as CarouselPrevious, o as useCarousel } from "./carousel-DPjWmM_A.mjs";
|
package/dist/chart.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime"),i=require("recharts");i=e.r(i);var a={light:``,dark:`.dark`},o={width:320,height:200},s=n.createContext(null);function c(){let e=n.useContext(s);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function l({id:e,className:a,children:c,config:l,initialDimension:d=o,...f}){let p=n.useId(),m=`chart-${e??p.replace(/:/g,``)}`;return(0,r.jsx)(s.Provider,{value:{config:l},children:(0,r.jsxs)(`div`,{"data-slot":`chart`,"data-chart":m,className:t.t(`[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,a),...f,children:[(0,r.jsx)(u,{id:m,config:l}),(0,r.jsx)(i.ResponsiveContainer,{initialDimension:d,children:c})]})})}var u=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme??e.color);return n.length?(0,r.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(a).map(([t,r])=>`
|
|
2
2
|
${r} [data-chart=${e}] {
|
|
3
3
|
${n.map(([e,n])=>{let r=n.theme?.[t]??n.color;return r?` --color-${e}: ${r};`:null}).join(`
|
|
4
4
|
`)}
|
|
5
5
|
}
|
|
6
6
|
`).join(`
|
|
7
|
-
`)}}):null},d=i.Tooltip;function f({active:e,payload:i,className:a,indicator:o=`dot`,hideLabel:s=!1,hideIndicator:l=!1,label:u,labelFormatter:d,labelClassName:f,formatter:p,color:m,nameKey:g,labelKey:_}){let{config:v}=c(),y=n.useMemo(()=>{if(s||!i?.length)return null;let[e]=i,n
|
|
7
|
+
`)}}):null},d=i.Tooltip;function f({active:e,payload:i,className:a,indicator:o=`dot`,hideLabel:s=!1,hideIndicator:l=!1,label:u,labelFormatter:d,labelClassName:f,formatter:p,color:m,nameKey:g,labelKey:_}){let{config:v}=c(),y=n.useMemo(()=>{if(s||!i?.length)return null;let[e]=i,n=`${_??e?.dataKey??e?.name??`value`}`,a=h(v,e,n),o=!_&&typeof u==`string`?v[u]?.label??u:a?.label;return d?(0,r.jsx)(`div`,{className:t.t(`font-medium`,f),children:d(o,i)}):o?(0,r.jsx)(`div`,{className:t.t(`font-medium`,f),children:o}):null},[u,d,i,s,f,v,_]);if(!e||!i?.length)return null;let b=i.length===1&&o!==`dot`;return(0,r.jsxs)(`div`,{className:t.t(`border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl`,a),children:[b?null:y,(0,r.jsx)(`div`,{className:`grid gap-1.5`,children:i.filter(e=>e.type!==`none`).map((e,n)=>{let i=`${g??e.name??e.dataKey??`value`}`,a=h(v,e,i),s=m??e.payload?.fill??e.color;return(0,r.jsx)(`div`,{className:t.t(`[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5`,o===`dot`&&`items-center`),children:p&&e?.value!==void 0&&e.name?p(e.value,e.name,e,n,e.payload):(0,r.jsxs)(r.Fragment,{children:[a?.icon?(0,r.jsx)(a.icon,{}):!l&&(0,r.jsx)(`div`,{className:t.t(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":o===`dot`,"w-1":o===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":o===`dashed`,"my-0.5":b&&o===`dashed`}),style:{"--color-bg":s,"--color-border":s}}),(0,r.jsxs)(`div`,{className:t.t(`flex flex-1 justify-between leading-none`,b?`items-end`:`items-center`),children:[(0,r.jsxs)(`div`,{className:`grid gap-1.5`,children:[b?y:null,(0,r.jsx)(`span`,{className:`text-muted-foreground`,children:a?.label??e.name})]}),e.value!=null&&(0,r.jsx)(`span`,{className:`text-foreground font-mono font-medium tabular-nums`,children:typeof e.value==`number`?e.value.toLocaleString():String(e.value)})]})]})},n)})})]})}var p=i.Legend;function m({className:e,hideIcon:n=!1,payload:i,verticalAlign:a=`bottom`,nameKey:o}){let{config:s}=c();return i?.length?(0,r.jsx)(`div`,{className:t.t(`flex items-center justify-center gap-4`,a===`top`?`pb-3`:`pt-3`,e),children:i.filter(e=>e.type!==`none`).map((e,i)=>{let a=`${o??e.dataKey??`value`}`,c=h(s,e,a);return(0,r.jsxs)(`div`,{className:t.t(`[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3`),children:[c?.icon&&!n?(0,r.jsx)(c.icon,{}):(0,r.jsx)(`div`,{className:`h-2 w-2 shrink-0 rounded-[2px]`,style:{backgroundColor:e.color}}),c?.label]},i)})}):null}function h(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}exports.ChartContainer=l,exports.ChartLegend=p,exports.ChartLegendContent=m,exports.ChartStyle=u,exports.ChartTooltip=d,exports.ChartTooltipContent=f;
|
package/dist/chart.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { t as e } from "./dist-
|
|
3
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
4
4
|
import * as t from "react";
|
|
5
5
|
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import * as a from "recharts";
|
|
7
|
-
|
|
7
|
+
// src/chart.tsx
|
|
8
8
|
var o = {
|
|
9
9
|
light: "",
|
|
10
10
|
dark: ".dark"
|
|
@@ -50,13 +50,13 @@ ${n.map(([e, n]) => {
|
|
|
50
50
|
function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabel: u = !1, hideIndicator: d = !1, label: f, labelFormatter: p, labelClassName: m, formatter: h, color: _, nameKey: v, labelKey: y }) {
|
|
51
51
|
let { config: b } = l(), x = t.useMemo(() => {
|
|
52
52
|
if (u || !o?.length) return null;
|
|
53
|
-
let [t] = o, n =
|
|
53
|
+
let [t] = o, n = `${y ?? t?.dataKey ?? t?.name ?? "value"}`, i = g(b, t, n), a = !y && typeof f == "string" ? b[f]?.label ?? f : i?.label;
|
|
54
54
|
return p ? /* @__PURE__ */ r("div", {
|
|
55
55
|
className: e("font-medium", m),
|
|
56
|
-
children: p(
|
|
57
|
-
}) :
|
|
56
|
+
children: p(a, o)
|
|
57
|
+
}) : a ? /* @__PURE__ */ r("div", {
|
|
58
58
|
className: e("font-medium", m),
|
|
59
|
-
children:
|
|
59
|
+
children: a
|
|
60
60
|
}) : null;
|
|
61
61
|
}, [
|
|
62
62
|
f,
|
|
@@ -74,10 +74,10 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
74
74
|
children: [S ? null : x, /* @__PURE__ */ r("div", {
|
|
75
75
|
className: "grid gap-1.5",
|
|
76
76
|
children: o.filter((e) => e.type !== "none").map((t, a) => {
|
|
77
|
-
let o =
|
|
77
|
+
let o = `${v ?? t.name ?? t.dataKey ?? "value"}`, s = g(b, t, o), l = _ ?? t.payload?.fill ?? t.color;
|
|
78
78
|
return /* @__PURE__ */ r("div", {
|
|
79
79
|
className: e("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", c === "dot" && "items-center"),
|
|
80
|
-
children: h && t?.value !== void 0 && t.name ? h(t.value, t.name, t, a, t.payload) : /* @__PURE__ */ i(n, { children: [
|
|
80
|
+
children: h && t?.value !== void 0 && t.name ? h(t.value, t.name, t, a, t.payload) : /* @__PURE__ */ i(n, { children: [s?.icon ? /* @__PURE__ */ r(s.icon, {}) : !d && /* @__PURE__ */ r("div", {
|
|
81
81
|
className: e("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", {
|
|
82
82
|
"h-2.5 w-2.5": c === "dot",
|
|
83
83
|
"w-1": c === "line",
|
|
@@ -85,8 +85,8 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
85
85
|
"my-0.5": S && c === "dashed"
|
|
86
86
|
}),
|
|
87
87
|
style: {
|
|
88
|
-
"--color-bg":
|
|
89
|
-
"--color-border":
|
|
88
|
+
"--color-bg": l,
|
|
89
|
+
"--color-border": l
|
|
90
90
|
}
|
|
91
91
|
}), /* @__PURE__ */ i("div", {
|
|
92
92
|
className: e("flex flex-1 justify-between leading-none", S ? "items-end" : "items-center"),
|
|
@@ -94,7 +94,7 @@ function p({ active: a, payload: o, className: s, indicator: c = "dot", hideLabe
|
|
|
94
94
|
className: "grid gap-1.5",
|
|
95
95
|
children: [S ? x : null, /* @__PURE__ */ r("span", {
|
|
96
96
|
className: "text-muted-foreground",
|
|
97
|
-
children:
|
|
97
|
+
children: s?.label ?? t.name
|
|
98
98
|
})]
|
|
99
99
|
}), t.value != null && /* @__PURE__ */ r("span", {
|
|
100
100
|
className: "text-foreground font-mono font-medium tabular-nums",
|
|
@@ -112,13 +112,13 @@ function h({ className: t, hideIcon: n = !1, payload: a, verticalAlign: o = "bot
|
|
|
112
112
|
return a?.length ? /* @__PURE__ */ r("div", {
|
|
113
113
|
className: e("flex items-center justify-center gap-4", o === "top" ? "pb-3" : "pt-3", t),
|
|
114
114
|
children: a.filter((e) => e.type !== "none").map((t, a) => {
|
|
115
|
-
let o =
|
|
115
|
+
let o = `${s ?? t.dataKey ?? "value"}`, l = g(c, t, o);
|
|
116
116
|
return /* @__PURE__ */ i("div", {
|
|
117
117
|
className: e("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),
|
|
118
|
-
children: [
|
|
118
|
+
children: [l?.icon && !n ? /* @__PURE__ */ r(l.icon, {}) : /* @__PURE__ */ r("div", {
|
|
119
119
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
120
120
|
style: { backgroundColor: t.color }
|
|
121
|
-
}),
|
|
121
|
+
}), l?.label]
|
|
122
122
|
}, a);
|
|
123
123
|
})
|
|
124
124
|
}) : null;
|
|
@@ -128,5 +128,4 @@ function g(e, t, n) {
|
|
|
128
128
|
let r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0, i = n;
|
|
129
129
|
return n in t && typeof t[n] == "string" ? i = t[n] : r && n in r && typeof r[n] == "string" && (i = r[n]), i in e ? e[i] : e[n];
|
|
130
130
|
}
|
|
131
|
-
//#endregion
|
|
132
131
|
export { u as ChartContainer, m as ChartLegend, h as ChartLegendContent, d as ChartStyle, f as ChartTooltip, p as ChartTooltipContent };
|