@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
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { t as e } from "./dist-DoWtzxYc.mjs";
|
|
2
|
+
import { t } from "./dist-COqM3IM6.mjs";
|
|
3
|
+
import { t as n } from "./dist-B76UOZbx.mjs";
|
|
4
|
+
import { n as r, t as i } from "./dist-B7Ph9-T6.mjs";
|
|
5
|
+
import { t as a } from "./dist-DKI-XYwI.mjs";
|
|
6
|
+
import { a as o, r as s } from "./dist-C516Vwxy.mjs";
|
|
7
|
+
import { n as c } from "./dist-dwRwxUPt.mjs";
|
|
8
|
+
import { t as l } from "./dist-BnlI08Je.mjs";
|
|
9
|
+
import { t as u } from "./dist-Cu0GG-3j.mjs";
|
|
10
|
+
import { t as d } from "./dist-C2BHd5i1.mjs";
|
|
11
|
+
import { t as f } from "./dist-CbWpCWog.mjs";
|
|
12
|
+
import { t as p } from "./dist-DhubV_gU.mjs";
|
|
13
|
+
import { t as m } from "./dist-AlmToDtO.mjs";
|
|
14
|
+
import { n as h } from "./dist-ljiGYyay.mjs";
|
|
15
|
+
import { ChevronDownIcon as g } from "lucide-react";
|
|
16
|
+
import * as _ from "react";
|
|
17
|
+
import * as v from "react-dom";
|
|
18
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
19
|
+
import { cva as S } from "class-variance-authority";
|
|
20
|
+
// ../../node_modules/.bun/@radix-ui+react-use-previous@1.1.4+0ac650c021fb1b59/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
21
|
+
var C = Object.defineProperty, w = (e, t) => C(e, "name", {
|
|
22
|
+
value: t,
|
|
23
|
+
configurable: !0
|
|
24
|
+
});
|
|
25
|
+
function T(e) {
|
|
26
|
+
let t = _.useRef({
|
|
27
|
+
value: e,
|
|
28
|
+
previous: e
|
|
29
|
+
});
|
|
30
|
+
return _.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
31
|
+
}
|
|
32
|
+
w(T, "usePrevious");
|
|
33
|
+
// ../../node_modules/.bun/@radix-ui+react-navigation-menu@1.4.1+2b23df507bdda662/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
|
|
34
|
+
var E = Object.defineProperty, D = (e, t) => E(e, "name", {
|
|
35
|
+
value: t,
|
|
36
|
+
configurable: !0
|
|
37
|
+
}), O = {
|
|
38
|
+
Automatic: "automatic",
|
|
39
|
+
Manual: "manual"
|
|
40
|
+
}, ee = {
|
|
41
|
+
Vertical: "vertical",
|
|
42
|
+
Horizontal: "horizontal"
|
|
43
|
+
}, k = {
|
|
44
|
+
LTR: "ltr",
|
|
45
|
+
RTL: "rtl"
|
|
46
|
+
}, A = "NavigationMenu", [j, M, N] = d(A), [P, te, ne] = d(A), [F, re] = t(A, [N, ne]), [ie, I] = F(A), [ae, oe] = F(A), se = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
47
|
+
let { __scopeNavigationMenu: n, value: r, onValueChange: s, defaultValue: l, delayDuration: u = 200, skipDelayDuration: d = 300, orientation: f = ee.Horizontal, dir: p, activationMode: m = O.Automatic, ...h } = e, [g, v] = _.useState(null), y = o(t, v), x = c(p), S = _.useRef(0), C = _.useRef(0), w = _.useRef(0), [T, E] = _.useState(!0), [k, j] = a({
|
|
48
|
+
prop: r,
|
|
49
|
+
onChange: /* @__PURE__ */ D((e) => {
|
|
50
|
+
let t = e !== "", n = d > 0;
|
|
51
|
+
t ? (window.clearTimeout(w.current), n && E(!1)) : (window.clearTimeout(w.current), w.current = window.setTimeout(() => E(!0), d)), s?.(e);
|
|
52
|
+
}, "onChange"),
|
|
53
|
+
defaultProp: l ?? "",
|
|
54
|
+
caller: A
|
|
55
|
+
}), M = _.useCallback(() => {
|
|
56
|
+
window.clearTimeout(C.current), C.current = window.setTimeout(() => j(""), 150);
|
|
57
|
+
}, [j]), N = _.useCallback((e) => {
|
|
58
|
+
window.clearTimeout(C.current), j(e);
|
|
59
|
+
}, [j]), P = _.useCallback((e) => {
|
|
60
|
+
k === e ? window.clearTimeout(C.current) : S.current = window.setTimeout(() => {
|
|
61
|
+
window.clearTimeout(C.current), j(e);
|
|
62
|
+
}, u);
|
|
63
|
+
}, [
|
|
64
|
+
k,
|
|
65
|
+
j,
|
|
66
|
+
u
|
|
67
|
+
]);
|
|
68
|
+
return _.useEffect(() => () => {
|
|
69
|
+
window.clearTimeout(S.current), window.clearTimeout(C.current), window.clearTimeout(w.current);
|
|
70
|
+
}, []), /* @__PURE__ */ b(ce, {
|
|
71
|
+
scope: n,
|
|
72
|
+
isRootMenu: !0,
|
|
73
|
+
value: k,
|
|
74
|
+
dir: x,
|
|
75
|
+
orientation: f,
|
|
76
|
+
activationMode: m,
|
|
77
|
+
rootNavigationMenu: g,
|
|
78
|
+
onTriggerEnter: (e) => {
|
|
79
|
+
m === O.Automatic && (window.clearTimeout(S.current), T ? P(e) : N(e));
|
|
80
|
+
},
|
|
81
|
+
onTriggerLeave: () => {
|
|
82
|
+
m === O.Automatic && (window.clearTimeout(S.current), M());
|
|
83
|
+
},
|
|
84
|
+
onContentEnter: () => {
|
|
85
|
+
m === O.Automatic && window.clearTimeout(C.current);
|
|
86
|
+
},
|
|
87
|
+
onContentLeave: () => {
|
|
88
|
+
m === O.Automatic && M();
|
|
89
|
+
},
|
|
90
|
+
onItemSelect: (e) => {
|
|
91
|
+
j((t) => t === e ? "" : e);
|
|
92
|
+
},
|
|
93
|
+
onItemDismiss: () => j(""),
|
|
94
|
+
children: /* @__PURE__ */ b(i.nav, {
|
|
95
|
+
"aria-label": "Main",
|
|
96
|
+
"data-orientation": f,
|
|
97
|
+
dir: x,
|
|
98
|
+
...h,
|
|
99
|
+
ref: y
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
}, "NavigationMenu")), ce = /* @__PURE__ */ D((e) => {
|
|
103
|
+
let { scope: t, isRootMenu: n, rootNavigationMenu: r, dir: i, orientation: a, activationMode: o, children: s, value: c, onItemSelect: l, onItemDismiss: d, onTriggerEnter: f, onTriggerLeave: p, onContentEnter: h, onContentLeave: g } = e, [v, y] = _.useState(null), [x, S] = _.useState(/* @__PURE__ */ new Map()), [C, w] = _.useState(null);
|
|
104
|
+
return /* @__PURE__ */ b(ie, {
|
|
105
|
+
scope: t,
|
|
106
|
+
isRootMenu: n,
|
|
107
|
+
rootNavigationMenu: r,
|
|
108
|
+
value: c,
|
|
109
|
+
previousValue: T(c),
|
|
110
|
+
baseId: u(),
|
|
111
|
+
dir: i,
|
|
112
|
+
orientation: a,
|
|
113
|
+
activationMode: o,
|
|
114
|
+
viewport: v,
|
|
115
|
+
onViewportChange: y,
|
|
116
|
+
indicatorTrack: C,
|
|
117
|
+
onIndicatorTrackChange: w,
|
|
118
|
+
onTriggerEnter: m(f),
|
|
119
|
+
onTriggerLeave: m(p),
|
|
120
|
+
onContentEnter: m(h),
|
|
121
|
+
onContentLeave: m(g),
|
|
122
|
+
onItemSelect: m(l),
|
|
123
|
+
onItemDismiss: m(d),
|
|
124
|
+
onViewportContentChange: _.useCallback((e, t) => {
|
|
125
|
+
S((n) => (n.set(e, t), new Map(n)));
|
|
126
|
+
}, []),
|
|
127
|
+
onViewportContentRemove: _.useCallback((e) => {
|
|
128
|
+
S((t) => t.has(e) ? (t.delete(e), new Map(t)) : t);
|
|
129
|
+
}, []),
|
|
130
|
+
children: /* @__PURE__ */ b(j.Provider, {
|
|
131
|
+
scope: t,
|
|
132
|
+
children: /* @__PURE__ */ b(ae, {
|
|
133
|
+
scope: t,
|
|
134
|
+
items: x,
|
|
135
|
+
children: s
|
|
136
|
+
})
|
|
137
|
+
})
|
|
138
|
+
});
|
|
139
|
+
}, "NavigationMenuProvider"), le = "NavigationMenuList", ue = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
140
|
+
let { __scopeNavigationMenu: n, ...r } = e, a = I(le, n), o = /* @__PURE__ */ b(i.ul, {
|
|
141
|
+
"data-orientation": a.orientation,
|
|
142
|
+
...r,
|
|
143
|
+
ref: t
|
|
144
|
+
});
|
|
145
|
+
return /* @__PURE__ */ b(i.div, {
|
|
146
|
+
style: { position: "relative" },
|
|
147
|
+
ref: a.onIndicatorTrackChange,
|
|
148
|
+
children: /* @__PURE__ */ b(j.Slot, {
|
|
149
|
+
scope: n,
|
|
150
|
+
children: a.isRootMenu ? /* @__PURE__ */ b(we, {
|
|
151
|
+
asChild: !0,
|
|
152
|
+
children: o
|
|
153
|
+
}) : o
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
}, "NavigationMenuList")), [de, L] = F("NavigationMenuItem"), fe = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
157
|
+
let { __scopeNavigationMenu: n, value: r, ...a } = e, o = u(), s = r || o || "LEGACY_REACT_AUTO_VALUE", c = _.useRef(null), l = _.useRef(null), d = _.useRef(null), f = _.useRef(() => {}), p = _.useRef(!1), m = _.useCallback((e = "start") => {
|
|
158
|
+
if (c.current) {
|
|
159
|
+
f.current();
|
|
160
|
+
let t = G(c.current);
|
|
161
|
+
t.length && K(e === "start" ? t : t.reverse());
|
|
162
|
+
}
|
|
163
|
+
}, []), h = _.useCallback(() => {
|
|
164
|
+
if (c.current) {
|
|
165
|
+
let e = G(c.current);
|
|
166
|
+
e.length && (f.current = Oe(e));
|
|
167
|
+
}
|
|
168
|
+
}, []);
|
|
169
|
+
return /* @__PURE__ */ b(de, {
|
|
170
|
+
scope: n,
|
|
171
|
+
value: s,
|
|
172
|
+
triggerRef: l,
|
|
173
|
+
contentRef: c,
|
|
174
|
+
focusProxyRef: d,
|
|
175
|
+
wasEscapeCloseRef: p,
|
|
176
|
+
onEntryKeyDown: m,
|
|
177
|
+
onFocusProxyEnter: m,
|
|
178
|
+
onRootContentClose: h,
|
|
179
|
+
onContentFocusOutside: h,
|
|
180
|
+
children: /* @__PURE__ */ b(i.li, {
|
|
181
|
+
...a,
|
|
182
|
+
ref: t
|
|
183
|
+
})
|
|
184
|
+
});
|
|
185
|
+
}, "NavigationMenuItem")), R = "NavigationMenuTrigger", pe = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
186
|
+
let { __scopeNavigationMenu: r, disabled: a, ...s } = e, c = I(R, e.__scopeNavigationMenu), l = L(R, e.__scopeNavigationMenu), u = _.useRef(null), d = o(u, l.triggerRef, t), f = Y(c.baseId, l.value), p = X(c.baseId, l.value), m = _.useRef(!1), g = _.useRef(!1), v = l.value === c.value;
|
|
187
|
+
return /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(j.ItemSlot, {
|
|
188
|
+
scope: r,
|
|
189
|
+
value: l.value,
|
|
190
|
+
children: /* @__PURE__ */ b(De, {
|
|
191
|
+
asChild: !0,
|
|
192
|
+
children: /* @__PURE__ */ b(i.button, {
|
|
193
|
+
id: f,
|
|
194
|
+
disabled: a,
|
|
195
|
+
"data-disabled": a ? "" : void 0,
|
|
196
|
+
"data-state": J(v),
|
|
197
|
+
"aria-expanded": v,
|
|
198
|
+
"aria-controls": v ? p : void 0,
|
|
199
|
+
...s,
|
|
200
|
+
ref: d,
|
|
201
|
+
onPointerEnter: n(e.onPointerEnter, () => {
|
|
202
|
+
g.current = !1, l.wasEscapeCloseRef.current = !1;
|
|
203
|
+
}),
|
|
204
|
+
onPointerMove: n(e.onPointerMove, Z(() => {
|
|
205
|
+
a || g.current || l.wasEscapeCloseRef.current || m.current || (c.onTriggerEnter(l.value), m.current = !0);
|
|
206
|
+
})),
|
|
207
|
+
onPointerLeave: n(e.onPointerLeave, Z(() => {
|
|
208
|
+
a || (c.onTriggerLeave(), m.current = !1);
|
|
209
|
+
})),
|
|
210
|
+
onClick: n(e.onClick, () => {
|
|
211
|
+
c.onItemSelect(l.value), g.current = v;
|
|
212
|
+
}),
|
|
213
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
214
|
+
let t = {
|
|
215
|
+
horizontal: "ArrowDown",
|
|
216
|
+
vertical: c.dir === k.RTL ? "ArrowLeft" : "ArrowRight"
|
|
217
|
+
}[c.orientation];
|
|
218
|
+
v && e.key === t && (l.onEntryKeyDown(), e.preventDefault());
|
|
219
|
+
})
|
|
220
|
+
})
|
|
221
|
+
})
|
|
222
|
+
}), v && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(h, {
|
|
223
|
+
"aria-hidden": !0,
|
|
224
|
+
tabIndex: 0,
|
|
225
|
+
ref: l.focusProxyRef,
|
|
226
|
+
onFocus: (e) => {
|
|
227
|
+
let t = l.contentRef.current, n = e.relatedTarget, r = n === u.current, i = t?.contains(n);
|
|
228
|
+
(r || !i) && l.onFocusProxyEnter(r ? "start" : "end");
|
|
229
|
+
}
|
|
230
|
+
}), c.viewport && /* @__PURE__ */ b("span", { "aria-owns": p })] })] });
|
|
231
|
+
}, "NavigationMenuTrigger")), z = "navigationMenu.linkSelect", me = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
232
|
+
let { __scopeNavigationMenu: a, active: o, onSelect: s, ...c } = e;
|
|
233
|
+
return /* @__PURE__ */ b(De, {
|
|
234
|
+
asChild: !0,
|
|
235
|
+
children: /* @__PURE__ */ b(i.a, {
|
|
236
|
+
"data-active": o ? "" : void 0,
|
|
237
|
+
"aria-current": o ? "page" : void 0,
|
|
238
|
+
...c,
|
|
239
|
+
ref: t,
|
|
240
|
+
onClick: n(e.onClick, (e) => {
|
|
241
|
+
let t = e.target, n = new CustomEvent(z, {
|
|
242
|
+
bubbles: !0,
|
|
243
|
+
cancelable: !0
|
|
244
|
+
});
|
|
245
|
+
if (t.addEventListener(z, (e) => s?.(e), { once: !0 }), r(t, n), !n.defaultPrevented && !e.metaKey) {
|
|
246
|
+
let e = new CustomEvent(H, {
|
|
247
|
+
bubbles: !0,
|
|
248
|
+
cancelable: !0
|
|
249
|
+
});
|
|
250
|
+
r(t, e);
|
|
251
|
+
}
|
|
252
|
+
}, { checkForDefaultPrevented: !1 })
|
|
253
|
+
})
|
|
254
|
+
});
|
|
255
|
+
}, "NavigationMenuLink")), B = "NavigationMenuIndicator", he = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
256
|
+
let { forceMount: n, ...r } = e, i = I(B, e.__scopeNavigationMenu), a = !!i.value;
|
|
257
|
+
return i.indicatorTrack ? v.createPortal(/* @__PURE__ */ b(l, {
|
|
258
|
+
present: n || a,
|
|
259
|
+
children: /* @__PURE__ */ b(ge, {
|
|
260
|
+
...r,
|
|
261
|
+
ref: t
|
|
262
|
+
})
|
|
263
|
+
}), i.indicatorTrack) : null;
|
|
264
|
+
}, "NavigationMenuIndicator")), ge = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
265
|
+
let { __scopeNavigationMenu: n, ...r } = e, a = I(B, n), o = M(n), [s, c] = _.useState(null), [l, u] = _.useState(null), d = a.orientation === ee.Horizontal, f = !!a.value;
|
|
266
|
+
_.useEffect(() => {
|
|
267
|
+
let e = o().find((e) => e.value === a.value)?.ref.current;
|
|
268
|
+
e && c(e);
|
|
269
|
+
}, [o, a.value]);
|
|
270
|
+
let p = /* @__PURE__ */ D(() => {
|
|
271
|
+
s && u({
|
|
272
|
+
size: d ? s.offsetWidth : s.offsetHeight,
|
|
273
|
+
offset: d ? s.offsetLeft : s.offsetTop
|
|
274
|
+
});
|
|
275
|
+
}, "handlePositionChange");
|
|
276
|
+
return q(s, p), q(a.indicatorTrack, p), l ? /* @__PURE__ */ b(i.div, {
|
|
277
|
+
"aria-hidden": !0,
|
|
278
|
+
"data-state": f ? "visible" : "hidden",
|
|
279
|
+
"data-orientation": a.orientation,
|
|
280
|
+
...r,
|
|
281
|
+
ref: t,
|
|
282
|
+
style: {
|
|
283
|
+
position: "absolute",
|
|
284
|
+
...d ? {
|
|
285
|
+
left: 0,
|
|
286
|
+
width: l.size + "px",
|
|
287
|
+
transform: `translateX(${l.offset}px)`,
|
|
288
|
+
"--radix-navigation-menu-indicator-translate-x": `${l.offset}px`
|
|
289
|
+
} : {
|
|
290
|
+
top: 0,
|
|
291
|
+
height: l.size + "px",
|
|
292
|
+
transform: `translateY(${l.offset}px)`,
|
|
293
|
+
"--radix-navigation-menu-indicator-translate-y": `${l.offset}px`
|
|
294
|
+
},
|
|
295
|
+
...r.style
|
|
296
|
+
}
|
|
297
|
+
}) : null;
|
|
298
|
+
}, "NavigationMenuIndicatorImpl")), V = "NavigationMenuContent", _e = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
299
|
+
let { forceMount: r, ...i } = e, a = I(V, e.__scopeNavigationMenu), s = L(V, e.__scopeNavigationMenu), c = o(s.contentRef, t), u = s.value === a.value, d = J(u), f = {
|
|
300
|
+
value: s.value,
|
|
301
|
+
triggerRef: s.triggerRef,
|
|
302
|
+
focusProxyRef: s.focusProxyRef,
|
|
303
|
+
wasEscapeCloseRef: s.wasEscapeCloseRef,
|
|
304
|
+
onContentFocusOutside: s.onContentFocusOutside,
|
|
305
|
+
onRootContentClose: s.onRootContentClose,
|
|
306
|
+
...i
|
|
307
|
+
};
|
|
308
|
+
return a.viewport ? /* @__PURE__ */ b(ve, {
|
|
309
|
+
"data-state": d,
|
|
310
|
+
forceMount: r,
|
|
311
|
+
...f,
|
|
312
|
+
ref: c
|
|
313
|
+
}) : /* @__PURE__ */ b(l, {
|
|
314
|
+
present: r || u,
|
|
315
|
+
children: /* @__PURE__ */ b(U, {
|
|
316
|
+
"data-state": d,
|
|
317
|
+
...f,
|
|
318
|
+
ref: c,
|
|
319
|
+
onPointerEnter: n(e.onPointerEnter, a.onContentEnter),
|
|
320
|
+
onPointerLeave: n(e.onPointerLeave, Z(a.onContentLeave)),
|
|
321
|
+
style: {
|
|
322
|
+
pointerEvents: !u && a.isRootMenu ? "none" : void 0,
|
|
323
|
+
...f.style
|
|
324
|
+
}
|
|
325
|
+
})
|
|
326
|
+
});
|
|
327
|
+
}, "NavigationMenuContent")), ve = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
328
|
+
let { onViewportContentChange: n, onViewportContentRemove: r } = I(V, e.__scopeNavigationMenu);
|
|
329
|
+
return p(() => {
|
|
330
|
+
n(e.value, {
|
|
331
|
+
ref: t,
|
|
332
|
+
...e
|
|
333
|
+
});
|
|
334
|
+
}, [
|
|
335
|
+
e,
|
|
336
|
+
t,
|
|
337
|
+
n
|
|
338
|
+
]), p(() => () => r(e.value), [e.value, r]), null;
|
|
339
|
+
}, "ViewportContentMounter")), H = "navigationMenu.rootContentDismiss", U = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
340
|
+
let { __scopeNavigationMenu: r, value: i, triggerRef: a, focusProxyRef: s, wasEscapeCloseRef: c, onRootContentClose: l, onContentFocusOutside: u, ...d } = e, p = I(V, r), m = _.useRef(null), h = o(m, t), g = Y(p.baseId, i), v = X(p.baseId, i), y = M(r), x = _.useRef(null), { onItemDismiss: S } = p;
|
|
341
|
+
_.useEffect(() => {
|
|
342
|
+
let e = m.current;
|
|
343
|
+
if (p.isRootMenu && e) {
|
|
344
|
+
let t = /* @__PURE__ */ D(() => {
|
|
345
|
+
S(), l(), e.contains(document.activeElement) && a.current?.focus();
|
|
346
|
+
}, "handleClose");
|
|
347
|
+
return e.addEventListener(H, t), () => e.removeEventListener(H, t);
|
|
348
|
+
}
|
|
349
|
+
}, [
|
|
350
|
+
p.isRootMenu,
|
|
351
|
+
e.value,
|
|
352
|
+
a,
|
|
353
|
+
S,
|
|
354
|
+
l
|
|
355
|
+
]);
|
|
356
|
+
let C = _.useMemo(() => {
|
|
357
|
+
let e = y().map((e) => e.value);
|
|
358
|
+
p.dir === k.RTL && e.reverse();
|
|
359
|
+
let t = e.indexOf(p.value), n = e.indexOf(p.previousValue), r = i === p.value, a = n === e.indexOf(i);
|
|
360
|
+
if (!r && !a) return x.current;
|
|
361
|
+
let o = (() => {
|
|
362
|
+
if (t !== n) {
|
|
363
|
+
if (r && n !== -1) return t > n ? "from-end" : "from-start";
|
|
364
|
+
if (a && t !== -1) return t > n ? "to-start" : "to-end";
|
|
365
|
+
}
|
|
366
|
+
return null;
|
|
367
|
+
})();
|
|
368
|
+
return x.current = o, o;
|
|
369
|
+
}, [
|
|
370
|
+
p.previousValue,
|
|
371
|
+
p.value,
|
|
372
|
+
p.dir,
|
|
373
|
+
y,
|
|
374
|
+
i
|
|
375
|
+
]);
|
|
376
|
+
return /* @__PURE__ */ b(we, {
|
|
377
|
+
asChild: !0,
|
|
378
|
+
children: /* @__PURE__ */ b(f, {
|
|
379
|
+
id: v,
|
|
380
|
+
"aria-labelledby": g,
|
|
381
|
+
"data-motion": C,
|
|
382
|
+
"data-orientation": p.orientation,
|
|
383
|
+
...d,
|
|
384
|
+
ref: h,
|
|
385
|
+
disableOutsidePointerEvents: !1,
|
|
386
|
+
onDismiss: () => {
|
|
387
|
+
let e = new Event(H, {
|
|
388
|
+
bubbles: !0,
|
|
389
|
+
cancelable: !0
|
|
390
|
+
});
|
|
391
|
+
m.current?.dispatchEvent(e);
|
|
392
|
+
},
|
|
393
|
+
onFocusOutside: n(e.onFocusOutside, (e) => {
|
|
394
|
+
u();
|
|
395
|
+
let t = e.target, n = e.detail.originalEvent.relatedTarget, r = p.rootNavigationMenu?.contains(t), i = p.rootNavigationMenu?.contains(n);
|
|
396
|
+
(r || !i) && e.preventDefault();
|
|
397
|
+
}),
|
|
398
|
+
onPointerDownOutside: n(e.onPointerDownOutside, (e) => {
|
|
399
|
+
let t = e.target, n = y().some((e) => e.ref.current?.contains(t)), r = p.isRootMenu && p.viewport?.contains(t);
|
|
400
|
+
(n || r || !p.isRootMenu) && e.preventDefault();
|
|
401
|
+
}),
|
|
402
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
403
|
+
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
404
|
+
if (e.key === "Tab" && !t) {
|
|
405
|
+
let t = G(e.currentTarget), n = document.activeElement, r = t.findIndex((e) => e === n);
|
|
406
|
+
K(e.shiftKey ? t.slice(0, r).reverse() : t.slice(r + 1, t.length)) ? e.preventDefault() : s.current?.focus();
|
|
407
|
+
}
|
|
408
|
+
}),
|
|
409
|
+
onEscapeKeyDown: n(e.onEscapeKeyDown, (e) => {
|
|
410
|
+
c.current = !0;
|
|
411
|
+
})
|
|
412
|
+
})
|
|
413
|
+
});
|
|
414
|
+
}, "NavigationMenuContentImpl")), W = "NavigationMenuViewport", ye = s(W), be = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
415
|
+
let { forceMount: n, ...r } = e, i = !!I(W, e.__scopeNavigationMenu).value;
|
|
416
|
+
return /* @__PURE__ */ b(l, {
|
|
417
|
+
present: n || i,
|
|
418
|
+
children: /* @__PURE__ */ b(xe, {
|
|
419
|
+
...r,
|
|
420
|
+
ref: t
|
|
421
|
+
})
|
|
422
|
+
});
|
|
423
|
+
}, "NavigationMenuViewport")), xe = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
424
|
+
let { __scopeNavigationMenu: r, children: a, ...s } = e, c = I(W, r), u = o(t, c.onViewportChange), d = oe(V, e.__scopeNavigationMenu), [f, p] = _.useState(null), [m, h] = _.useState(null), g = f ? f?.width + "px" : void 0, v = f ? f?.height + "px" : void 0, y = !!c.value, S = y ? c.value : c.previousValue;
|
|
425
|
+
return q(m, /* @__PURE__ */ D(() => {
|
|
426
|
+
m && p({
|
|
427
|
+
width: m.offsetWidth,
|
|
428
|
+
height: m.offsetHeight
|
|
429
|
+
});
|
|
430
|
+
}, "handleSizeChange")), /* @__PURE__ */ x(i.div, {
|
|
431
|
+
"data-state": J(y),
|
|
432
|
+
"data-orientation": c.orientation,
|
|
433
|
+
...s,
|
|
434
|
+
ref: u,
|
|
435
|
+
style: {
|
|
436
|
+
pointerEvents: !y && c.isRootMenu ? "none" : void 0,
|
|
437
|
+
"--radix-navigation-menu-viewport-width": g,
|
|
438
|
+
"--radix-navigation-menu-viewport-height": v,
|
|
439
|
+
...s.style
|
|
440
|
+
},
|
|
441
|
+
onPointerEnter: n(e.onPointerEnter, c.onContentEnter),
|
|
442
|
+
onPointerLeave: n(e.onPointerLeave, Z(c.onContentLeave)),
|
|
443
|
+
children: [/* @__PURE__ */ b(ye, { children: a }), Array.from(d.items).map(([e, { ref: t, forceMount: n, ...r }]) => {
|
|
444
|
+
let i = S === e;
|
|
445
|
+
return /* @__PURE__ */ b(l, {
|
|
446
|
+
present: n || i,
|
|
447
|
+
children: /* @__PURE__ */ b(Se, {
|
|
448
|
+
...r,
|
|
449
|
+
contentRef: t,
|
|
450
|
+
isActive: i,
|
|
451
|
+
onActiveContentChange: h
|
|
452
|
+
})
|
|
453
|
+
}, e);
|
|
454
|
+
})]
|
|
455
|
+
});
|
|
456
|
+
}, "NavigationMenuViewportImpl")), Se = /* @__PURE__ */ D(({ contentRef: e, isActive: t, onActiveContentChange: n, ...r }) => {
|
|
457
|
+
let i = _.useCallback((e) => {
|
|
458
|
+
t && e && n(e);
|
|
459
|
+
}, [t, n]), a = o(e, i);
|
|
460
|
+
return /* @__PURE__ */ b(U, {
|
|
461
|
+
...r,
|
|
462
|
+
ref: a
|
|
463
|
+
});
|
|
464
|
+
}, "NavigationMenuViewportItem"), Ce = "FocusGroup", we = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
465
|
+
let { __scopeNavigationMenu: n, ...r } = e, a = I(Ce, n);
|
|
466
|
+
return /* @__PURE__ */ b(P.Provider, {
|
|
467
|
+
scope: n,
|
|
468
|
+
children: /* @__PURE__ */ b(P.Slot, {
|
|
469
|
+
scope: n,
|
|
470
|
+
children: /* @__PURE__ */ b(i.div, {
|
|
471
|
+
dir: a.dir,
|
|
472
|
+
...r,
|
|
473
|
+
ref: t
|
|
474
|
+
})
|
|
475
|
+
})
|
|
476
|
+
});
|
|
477
|
+
}, "FocusGroup")), Te = [
|
|
478
|
+
"ArrowRight",
|
|
479
|
+
"ArrowLeft",
|
|
480
|
+
"ArrowUp",
|
|
481
|
+
"ArrowDown"
|
|
482
|
+
], Ee = "FocusGroupItem", De = /* @__PURE__ */ _.forwardRef(/* @__PURE__ */ D(function(e, t) {
|
|
483
|
+
let { __scopeNavigationMenu: r, ...a } = e, o = te(r), s = I(Ee, r);
|
|
484
|
+
return /* @__PURE__ */ b(P.ItemSlot, {
|
|
485
|
+
scope: r,
|
|
486
|
+
children: /* @__PURE__ */ b(i.button, {
|
|
487
|
+
...a,
|
|
488
|
+
ref: t,
|
|
489
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
490
|
+
if ([
|
|
491
|
+
"Home",
|
|
492
|
+
"End",
|
|
493
|
+
...Te
|
|
494
|
+
].includes(e.key)) {
|
|
495
|
+
let t = o().map((e) => e.ref.current);
|
|
496
|
+
if ([
|
|
497
|
+
s.dir === k.RTL ? "ArrowRight" : "ArrowLeft",
|
|
498
|
+
"ArrowUp",
|
|
499
|
+
"End"
|
|
500
|
+
].includes(e.key) && t.reverse(), Te.includes(e.key)) {
|
|
501
|
+
let n = t.indexOf(e.currentTarget);
|
|
502
|
+
t = t.slice(n + 1);
|
|
503
|
+
}
|
|
504
|
+
setTimeout(() => K(t)), e.preventDefault();
|
|
505
|
+
}
|
|
506
|
+
})
|
|
507
|
+
})
|
|
508
|
+
});
|
|
509
|
+
}, "FocusGroupItem"));
|
|
510
|
+
function G(e) {
|
|
511
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: /* @__PURE__ */ D((e) => {
|
|
512
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
513
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
514
|
+
}, "acceptNode") });
|
|
515
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
516
|
+
return t;
|
|
517
|
+
}
|
|
518
|
+
D(G, "getTabbableCandidates");
|
|
519
|
+
function K(e) {
|
|
520
|
+
let t = document.activeElement;
|
|
521
|
+
return e.some((e) => e === t || (e.focus(), document.activeElement !== t));
|
|
522
|
+
}
|
|
523
|
+
D(K, "focusFirst");
|
|
524
|
+
function Oe(e) {
|
|
525
|
+
return e.forEach((e) => {
|
|
526
|
+
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
527
|
+
}), () => {
|
|
528
|
+
e.forEach((e) => {
|
|
529
|
+
let t = e.dataset.tabindex;
|
|
530
|
+
e.setAttribute("tabindex", t);
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
D(Oe, "removeFromTabOrder");
|
|
535
|
+
function q(e, t) {
|
|
536
|
+
let n = m(t);
|
|
537
|
+
p(() => {
|
|
538
|
+
let t = 0;
|
|
539
|
+
if (e) {
|
|
540
|
+
let r = new ResizeObserver(() => {
|
|
541
|
+
cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
|
|
542
|
+
});
|
|
543
|
+
return r.observe(e), () => {
|
|
544
|
+
window.cancelAnimationFrame(t), r.unobserve(e);
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
}, [e, n]);
|
|
548
|
+
}
|
|
549
|
+
D(q, "useResizeObserver");
|
|
550
|
+
function J(e) {
|
|
551
|
+
return e ? "open" : "closed";
|
|
552
|
+
}
|
|
553
|
+
D(J, "getOpenState");
|
|
554
|
+
function Y(e, t) {
|
|
555
|
+
return `${e}-trigger-${t}`;
|
|
556
|
+
}
|
|
557
|
+
D(Y, "makeTriggerId");
|
|
558
|
+
function X(e, t) {
|
|
559
|
+
return `${e}-content-${t}`;
|
|
560
|
+
}
|
|
561
|
+
D(X, "makeContentId");
|
|
562
|
+
function Z(e) {
|
|
563
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
564
|
+
}
|
|
565
|
+
D(Z, "whenMouse");
|
|
566
|
+
// src/navigation-menu.tsx
|
|
567
|
+
function ke({ className: t, children: n, viewport: r = !0, ...i }) {
|
|
568
|
+
return /* @__PURE__ */ x(se, {
|
|
569
|
+
"data-slot": "navigation-menu",
|
|
570
|
+
"data-viewport": r,
|
|
571
|
+
className: e("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
|
|
572
|
+
...i,
|
|
573
|
+
children: [n, r && /* @__PURE__ */ b($, {})]
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
function Ae({ className: t, ...n }) {
|
|
577
|
+
return /* @__PURE__ */ b(ue, {
|
|
578
|
+
"data-slot": "navigation-menu-list",
|
|
579
|
+
className: e("group flex flex-1 list-none items-center justify-center gap-0", t),
|
|
580
|
+
...n
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
function je({ className: t, ...n }) {
|
|
584
|
+
return /* @__PURE__ */ b(fe, {
|
|
585
|
+
"data-slot": "navigation-menu-item",
|
|
586
|
+
className: e("relative", t),
|
|
587
|
+
...n
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
var Q = S("group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50");
|
|
591
|
+
function Me({ className: t, children: n, ...r }) {
|
|
592
|
+
return /* @__PURE__ */ x(pe, {
|
|
593
|
+
"data-slot": "navigation-menu-trigger",
|
|
594
|
+
className: e(Q(), "group", t),
|
|
595
|
+
...r,
|
|
596
|
+
children: [
|
|
597
|
+
n,
|
|
598
|
+
" ",
|
|
599
|
+
/* @__PURE__ */ b(g, {
|
|
600
|
+
className: "relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180",
|
|
601
|
+
"aria-hidden": "true"
|
|
602
|
+
})
|
|
603
|
+
]
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
function Ne({ className: t, ...n }) {
|
|
607
|
+
return /* @__PURE__ */ b(_e, {
|
|
608
|
+
"data-slot": "navigation-menu-content",
|
|
609
|
+
className: e("group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/10 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 start-0 top-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto", t),
|
|
610
|
+
...n
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
function $({ className: t, ...n }) {
|
|
614
|
+
return /* @__PURE__ */ b("div", {
|
|
615
|
+
className: e("absolute start-0 top-full isolate z-50 flex justify-center"),
|
|
616
|
+
children: /* @__PURE__ */ b(be, {
|
|
617
|
+
"data-slot": "navigation-menu-viewport",
|
|
618
|
+
className: e("origin-top-center bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg shadow ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)", t),
|
|
619
|
+
...n
|
|
620
|
+
})
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
function Pe({ className: t, ...n }) {
|
|
624
|
+
return /* @__PURE__ */ b(me, {
|
|
625
|
+
"data-slot": "navigation-menu-link",
|
|
626
|
+
className: e("hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4", t),
|
|
627
|
+
...n
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
function Fe({ className: t, ...n }) {
|
|
631
|
+
return /* @__PURE__ */ b(he, {
|
|
632
|
+
"data-slot": "navigation-menu-indicator",
|
|
633
|
+
className: e("data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden", t),
|
|
634
|
+
...n,
|
|
635
|
+
children: /* @__PURE__ */ b("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ss-sm shadow-md" })
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
export { Pe as a, $ as c, je as i, Q as l, Ne as n, Ae as o, Fe as r, Me as s, ke as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./dist-CoTs6T03.js"),n=require("./dist-DW2ltK5-.js"),r=require("./dist-DZiOPWLp.js"),i=require("./dist-CBlqVBTk.js"),a=require("./dist-zmnQp5Xf.js"),o=require("./dist-CJqVmdrU.js"),s=require("./dist-DdAeWIwf.js"),c=require("./dist-Blgp9lfa.js"),l=require("./dist-RXrZgzkO.js"),u=require("./dist-Co_xSt6d.js"),d=require("./dist-R_G5UQRm.js"),f=require("./dist-B7jnFMko.js"),p=require("./dist-pqMcQ1Nk.js"),m=require("./dist-KFF7QKuL.js");let h=require("lucide-react"),g=require("react"),_=e.r(g,1);g=e.r(g);let v=require("react-dom");v=e.r(v,1);let y=require("react/jsx-runtime"),b=require("class-variance-authority");var x=Object.defineProperty,S=(e,t)=>x(e,`name`,{value:t,configurable:!0});function C(e){let t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}S(C,`usePrevious`);var w=Object.defineProperty,T=(e,t)=>w(e,`name`,{value:t,configurable:!0}),E={Automatic:`automatic`,Manual:`manual`},D={Vertical:`vertical`,Horizontal:`horizontal`},O={LTR:`ltr`,RTL:`rtl`},k=`NavigationMenu`,[A,j,M]=u.t(k),[N,P,F]=u.t(k),[I,ee]=n.t(k,[M,F]),[te,L]=I(k),[ne,re]=I(k),ie=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,value:r,onValueChange:c,defaultValue:l,delayDuration:u=200,skipDelayDuration:d=300,orientation:f=D.Horizontal,dir:p,activationMode:m=E.Automatic,...h}=e,[g,v]=_.useState(null),b=o.a(t,v),x=s.n(p),S=_.useRef(0),C=_.useRef(0),w=_.useRef(0),[O,A]=_.useState(!0),[j,M]=a.t({prop:r,onChange:T(e=>{let t=e!==``,n=d>0;t?(window.clearTimeout(w.current),n&&A(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>A(!0),d)),c?.(e)},`onChange`),defaultProp:l??``,caller:k}),N=_.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>M(``),150)},[M]),P=_.useCallback(e=>{window.clearTimeout(C.current),M(e)},[M]),F=_.useCallback(e=>{j===e?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),M(e)},u)},[j,M,u]);return _.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(w.current)},[]),(0,y.jsx)(ae,{scope:n,isRootMenu:!0,value:j,dir:x,orientation:f,activationMode:m,rootNavigationMenu:g,onTriggerEnter:e=>{m===E.Automatic&&(window.clearTimeout(S.current),O?F(e):P(e))},onTriggerLeave:()=>{m===E.Automatic&&(window.clearTimeout(S.current),N())},onContentEnter:()=>{m===E.Automatic&&window.clearTimeout(C.current)},onContentLeave:()=>{m===E.Automatic&&N()},onItemSelect:e=>{M(t=>t===e?``:e)},onItemDismiss:()=>M(``),children:(0,y.jsx)(i.t.nav,{"aria-label":`Main`,"data-orientation":f,dir:x,...h,ref:b})})},`NavigationMenu`)),ae=T(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,activationMode:o,children:s,value:c,onItemSelect:u,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:g}=e,[v,b]=_.useState(null),[x,S]=_.useState(new Map),[w,T]=_.useState(null);return(0,y.jsx)(te,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:c,previousValue:C(c),baseId:l.t(),dir:i,orientation:a,activationMode:o,viewport:v,onViewportChange:b,indicatorTrack:w,onIndicatorTrackChange:T,onTriggerEnter:p.t(f),onTriggerLeave:p.t(m),onContentEnter:p.t(h),onContentLeave:p.t(g),onItemSelect:p.t(u),onItemDismiss:p.t(d),onViewportContentChange:_.useCallback((e,t)=>{S(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:_.useCallback(e=>{S(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,y.jsx)(A.Provider,{scope:t,children:(0,y.jsx)(ne,{scope:t,items:x,children:s})})})},`NavigationMenuProvider`),oe=`NavigationMenuList`,se=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=L(oe,n),o=(0,y.jsx)(i.t.ul,{"data-orientation":a.orientation,...r,ref:t});return(0,y.jsx)(i.t.div,{style:{position:`relative`},ref:a.onIndicatorTrackChange,children:(0,y.jsx)(A.Slot,{scope:n,children:a.isRootMenu?(0,y.jsx)(K,{asChild:!0,children:o}):o})})},`NavigationMenuList`)),[ce,R]=I(`NavigationMenuItem`),le=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,value:r,...a}=e,o=l.t(),s=r||o||`LEGACY_REACT_AUTO_VALUE`,c=_.useRef(null),u=_.useRef(null),d=_.useRef(null),f=_.useRef(()=>{}),p=_.useRef(!1),m=_.useCallback((e=`start`)=>{if(c.current){f.current();let t=q(c.current);t.length&&J(e===`start`?t:t.reverse())}},[]),h=_.useCallback(()=>{if(c.current){let e=q(c.current);e.length&&(f.current=we(e))}},[]);return(0,y.jsx)(ce,{scope:n,value:s,triggerRef:u,contentRef:c,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,y.jsx)(i.t.li,{...a,ref:t})})},`NavigationMenuItem`)),z=`NavigationMenuTrigger`,ue=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,disabled:a,...s}=e,c=L(z,e.__scopeNavigationMenu),l=R(z,e.__scopeNavigationMenu),u=_.useRef(null),d=o.a(u,l.triggerRef,t),f=Z(c.baseId,l.value),p=Q(c.baseId,l.value),h=_.useRef(!1),g=_.useRef(!1),v=l.value===c.value;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(A.ItemSlot,{scope:n,value:l.value,children:(0,y.jsx)(Ce,{asChild:!0,children:(0,y.jsx)(i.t.button,{id:f,disabled:a,"data-disabled":a?``:void 0,"data-state":X(v),"aria-expanded":v,"aria-controls":v?p:void 0,...s,ref:d,onPointerEnter:r.t(e.onPointerEnter,()=>{g.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:r.t(e.onPointerMove,$(()=>{a||g.current||l.wasEscapeCloseRef.current||h.current||(c.onTriggerEnter(l.value),h.current=!0)})),onPointerLeave:r.t(e.onPointerLeave,$(()=>{a||(c.onTriggerLeave(),h.current=!1)})),onClick:r.t(e.onClick,()=>{c.onItemSelect(l.value),g.current=v}),onKeyDown:r.t(e.onKeyDown,e=>{let t={horizontal:`ArrowDown`,vertical:c.dir===O.RTL?`ArrowLeft`:`ArrowRight`}[c.orientation];v&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),v&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(m.n,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,r=n===u.current,i=t?.contains(n);(r||!i)&&l.onFocusProxyEnter(r?`start`:`end`)}}),c.viewport&&(0,y.jsx)(`span`,{"aria-owns":p})]})]})},`NavigationMenuTrigger`)),B=`navigationMenu.linkSelect`,de=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,active:a,onSelect:o,...s}=e;return(0,y.jsx)(Ce,{asChild:!0,children:(0,y.jsx)(i.t.a,{"data-active":a?``:void 0,"aria-current":a?`page`:void 0,...s,ref:t,onClick:r.t(e.onClick,e=>{let t=e.target,n=new CustomEvent(B,{bubbles:!0,cancelable:!0});if(t.addEventListener(B,e=>o?.(e),{once:!0}),i.n(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(U,{bubbles:!0,cancelable:!0});i.n(t,e)}},{checkForDefaultPrevented:!1})})})},`NavigationMenuLink`)),V=`NavigationMenuIndicator`,fe=_.forwardRef(T(function(e,t){let{forceMount:n,...r}=e,i=L(V,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?v.createPortal((0,y.jsx)(c.t,{present:n||a,children:(0,y.jsx)(pe,{...r,ref:t})}),i.indicatorTrack):null},`NavigationMenuIndicator`)),pe=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=L(V,n),o=j(n),[s,c]=_.useState(null),[l,u]=_.useState(null),d=a.orientation===D.Horizontal,f=!!a.value;_.useEffect(()=>{let e=o().find(e=>e.value===a.value)?.ref.current;e&&c(e)},[o,a.value]);let p=T(()=>{s&&u({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})},`handlePositionChange`);return Y(s,p),Y(a.indicatorTrack,p),l?(0,y.jsx)(i.t.div,{"aria-hidden":!0,"data-state":f?`visible`:`hidden`,"data-orientation":a.orientation,...r,ref:t,style:{position:`absolute`,...d?{left:0,width:l.size+`px`,transform:`translateX(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-x":`${l.offset}px`}:{top:0,height:l.size+`px`,transform:`translateY(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-y":`${l.offset}px`},...r.style}}):null},`NavigationMenuIndicatorImpl`)),H=`NavigationMenuContent`,me=_.forwardRef(T(function(e,t){let{forceMount:n,...i}=e,a=L(H,e.__scopeNavigationMenu),s=R(H,e.__scopeNavigationMenu),l=o.a(s.contentRef,t),u=s.value===a.value,d=X(u),f={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...i};return a.viewport?(0,y.jsx)(he,{"data-state":d,forceMount:n,...f,ref:l}):(0,y.jsx)(c.t,{present:n||u,children:(0,y.jsx)(W,{"data-state":d,...f,ref:l,onPointerEnter:r.t(e.onPointerEnter,a.onContentEnter),onPointerLeave:r.t(e.onPointerLeave,$(a.onContentLeave)),style:{pointerEvents:!u&&a.isRootMenu?`none`:void 0,...f.style}})})},`NavigationMenuContent`)),he=_.forwardRef(T(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=L(H,e.__scopeNavigationMenu);return f.t(()=>{n(e.value,{ref:t,...e})},[e,t,n]),f.t(()=>()=>r(e.value),[e.value,r]),null},`ViewportContentMounter`)),U=`navigationMenu.rootContentDismiss`,W=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,value:i,triggerRef:a,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:u,...f}=e,p=L(H,n),m=_.useRef(null),h=o.a(m,t),g=Z(p.baseId,i),v=Q(p.baseId,i),b=j(n),x=_.useRef(null),{onItemDismiss:S}=p;_.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=T(()=>{S(),l(),e.contains(document.activeElement)&&a.current?.focus()},`handleClose`);return e.addEventListener(U,t),()=>e.removeEventListener(U,t)}},[p.isRootMenu,e.value,a,S,l]);let C=_.useMemo(()=>{let e=b().map(e=>e.value);p.dir===O.RTL&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=i===p.value,a=n===e.indexOf(i);if(!r&&!a)return x.current;let o=(()=>{if(t!==n){if(r&&n!==-1)return t>n?`from-end`:`from-start`;if(a&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return x.current=o,o},[p.previousValue,p.value,p.dir,b,i]);return(0,y.jsx)(K,{asChild:!0,children:(0,y.jsx)(d.t,{id:v,"aria-labelledby":g,"data-motion":C,"data-orientation":p.orientation,...f,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(U,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:r.t(e.onFocusOutside,e=>{u();let t=e.target,n=e.detail.originalEvent.relatedTarget,r=p.rootNavigationMenu?.contains(t),i=p.rootNavigationMenu?.contains(n);(r||!i)&&e.preventDefault()}),onPointerDownOutside:r.t(e.onPointerDownOutside,e=>{let t=e.target,n=b().some(e=>e.ref.current?.contains(t)),r=p.isRootMenu&&p.viewport?.contains(t);(n||r||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:r.t(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!t){let t=q(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);J(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:r.t(e.onEscapeKeyDown,e=>{c.current=!0})})})},`NavigationMenuContentImpl`)),G=`NavigationMenuViewport`,ge=o.r(G),_e=_.forwardRef(T(function(e,t){let{forceMount:n,...r}=e,i=!!L(G,e.__scopeNavigationMenu).value;return(0,y.jsx)(c.t,{present:n||i,children:(0,y.jsx)(ve,{...r,ref:t})})},`NavigationMenuViewport`)),ve=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,children:a,...s}=e,l=L(G,n),u=o.a(t,l.onViewportChange),d=re(H,e.__scopeNavigationMenu),[f,p]=_.useState(null),[m,h]=_.useState(null),g=f?f?.width+`px`:void 0,v=f?f?.height+`px`:void 0,b=!!l.value,x=b?l.value:l.previousValue;return Y(m,T(()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})},`handleSizeChange`)),(0,y.jsxs)(i.t.div,{"data-state":X(b),"data-orientation":l.orientation,...s,ref:u,style:{pointerEvents:!b&&l.isRootMenu?`none`:void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":v,...s.style},onPointerEnter:r.t(e.onPointerEnter,l.onContentEnter),onPointerLeave:r.t(e.onPointerLeave,$(l.onContentLeave)),children:[(0,y.jsx)(ge,{children:a}),Array.from(d.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=x===e;return(0,y.jsx)(c.t,{present:n||i,children:(0,y.jsx)(ye,{...r,contentRef:t,isActive:i,onActiveContentChange:h})},e)})]})},`NavigationMenuViewportImpl`)),ye=T(({contentRef:e,isActive:t,onActiveContentChange:n,...r})=>{let i=_.useCallback(e=>{t&&e&&n(e)},[t,n]),a=o.a(e,i);return(0,y.jsx)(W,{...r,ref:a})},`NavigationMenuViewportItem`),be=`FocusGroup`,K=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,...r}=e,a=L(be,n);return(0,y.jsx)(N.Provider,{scope:n,children:(0,y.jsx)(N.Slot,{scope:n,children:(0,y.jsx)(i.t.div,{dir:a.dir,...r,ref:t})})})},`FocusGroup`)),xe=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`],Se=`FocusGroupItem`,Ce=_.forwardRef(T(function(e,t){let{__scopeNavigationMenu:n,...a}=e,o=P(n),s=L(Se,n);return(0,y.jsx)(N.ItemSlot,{scope:n,children:(0,y.jsx)(i.t.button,{...a,ref:t,onKeyDown:r.t(e.onKeyDown,e=>{if([`Home`,`End`,...xe].includes(e.key)){let t=o().map(e=>e.ref.current);if([s.dir===O.RTL?`ArrowRight`:`ArrowLeft`,`ArrowUp`,`End`].includes(e.key)&&t.reverse(),xe.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>J(t)),e.preventDefault()}})})})},`FocusGroupItem`));function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:T(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}T(q,`getTabbableCandidates`);function J(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}T(J,`focusFirst`);function we(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}T(we,`removeFromTabOrder`);function Y(e,t){let n=p.t(t);f.t(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}T(Y,`useResizeObserver`);function X(e){return e?`open`:`closed`}T(X,`getOpenState`);function Z(e,t){return`${e}-trigger-${t}`}T(Z,`makeTriggerId`);function Q(e,t){return`${e}-content-${t}`}T(Q,`makeContentId`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}T($,`whenMouse`);function Te({className:e,children:n,viewport:r=!0,...i}){return(0,y.jsxs)(ie,{"data-slot":`navigation-menu`,"data-viewport":r,className:t.t(`group/navigation-menu relative flex max-w-max flex-1 items-center justify-center`,e),...i,children:[n,r&&(0,y.jsx)(je,{})]})}function Ee({className:e,...n}){return(0,y.jsx)(se,{"data-slot":`navigation-menu-list`,className:t.t(`group flex flex-1 list-none items-center justify-center gap-0`,e),...n})}function De({className:e,...n}){return(0,y.jsx)(le,{"data-slot":`navigation-menu-item`,className:t.t(`relative`,e),...n})}var Oe=(0,b.cva)(`group/navigation-menu-trigger hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted inline-flex h-9 w-max items-center justify-center rounded-lg px-2.5 py-1.5 text-sm font-medium transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50`);function ke({className:e,children:n,...r}){return(0,y.jsxs)(ue,{"data-slot":`navigation-menu-trigger`,className:t.t(Oe(),`group`,e),...r,children:[n,` `,(0,y.jsx)(h.ChevronDownIcon,{className:`relative top-px ms-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180 group-data-popup-open/navigation-menu-trigger:rotate-180`,"aria-hidden":`true`})]})}function Ae({className:e,...n}){return(0,y.jsx)(me,{"data-slot":`navigation-menu-content`,className:t.t(`group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:ring-foreground/10 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 start-0 top-0 w-full p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none md:absolute md:w-auto`,e),...n})}function je({className:e,...n}){return(0,y.jsx)(`div`,{className:t.t(`absolute start-0 top-full isolate z-50 flex justify-center`),children:(0,y.jsx)(_e,{"data-slot":`navigation-menu-viewport`,className:t.t(`origin-top-center bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg shadow ring-1 duration-100 md:w-(--radix-navigation-menu-viewport-width)`,e),...n})})}function Me({className:e,...n}){return(0,y.jsx)(de,{"data-slot":`navigation-menu-link`,className:t.t(`hover:bg-muted focus:bg-muted focus-visible:ring-ring/50 data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none focus-visible:ring-3 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md [&_svg:not([class*='size-'])]:size-4`,e),...n})}function Ne({className:e,...n}){return(0,y.jsx)(fe,{"data-slot":`navigation-menu-indicator`,className:t.t(`data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden`,e),...n,children:(0,y.jsx)(`div`,{className:`bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ss-sm shadow-md`})})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Te}});
|
package/dist/navigation-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./navigation-menu-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./navigation-menu-kPwxYZCR.js");exports.NavigationMenu=e.t,exports.NavigationMenuContent=e.n,exports.NavigationMenuIndicator=e.r,exports.NavigationMenuItem=e.i,exports.NavigationMenuLink=e.a,exports.NavigationMenuList=e.o,exports.NavigationMenuTrigger=e.s,exports.NavigationMenuViewport=e.c,exports.navigationMenuTriggerStyle=e.l;
|