@gv-tech/ui-web 2.22.1 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-Dd8Hrexd.mjs +244 -0
- package/dist/accordion-DdSOiVyo.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +5 -7
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -2
- package/dist/alert-dialog-B7zX3gJX.js +7 -0
- package/dist/alert-dialog-BQoG5g_w.mjs +213 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +17 -21
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +2 -4
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +8 -8
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +37 -29
- package/dist/{aspect-ratio-CFWobEnT.mjs → aspect-ratio-DnChDaBi.mjs} +10 -4
- package/dist/{aspect-ratio-D9dApiWv.js → aspect-ratio-QD1ZXP2B.js} +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.d.ts +2 -4
- package/dist/aspect-ratio.d.ts.map +1 -1
- package/dist/aspect-ratio.mjs +1 -1
- package/dist/avatar-C4onD8-4.mjs +127 -0
- package/dist/avatar-ki_M47qG.js +1 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +10 -7
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +2 -3
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +4 -5
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +17 -13
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +9 -17
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +67 -58
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +11 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.mjs +39 -0
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +3 -5
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +33 -26
- package/dist/calendar-D9sapvfY.js +1 -0
- package/dist/{calendar-DtFx4qdT.mjs → calendar-Dg6VGycy.mjs} +631 -625
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +5 -5
- 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 +10 -10
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +53 -40
- package/dist/carousel-6oFHLN7R.js +1 -0
- package/dist/{carousel-PQJ97GjQ.mjs → carousel-DbDoNdqJ.mjs} +54 -59
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +18 -13
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +2 -4
- package/dist/chart.cjs +3 -3
- package/dist/chart.d.ts +35 -7
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +64 -71
- package/dist/checkbox-BLgY82mB.js +1 -0
- package/dist/{checkbox-BOmSuATv.mjs → checkbox-Bts_zfqd.mjs} +32 -29
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +2 -5
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -2
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts +4 -6
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.mjs +21 -3
- package/dist/combobox-6qNx9Wbb.js +4 -0
- package/dist/combobox-yDMqxM_J.mjs +5522 -0
- package/dist/combobox.cjs +1 -0
- package/dist/combobox.d.ts +21 -0
- package/dist/combobox.d.ts.map +1 -0
- package/dist/combobox.mjs +4 -0
- package/dist/command-C6wJ5giF.mjs +576 -0
- package/dist/command-DCrPL1iW.js +1 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +16 -80
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -2
- package/dist/context-menu-CydUpD4W.mjs +349 -0
- package/dist/context-menu-DQ7XuuG5.js +1 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +29 -21
- 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 +15 -17
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +89 -43
- package/dist/direction.cjs +1 -0
- package/dist/direction.d.ts +7 -0
- package/dist/direction.d.ts.map +1 -0
- package/dist/direction.mjs +15 -0
- package/dist/dist-1C8JOpVg.js +1 -0
- package/dist/{dist-CTaBktQl.mjs → dist-B1OcuinL.mjs} +93 -92
- package/dist/dist-BGZDG175.mjs +199 -0
- package/dist/dist-BPBwSSyk.mjs +8 -0
- package/dist/{dist-BTlmz3JV.js → dist-BPX1UGAz2.js} +1 -1
- package/dist/dist-BRsDdVlJ.js +1 -0
- package/dist/{dist-_LAgxsbh.mjs → dist-BWwCr-xN.mjs} +10 -9
- package/dist/dist-BYdcKuDi.mjs +16 -0
- package/dist/{dist-DCKyUINZ.mjs → dist-BlB11V_z.mjs} +1 -1
- package/dist/dist-CCXBcfM3.js +1 -0
- package/dist/{dist--EFQaGUD.mjs → dist-CDU9vno-.mjs} +4 -4
- package/dist/dist-CJolxugc.js +1 -0
- package/dist/dist-CQhWBhaI.mjs +91 -0
- package/dist/dist-CRLbUj9C.js +1 -0
- package/dist/dist-CWElW7UD.js +1 -0
- package/dist/{dist-NIAlh3KC.js → dist-CXbzwSnE.js} +1 -1
- package/dist/{dist-C5EZ0AD6.mjs → dist-CYj6O95k.mjs} +42 -41
- package/dist/{dist-Bjlzl0jN.mjs → dist-Cacc4QIh.mjs} +13 -10
- package/dist/dist-ChuP-5Gb.js +1 -0
- package/dist/dist-CiM892Rg.js +1 -0
- package/dist/{dist-Doq7FY_P.js → dist-CuMQq0hV.js} +1 -1
- package/dist/dist-DMnXk8Uo.js +1 -0
- package/dist/{dist-CRmJFaEL.mjs → dist-DPBTfUqI.mjs} +18 -17
- package/dist/dist-DR0lXVFG.js +1 -0
- package/dist/dist-Da7BU5sd.js +5 -0
- package/dist/{dist-D_tuvB-W.mjs → dist-Dz3LbuDd.mjs} +8 -9
- package/dist/{dist-9gQKRtL7.mjs → dist-GhACpuJb2.mjs} +1 -1
- package/dist/dist-o4zlRoDG.js +1 -0
- package/dist/{dist-DdVp13bp.mjs → dist-rGeQfsgN.mjs} +1 -1
- package/dist/{dist-BQOrag93.mjs → dist-tvb2Wafb.mjs} +22 -21
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +10 -21
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +74 -45
- package/dist/dropdown-menu-BoJvZ3Fj.js +1 -0
- package/dist/dropdown-menu-CriaO1_i.mjs +347 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +27 -21
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -0
- package/dist/empty.d.ts +13 -0
- package/dist/empty.d.ts.map +1 -0
- package/dist/empty.mjs +60 -0
- package/dist/{es2015-DkZq_IIO.mjs → es2015-BhmbVcui.mjs} +2 -2
- package/dist/{es2015-Ca60p53M.js → es2015-D22cM8Q_.js} +1 -1
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +18 -0
- package/dist/field.d.ts.map +1 -0
- package/dist/field.mjs +109 -0
- package/dist/floating-ui.react-dom-DgS_bqyY.mjs +1089 -0
- package/dist/floating-ui.react-dom-DpCJEf_x.js +1 -0
- package/dist/form.cjs +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-theme.d.ts +16 -0
- package/dist/hooks/use-theme.d.ts.map +1 -1
- package/dist/{hover-card-BOk3-K0k.mjs → hover-card-CJ-ibpbC.mjs} +53 -33
- package/dist/hover-card-CK5SjVLL.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +4 -6
- 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.d.ts +14 -43
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +66 -54
- package/dist/input-group.cjs +1 -0
- package/dist/input-group.d.ts +18 -0
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input-group.mjs +78 -0
- package/dist/input-otp-BH_9dVhh.mjs +391 -0
- package/dist/input-otp-BibboKMt.js +20 -0
- package/dist/input-otp.cjs +1 -0
- package/dist/input-otp.d.ts +9 -0
- package/dist/input-otp.d.ts.map +1 -0
- package/dist/input-otp.mjs +4 -0
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -4
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +11 -11
- package/dist/item.cjs +1 -0
- package/dist/item.d.ts +25 -0
- package/dist/item.d.ts.map +1 -0
- package/dist/item.mjs +118 -0
- package/dist/kbd.cjs +1 -0
- package/dist/kbd.d.ts +5 -0
- package/dist/kbd.d.ts.map +1 -0
- package/dist/kbd.mjs +20 -0
- package/dist/label-BXMSoyyu.js +1 -0
- package/dist/label-C8GNfPU0.mjs +25 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +2 -5
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -2
- package/dist/menubar-BcyqIJgy.mjs +441 -0
- package/dist/menubar-DPxokWFI.js +1 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +25 -19
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/native-select.cjs +1 -0
- package/dist/native-select.d.ts +8 -0
- package/dist/native-select.d.ts.map +1 -0
- package/dist/native-select.mjs +39 -0
- package/dist/navigation-menu-2yE2MUu-.js +1 -0
- package/dist/navigation-menu-N8gkxEXE.mjs +628 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +11 -11
- 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 +13 -26
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +76 -59
- package/dist/popover-D1AO-E8p.js +1 -0
- package/dist/popover-wQACF3ut.mjs +245 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +9 -8
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +2 -3
- package/dist/{progress-30ehxjKg.mjs → progress-DPWSEWa5.mjs} +19 -14
- package/dist/{progress-BqWHea4f.js → progress-ShXZwOfj.js} +2 -2
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -4
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/radio-group-CQbZCQmj.mjs +199 -0
- package/dist/radio-group-DAEi5vW_.js +1 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +3 -8
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -2
- package/dist/resizable-Cv-mKMKP.js +1 -0
- package/dist/{resizable-DhOcAmNX.mjs → resizable-DJSE3e5L.mjs} +310 -282
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +6 -7
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/{scroll-area-DJcPs0_v.mjs → scroll-area-8QcqkHnC.mjs} +69 -58
- package/dist/scroll-area-Cqqinhxf.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +3 -5
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -2
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +15 -14
- package/dist/select-DdUveoSA.js +1 -0
- package/dist/{select-D4bxRFq5.mjs → select-yoeH35x2.mjs} +279 -245
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +13 -13
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/{separator-DZACUutC.mjs → separator-BU1ea5gl.mjs} +14 -10
- package/dist/separator-DBjErwHf.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +2 -4
- 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 +13 -26
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +84 -54
- package/dist/shim-B5sEfNEJ.js +1 -0
- package/dist/shim-DX33EwUw.mjs +91 -0
- package/dist/sidebar-B-sWccYh.mjs +355 -0
- package/dist/sidebar-DIW-1cin.js +1 -0
- package/dist/sidebar.cjs +1 -0
- package/dist/sidebar.d.ts +45 -0
- package/dist/sidebar.d.ts.map +1 -0
- package/dist/sidebar.mjs +5 -0
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -4
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/{slider-DTdrUy_s.mjs → slider-CCPXejUF.mjs} +81 -59
- package/dist/slider-w05gD_Ix.js +1 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +2 -4
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +1 -5
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +23 -16
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +4 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.mjs +15 -0
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.mjs +1 -1
- package/dist/switch-CDBqsWQa.mjs +112 -0
- package/dist/switch-X2WBJsUu.js +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +4 -4
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -10
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +62 -54
- package/dist/tabs-DzvgrVzk.js +1 -0
- package/dist/tabs-KDeHjVQU.mjs +160 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +10 -8
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +2 -2
- package/dist/text.d.ts +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -4
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +10 -10
- package/dist/{theme-toggle-Dtze9fyN.js → theme-toggle-C2Y4bIM3.js} +1 -1
- package/dist/{theme-toggle-DAHBgdy0.mjs → theme-toggle-clE-HpSS.mjs} +9 -9
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast-1keyrzem.js +1 -0
- package/dist/{toast-G9LdgDDE.mjs → toast-DVI6jPq5.mjs} +102 -101
- package/dist/toast.cjs +1 -1
- package/dist/toast.d.ts.map +1 -1
- package/dist/toast.mjs +1 -1
- package/dist/{toaster-WQJjavlc.mjs → toaster-Czhz-ktg.mjs} +1 -1
- package/dist/{toaster-CKD4CKAZ.js → toaster-DfDb2-aI.js} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-BGkq5XDM.js +1 -0
- package/dist/toggle-BfIIdlA6.mjs +58 -0
- package/dist/toggle-group-CbqgoPFU.mjs +167 -0
- package/dist/toggle-group-D7hR4BT2.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +7 -9
- package/dist/toggle-group.d.ts.map +1 -1
- package/dist/toggle-group.mjs +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.d.ts +6 -5
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +2 -19
- package/dist/tooltip-CAIbshMk.js +1 -0
- package/dist/{tooltip-BHEcM7lO.mjs → tooltip-D_o8Z-Ya.mjs} +106 -90
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +5 -10
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +8 -6
- package/src/accordion.tsx +58 -51
- package/src/alert-dialog.tsx +140 -93
- package/src/alert.tsx +44 -33
- package/src/aspect-ratio.tsx +10 -4
- package/src/avatar.tsx +92 -37
- package/src/badge.tsx +24 -14
- package/src/breadcrumb.tsx +73 -85
- package/src/button-group.tsx +78 -0
- package/src/button.tsx +46 -24
- package/src/calendar.tsx +52 -40
- package/src/card.tsx +67 -42
- package/src/carousel.tsx +164 -174
- package/src/chart.tsx +206 -232
- package/src/checkbox.tsx +17 -17
- package/src/collapsible.tsx +16 -10
- package/src/combobox.tsx +282 -0
- package/src/command.tsx +123 -120
- package/src/context-menu.tsx +206 -179
- package/src/dialog.tsx +111 -65
- package/src/direction.tsx +18 -0
- package/src/drawer.tsx +75 -78
- package/src/dropdown-menu.tsx +211 -180
- package/src/empty.tsx +83 -0
- package/src/field.tsx +217 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hover-card.tsx +33 -27
- package/src/index.ts +108 -154
- package/src/input-group.tsx +143 -0
- package/src/input-otp.tsx +81 -0
- package/src/input.tsx +8 -8
- package/src/item.tsx +185 -0
- package/src/kbd.tsx +21 -0
- package/src/label.tsx +17 -14
- package/src/menubar.tsx +211 -199
- package/src/native-select.tsx +54 -0
- package/src/navigation-menu.tsx +115 -110
- package/src/pagination.tsx +65 -80
- package/src/popover.tsx +53 -41
- package/src/progress.tsx +22 -20
- package/src/radio-group.tsx +22 -34
- package/src/resizable.tsx +34 -49
- package/src/scroll-area.tsx +43 -35
- package/src/search.tsx +12 -9
- package/src/select.tsx +138 -133
- package/src/separator.tsx +25 -18
- package/src/sheet.tsx +97 -127
- package/src/sidebar.tsx +660 -0
- package/src/skeleton.tsx +7 -6
- package/src/slider.tsx +51 -19
- package/src/sonner.tsx +22 -12
- package/src/spinner.tsx +10 -0
- package/src/support-fab.tsx +1 -1
- package/src/switch.tsx +28 -21
- package/src/table.tsx +61 -87
- package/src/tabs.tsx +75 -56
- package/src/textarea.tsx +8 -10
- package/src/toast.tsx +5 -0
- package/src/toggle-group.tsx +76 -40
- package/src/toggle.tsx +35 -15
- package/src/tooltip.tsx +41 -43
- package/dist/accordion-BTF24dQU.js +0 -1
- package/dist/accordion-DHTV2Am8.mjs +0 -221
- package/dist/alert-dialog-Bwn2-Uyf.mjs +0 -164
- package/dist/alert-dialog-DBMX5E0-.js +0 -7
- package/dist/avatar-BI7s8omb.js +0 -1
- package/dist/avatar-hzlewncL.mjs +0 -185
- package/dist/calendar-ykdYhTj9.js +0 -1
- package/dist/carousel-DSmAn1nc.js +0 -1
- package/dist/checkbox-dK6DJKeV.js +0 -1
- package/dist/command-CDSbHz4C.js +0 -1
- package/dist/command-j0rZqZ7B.mjs +0 -531
- package/dist/context-menu-BWgLbKLP.js +0 -1
- package/dist/context-menu-CWSzssAO.mjs +0 -292
- package/dist/dist-B28N93_W.js +0 -1
- package/dist/dist-B43Kk7ii.js +0 -1
- package/dist/dist-BTPL2C0R.js +0 -1
- package/dist/dist-BjEG16aJ.mjs +0 -111
- package/dist/dist-BlKAvKHD.js +0 -1
- package/dist/dist-C3Z3atn0.mjs +0 -10
- package/dist/dist-C4q8IPk4.mjs +0 -28
- package/dist/dist-CPglx4om.js +0 -1
- package/dist/dist-CV2U2xFR.js +0 -1
- package/dist/dist-Cv9YaN1n.mjs +0 -61
- package/dist/dist-DAe-fOIM.mjs +0 -25
- package/dist/dist-DQAJMTj0.js +0 -1
- package/dist/dist-DaCPM8ia.js +0 -1
- package/dist/dist-DasmYflz.js +0 -1
- package/dist/dist-DneYUKe0.js +0 -1
- package/dist/dist-Du2jbEkG.mjs +0 -1282
- package/dist/dist-Dw6-GQAn.js +0 -1
- package/dist/dist-DwGlbIjj.js +0 -5
- package/dist/dist-Dzjlf9ug.js +0 -1
- package/dist/dist-GaBUW_Tu.js +0 -1
- package/dist/dropdown-menu-Bz5LlLjl.js +0 -1
- package/dist/dropdown-menu-Cp1qpOLk.mjs +0 -288
- package/dist/hover-card-CyKIuXGH.js +0 -1
- package/dist/label-DGuuPl_e.mjs +0 -22
- package/dist/label-gVkdll-j.js +0 -1
- package/dist/menubar-DNrIQhY5.mjs +0 -410
- package/dist/menubar-DkjAo6qJ.js +0 -1
- package/dist/navigation-menu-1cmCEi0j.mjs +0 -602
- package/dist/navigation-menu-qPt8hpr5.js +0 -1
- package/dist/popover-CbM1tqdC.mjs +0 -201
- package/dist/popover-DGTgqdKX.js +0 -1
- package/dist/radio-group-BGThTiQM.mjs +0 -193
- package/dist/radio-group-ClFpAswm.js +0 -1
- package/dist/resizable-D09wr7tV.js +0 -1
- package/dist/scroll-area-W_aOLOdE.js +0 -1
- package/dist/select-BQtkQBiD.js +0 -1
- package/dist/separator-BmkhoDge.js +0 -1
- package/dist/slider-Bkluwc3b.js +0 -1
- package/dist/switch-DENAxyga.js +0 -1
- package/dist/switch-DbsdyQVg.mjs +0 -103
- package/dist/tabs-C9sMowgZ.mjs +0 -136
- package/dist/tabs-DeK-zpy4.js +0 -1
- package/dist/toast-BtXY2QTe.js +0 -1
- package/dist/toggle-group-B0H9TwdD.mjs +0 -155
- package/dist/toggle-group-CAyztsIl.js +0 -1
- package/dist/tooltip-CKcMl7tK.js +0 -1
- /package/dist/{dist-C_45sBzc.js → dist-C_45sBzc2.js} +0 -0
- /package/dist/{dist-DGzGsPqo.mjs → dist-DGzGsPqo2.mjs} +0 -0
|
@@ -1,602 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-A_oVsYw5.mjs";
|
|
2
|
-
import { n as t } from "./dist-Bm8Cuttq.mjs";
|
|
3
|
-
import { n, t as r } from "./dist-DAe-fOIM.mjs";
|
|
4
|
-
import { n as i, r as a, t as o } from "./dist-BjEG16aJ.mjs";
|
|
5
|
-
import { t as s } from "./dist-D_tuvB-W.mjs";
|
|
6
|
-
import { t as c } from "./dist-C9PlF532.mjs";
|
|
7
|
-
import { t as l } from "./dist-DuTFGM_g.mjs";
|
|
8
|
-
import { t as u } from "./dist-DdVp13bp.mjs";
|
|
9
|
-
import { t as d } from "./dist-Df2ez-DA.mjs";
|
|
10
|
-
import { t as f } from "./dist-C3Z3atn0.mjs";
|
|
11
|
-
import { t as p } from "./dist-CCokLFyA.mjs";
|
|
12
|
-
import { n as m } from "./dist-_LAgxsbh.mjs";
|
|
13
|
-
import { t as h } from "./dist-xgVOvcNx.mjs";
|
|
14
|
-
import { t as g } from "./dist-DCKyUINZ.mjs";
|
|
15
|
-
import * as _ from "react";
|
|
16
|
-
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
17
|
-
import x from "react-dom";
|
|
18
|
-
import { ChevronDown as S } from "lucide-react";
|
|
19
|
-
import { cva as C } from "class-variance-authority";
|
|
20
|
-
//#region ../../node_modules/.bun/@radix-ui+react-navigation-menu@1.2.14+2d3f272c3a65784a/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs
|
|
21
|
-
var w = "NavigationMenu", [T, E, D] = s(w), [O, k, A] = s(w), [j, ee] = t(w, [D, A]), [te, M] = j(w), [ne, re] = j(w), N = _.forwardRef((e, t) => {
|
|
22
|
-
let { __scopeNavigationMenu: r, value: i, onValueChange: a, defaultValue: s, delayDuration: c = 200, skipDelayDuration: u = 300, orientation: d = "horizontal", dir: p, ...m } = e, [h, g] = _.useState(null), v = n(t, (e) => g(e)), b = f(p), x = _.useRef(0), S = _.useRef(0), C = _.useRef(0), [T, E] = _.useState(!0), [D, O] = l({
|
|
23
|
-
prop: i,
|
|
24
|
-
onChange: (e) => {
|
|
25
|
-
let t = e !== "", n = u > 0;
|
|
26
|
-
t ? (window.clearTimeout(C.current), n && E(!1)) : (window.clearTimeout(C.current), C.current = window.setTimeout(() => E(!0), u)), a?.(e);
|
|
27
|
-
},
|
|
28
|
-
defaultProp: s ?? "",
|
|
29
|
-
caller: w
|
|
30
|
-
}), k = _.useCallback(() => {
|
|
31
|
-
window.clearTimeout(S.current), S.current = window.setTimeout(() => O(""), 150);
|
|
32
|
-
}, [O]), A = _.useCallback((e) => {
|
|
33
|
-
window.clearTimeout(S.current), O(e);
|
|
34
|
-
}, [O]), j = _.useCallback((e) => {
|
|
35
|
-
D === e ? window.clearTimeout(S.current) : x.current = window.setTimeout(() => {
|
|
36
|
-
window.clearTimeout(S.current), O(e);
|
|
37
|
-
}, c);
|
|
38
|
-
}, [
|
|
39
|
-
D,
|
|
40
|
-
O,
|
|
41
|
-
c
|
|
42
|
-
]);
|
|
43
|
-
return _.useEffect(() => () => {
|
|
44
|
-
window.clearTimeout(x.current), window.clearTimeout(S.current), window.clearTimeout(C.current);
|
|
45
|
-
}, []), /* @__PURE__ */ y(ae, {
|
|
46
|
-
scope: r,
|
|
47
|
-
isRootMenu: !0,
|
|
48
|
-
value: D,
|
|
49
|
-
dir: b,
|
|
50
|
-
orientation: d,
|
|
51
|
-
rootNavigationMenu: h,
|
|
52
|
-
onTriggerEnter: (e) => {
|
|
53
|
-
window.clearTimeout(x.current), T ? j(e) : A(e);
|
|
54
|
-
},
|
|
55
|
-
onTriggerLeave: () => {
|
|
56
|
-
window.clearTimeout(x.current), k();
|
|
57
|
-
},
|
|
58
|
-
onContentEnter: () => window.clearTimeout(S.current),
|
|
59
|
-
onContentLeave: k,
|
|
60
|
-
onItemSelect: (e) => {
|
|
61
|
-
O((t) => t === e ? "" : e);
|
|
62
|
-
},
|
|
63
|
-
onItemDismiss: () => O(""),
|
|
64
|
-
children: /* @__PURE__ */ y(o.nav, {
|
|
65
|
-
"aria-label": "Main",
|
|
66
|
-
"data-orientation": d,
|
|
67
|
-
dir: b,
|
|
68
|
-
...m,
|
|
69
|
-
ref: v
|
|
70
|
-
})
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
N.displayName = w;
|
|
74
|
-
var P = "NavigationMenuSub", ie = _.forwardRef((e, t) => {
|
|
75
|
-
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, orientation: s = "horizontal", ...c } = e, u = M(P, n), [d, f] = l({
|
|
76
|
-
prop: r,
|
|
77
|
-
onChange: i,
|
|
78
|
-
defaultProp: a ?? "",
|
|
79
|
-
caller: P
|
|
80
|
-
});
|
|
81
|
-
return /* @__PURE__ */ y(ae, {
|
|
82
|
-
scope: n,
|
|
83
|
-
isRootMenu: !1,
|
|
84
|
-
value: d,
|
|
85
|
-
dir: u.dir,
|
|
86
|
-
orientation: s,
|
|
87
|
-
rootNavigationMenu: u.rootNavigationMenu,
|
|
88
|
-
onTriggerEnter: (e) => f(e),
|
|
89
|
-
onItemSelect: (e) => f(e),
|
|
90
|
-
onItemDismiss: () => f(""),
|
|
91
|
-
children: /* @__PURE__ */ y(o.div, {
|
|
92
|
-
"data-orientation": s,
|
|
93
|
-
...c,
|
|
94
|
-
ref: t
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
ie.displayName = P;
|
|
99
|
-
var ae = (e) => {
|
|
100
|
-
let { scope: t, isRootMenu: n, rootNavigationMenu: r, dir: i, orientation: a, children: o, value: s, onItemSelect: c, onItemDismiss: l, onTriggerEnter: u, onTriggerLeave: f, onContentEnter: m, onContentLeave: g } = e, [v, b] = _.useState(null), [x, S] = _.useState(/* @__PURE__ */ new Map()), [C, w] = _.useState(null);
|
|
101
|
-
return /* @__PURE__ */ y(te, {
|
|
102
|
-
scope: t,
|
|
103
|
-
isRootMenu: n,
|
|
104
|
-
rootNavigationMenu: r,
|
|
105
|
-
value: s,
|
|
106
|
-
previousValue: h(s),
|
|
107
|
-
baseId: d(),
|
|
108
|
-
dir: i,
|
|
109
|
-
orientation: a,
|
|
110
|
-
viewport: v,
|
|
111
|
-
onViewportChange: b,
|
|
112
|
-
indicatorTrack: C,
|
|
113
|
-
onIndicatorTrackChange: w,
|
|
114
|
-
onTriggerEnter: p(u),
|
|
115
|
-
onTriggerLeave: p(f),
|
|
116
|
-
onContentEnter: p(m),
|
|
117
|
-
onContentLeave: p(g),
|
|
118
|
-
onItemSelect: p(c),
|
|
119
|
-
onItemDismiss: p(l),
|
|
120
|
-
onViewportContentChange: _.useCallback((e, t) => {
|
|
121
|
-
S((n) => (n.set(e, t), new Map(n)));
|
|
122
|
-
}, []),
|
|
123
|
-
onViewportContentRemove: _.useCallback((e) => {
|
|
124
|
-
S((t) => t.has(e) ? (t.delete(e), new Map(t)) : t);
|
|
125
|
-
}, []),
|
|
126
|
-
children: /* @__PURE__ */ y(T.Provider, {
|
|
127
|
-
scope: t,
|
|
128
|
-
children: /* @__PURE__ */ y(ne, {
|
|
129
|
-
scope: t,
|
|
130
|
-
items: x,
|
|
131
|
-
children: o
|
|
132
|
-
})
|
|
133
|
-
})
|
|
134
|
-
});
|
|
135
|
-
}, oe = "NavigationMenuList", se = _.forwardRef((e, t) => {
|
|
136
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = M(oe, n), a = /* @__PURE__ */ y(o.ul, {
|
|
137
|
-
"data-orientation": i.orientation,
|
|
138
|
-
...r,
|
|
139
|
-
ref: t
|
|
140
|
-
});
|
|
141
|
-
return /* @__PURE__ */ y(o.div, {
|
|
142
|
-
style: { position: "relative" },
|
|
143
|
-
ref: i.onIndicatorTrackChange,
|
|
144
|
-
children: /* @__PURE__ */ y(T.Slot, {
|
|
145
|
-
scope: n,
|
|
146
|
-
children: i.isRootMenu ? /* @__PURE__ */ y(_e, {
|
|
147
|
-
asChild: !0,
|
|
148
|
-
children: a
|
|
149
|
-
}) : a
|
|
150
|
-
})
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
se.displayName = oe;
|
|
154
|
-
var ce = "NavigationMenuItem", [le, ue] = j(ce), F = _.forwardRef((e, t) => {
|
|
155
|
-
let { __scopeNavigationMenu: n, value: r, ...i } = e, a = d(), s = r || a || "LEGACY_REACT_AUTO_VALUE", c = _.useRef(null), l = _.useRef(null), u = _.useRef(null), f = _.useRef(() => {}), p = _.useRef(!1), m = _.useCallback((e = "start") => {
|
|
156
|
-
if (c.current) {
|
|
157
|
-
f.current();
|
|
158
|
-
let t = q(c.current);
|
|
159
|
-
t.length && J(e === "start" ? t : t.reverse());
|
|
160
|
-
}
|
|
161
|
-
}, []), h = _.useCallback(() => {
|
|
162
|
-
if (c.current) {
|
|
163
|
-
let e = q(c.current);
|
|
164
|
-
e.length && (f.current = xe(e));
|
|
165
|
-
}
|
|
166
|
-
}, []);
|
|
167
|
-
return /* @__PURE__ */ y(le, {
|
|
168
|
-
scope: n,
|
|
169
|
-
value: s,
|
|
170
|
-
triggerRef: l,
|
|
171
|
-
contentRef: c,
|
|
172
|
-
focusProxyRef: u,
|
|
173
|
-
wasEscapeCloseRef: p,
|
|
174
|
-
onEntryKeyDown: m,
|
|
175
|
-
onFocusProxyEnter: m,
|
|
176
|
-
onRootContentClose: h,
|
|
177
|
-
onContentFocusOutside: h,
|
|
178
|
-
children: /* @__PURE__ */ y(o.li, {
|
|
179
|
-
...i,
|
|
180
|
-
ref: t
|
|
181
|
-
})
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
F.displayName = ce;
|
|
185
|
-
var I = "NavigationMenuTrigger", L = _.forwardRef((e, t) => {
|
|
186
|
-
let { __scopeNavigationMenu: r, disabled: i, ...s } = e, c = M(I, e.__scopeNavigationMenu), l = ue(I, e.__scopeNavigationMenu), u = _.useRef(null), d = n(u, l.triggerRef, t), f = Se(c.baseId, l.value), p = Ce(c.baseId, l.value), m = _.useRef(!1), h = _.useRef(!1), x = l.value === c.value;
|
|
187
|
-
return /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(T.ItemSlot, {
|
|
188
|
-
scope: r,
|
|
189
|
-
value: l.value,
|
|
190
|
-
children: /* @__PURE__ */ y(be, {
|
|
191
|
-
asChild: !0,
|
|
192
|
-
children: /* @__PURE__ */ y(o.button, {
|
|
193
|
-
id: f,
|
|
194
|
-
disabled: i,
|
|
195
|
-
"data-disabled": i ? "" : void 0,
|
|
196
|
-
"data-state": X(x),
|
|
197
|
-
"aria-expanded": x,
|
|
198
|
-
"aria-controls": p,
|
|
199
|
-
...s,
|
|
200
|
-
ref: d,
|
|
201
|
-
onPointerEnter: a(e.onPointerEnter, () => {
|
|
202
|
-
h.current = !1, l.wasEscapeCloseRef.current = !1;
|
|
203
|
-
}),
|
|
204
|
-
onPointerMove: a(e.onPointerMove, Z(() => {
|
|
205
|
-
i || h.current || l.wasEscapeCloseRef.current || m.current || (c.onTriggerEnter(l.value), m.current = !0);
|
|
206
|
-
})),
|
|
207
|
-
onPointerLeave: a(e.onPointerLeave, Z(() => {
|
|
208
|
-
i || (c.onTriggerLeave(), m.current = !1);
|
|
209
|
-
})),
|
|
210
|
-
onClick: a(e.onClick, () => {
|
|
211
|
-
c.onItemSelect(l.value), h.current = x;
|
|
212
|
-
}),
|
|
213
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
214
|
-
let t = {
|
|
215
|
-
horizontal: "ArrowDown",
|
|
216
|
-
vertical: c.dir === "rtl" ? "ArrowLeft" : "ArrowRight"
|
|
217
|
-
}[c.orientation];
|
|
218
|
-
x && e.key === t && (l.onEntryKeyDown(), e.preventDefault());
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
})
|
|
222
|
-
}), x && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(g, {
|
|
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__ */ y("span", { "aria-owns": p })] })] });
|
|
231
|
-
});
|
|
232
|
-
L.displayName = I;
|
|
233
|
-
var de = "NavigationMenuLink", R = "navigationMenu.linkSelect", z = _.forwardRef((e, t) => {
|
|
234
|
-
let { __scopeNavigationMenu: n, active: r, onSelect: s, ...c } = e;
|
|
235
|
-
return /* @__PURE__ */ y(be, {
|
|
236
|
-
asChild: !0,
|
|
237
|
-
children: /* @__PURE__ */ y(o.a, {
|
|
238
|
-
"data-active": r ? "" : void 0,
|
|
239
|
-
"aria-current": r ? "page" : void 0,
|
|
240
|
-
...c,
|
|
241
|
-
ref: t,
|
|
242
|
-
onClick: a(e.onClick, (e) => {
|
|
243
|
-
let t = e.target, n = new CustomEvent(R, {
|
|
244
|
-
bubbles: !0,
|
|
245
|
-
cancelable: !0
|
|
246
|
-
});
|
|
247
|
-
t.addEventListener(R, (e) => s?.(e), { once: !0 }), i(t, n), !n.defaultPrevented && !e.metaKey && i(t, new CustomEvent(W, {
|
|
248
|
-
bubbles: !0,
|
|
249
|
-
cancelable: !0
|
|
250
|
-
}));
|
|
251
|
-
}, { checkForDefaultPrevented: !1 })
|
|
252
|
-
})
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
z.displayName = de;
|
|
256
|
-
var B = "NavigationMenuIndicator", V = _.forwardRef((e, t) => {
|
|
257
|
-
let { forceMount: n, ...r } = e, i = M(B, e.__scopeNavigationMenu), a = !!i.value;
|
|
258
|
-
return i.indicatorTrack ? x.createPortal(/* @__PURE__ */ y(u, {
|
|
259
|
-
present: n || a,
|
|
260
|
-
children: /* @__PURE__ */ y(fe, {
|
|
261
|
-
...r,
|
|
262
|
-
ref: t
|
|
263
|
-
})
|
|
264
|
-
}), i.indicatorTrack) : null;
|
|
265
|
-
});
|
|
266
|
-
V.displayName = B;
|
|
267
|
-
var fe = _.forwardRef((e, t) => {
|
|
268
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = M(B, n), a = E(n), [s, c] = _.useState(null), [l, u] = _.useState(null), d = i.orientation === "horizontal", f = !!i.value;
|
|
269
|
-
_.useEffect(() => {
|
|
270
|
-
let e = a().find((e) => e.value === i.value)?.ref.current;
|
|
271
|
-
e && c(e);
|
|
272
|
-
}, [a, i.value]);
|
|
273
|
-
let p = () => {
|
|
274
|
-
s && u({
|
|
275
|
-
size: d ? s.offsetWidth : s.offsetHeight,
|
|
276
|
-
offset: d ? s.offsetLeft : s.offsetTop
|
|
277
|
-
});
|
|
278
|
-
};
|
|
279
|
-
return Y(s, p), Y(i.indicatorTrack, p), l ? /* @__PURE__ */ y(o.div, {
|
|
280
|
-
"aria-hidden": !0,
|
|
281
|
-
"data-state": f ? "visible" : "hidden",
|
|
282
|
-
"data-orientation": i.orientation,
|
|
283
|
-
...r,
|
|
284
|
-
ref: t,
|
|
285
|
-
style: {
|
|
286
|
-
position: "absolute",
|
|
287
|
-
...d ? {
|
|
288
|
-
left: 0,
|
|
289
|
-
width: l.size + "px",
|
|
290
|
-
transform: `translateX(${l.offset}px)`
|
|
291
|
-
} : {
|
|
292
|
-
top: 0,
|
|
293
|
-
height: l.size + "px",
|
|
294
|
-
transform: `translateY(${l.offset}px)`
|
|
295
|
-
},
|
|
296
|
-
...r.style
|
|
297
|
-
}
|
|
298
|
-
}) : null;
|
|
299
|
-
}), H = "NavigationMenuContent", U = _.forwardRef((e, t) => {
|
|
300
|
-
let { forceMount: r, ...i } = e, o = M(H, e.__scopeNavigationMenu), s = ue(H, e.__scopeNavigationMenu), c = n(s.contentRef, t), l = s.value === o.value, d = {
|
|
301
|
-
value: s.value,
|
|
302
|
-
triggerRef: s.triggerRef,
|
|
303
|
-
focusProxyRef: s.focusProxyRef,
|
|
304
|
-
wasEscapeCloseRef: s.wasEscapeCloseRef,
|
|
305
|
-
onContentFocusOutside: s.onContentFocusOutside,
|
|
306
|
-
onRootContentClose: s.onRootContentClose,
|
|
307
|
-
...i
|
|
308
|
-
};
|
|
309
|
-
return o.viewport ? /* @__PURE__ */ y(pe, {
|
|
310
|
-
forceMount: r,
|
|
311
|
-
...d,
|
|
312
|
-
ref: c
|
|
313
|
-
}) : /* @__PURE__ */ y(u, {
|
|
314
|
-
present: r || l,
|
|
315
|
-
children: /* @__PURE__ */ y(G, {
|
|
316
|
-
"data-state": X(l),
|
|
317
|
-
...d,
|
|
318
|
-
ref: c,
|
|
319
|
-
onPointerEnter: a(e.onPointerEnter, o.onContentEnter),
|
|
320
|
-
onPointerLeave: a(e.onPointerLeave, Z(o.onContentLeave)),
|
|
321
|
-
style: {
|
|
322
|
-
pointerEvents: !l && o.isRootMenu ? "none" : void 0,
|
|
323
|
-
...d.style
|
|
324
|
-
}
|
|
325
|
-
})
|
|
326
|
-
});
|
|
327
|
-
});
|
|
328
|
-
U.displayName = H;
|
|
329
|
-
var pe = _.forwardRef((e, t) => {
|
|
330
|
-
let { onViewportContentChange: n, onViewportContentRemove: r } = M(H, e.__scopeNavigationMenu);
|
|
331
|
-
return c(() => {
|
|
332
|
-
n(e.value, {
|
|
333
|
-
ref: t,
|
|
334
|
-
...e
|
|
335
|
-
});
|
|
336
|
-
}, [
|
|
337
|
-
e,
|
|
338
|
-
t,
|
|
339
|
-
n
|
|
340
|
-
]), c(() => () => r(e.value), [e.value, r]), null;
|
|
341
|
-
}), W = "navigationMenu.rootContentDismiss", G = _.forwardRef((e, t) => {
|
|
342
|
-
let { __scopeNavigationMenu: r, value: i, triggerRef: o, focusProxyRef: s, wasEscapeCloseRef: c, onRootContentClose: l, onContentFocusOutside: u, ...d } = e, f = M(H, r), p = _.useRef(null), h = n(p, t), g = Se(f.baseId, i), v = Ce(f.baseId, i), b = E(r), x = _.useRef(null), { onItemDismiss: S } = f;
|
|
343
|
-
return _.useEffect(() => {
|
|
344
|
-
let e = p.current;
|
|
345
|
-
if (f.isRootMenu && e) {
|
|
346
|
-
let t = () => {
|
|
347
|
-
S(), l(), e.contains(document.activeElement) && o.current?.focus();
|
|
348
|
-
};
|
|
349
|
-
return e.addEventListener(W, t), () => e.removeEventListener(W, t);
|
|
350
|
-
}
|
|
351
|
-
}, [
|
|
352
|
-
f.isRootMenu,
|
|
353
|
-
e.value,
|
|
354
|
-
o,
|
|
355
|
-
S,
|
|
356
|
-
l
|
|
357
|
-
]), /* @__PURE__ */ y(_e, {
|
|
358
|
-
asChild: !0,
|
|
359
|
-
children: /* @__PURE__ */ y(m, {
|
|
360
|
-
id: v,
|
|
361
|
-
"aria-labelledby": g,
|
|
362
|
-
"data-motion": _.useMemo(() => {
|
|
363
|
-
let e = b().map((e) => e.value);
|
|
364
|
-
f.dir === "rtl" && e.reverse();
|
|
365
|
-
let t = e.indexOf(f.value), n = e.indexOf(f.previousValue), r = i === f.value, a = n === e.indexOf(i);
|
|
366
|
-
if (!r && !a) return x.current;
|
|
367
|
-
let o = (() => {
|
|
368
|
-
if (t !== n) {
|
|
369
|
-
if (r && n !== -1) return t > n ? "from-end" : "from-start";
|
|
370
|
-
if (a && t !== -1) return t > n ? "to-start" : "to-end";
|
|
371
|
-
}
|
|
372
|
-
return null;
|
|
373
|
-
})();
|
|
374
|
-
return x.current = o, o;
|
|
375
|
-
}, [
|
|
376
|
-
f.previousValue,
|
|
377
|
-
f.value,
|
|
378
|
-
f.dir,
|
|
379
|
-
b,
|
|
380
|
-
i
|
|
381
|
-
]),
|
|
382
|
-
"data-orientation": f.orientation,
|
|
383
|
-
...d,
|
|
384
|
-
ref: h,
|
|
385
|
-
disableOutsidePointerEvents: !1,
|
|
386
|
-
onDismiss: () => {
|
|
387
|
-
let e = new Event(W, {
|
|
388
|
-
bubbles: !0,
|
|
389
|
-
cancelable: !0
|
|
390
|
-
});
|
|
391
|
-
p.current?.dispatchEvent(e);
|
|
392
|
-
},
|
|
393
|
-
onFocusOutside: a(e.onFocusOutside, (e) => {
|
|
394
|
-
u();
|
|
395
|
-
let t = e.target;
|
|
396
|
-
f.rootNavigationMenu?.contains(t) && e.preventDefault();
|
|
397
|
-
}),
|
|
398
|
-
onPointerDownOutside: a(e.onPointerDownOutside, (e) => {
|
|
399
|
-
let t = e.target, n = b().some((e) => e.ref.current?.contains(t)), r = f.isRootMenu && f.viewport?.contains(t);
|
|
400
|
-
(n || r || !f.isRootMenu) && e.preventDefault();
|
|
401
|
-
}),
|
|
402
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
403
|
-
let t = e.altKey || e.ctrlKey || e.metaKey;
|
|
404
|
-
if (e.key === "Tab" && !t) {
|
|
405
|
-
let t = q(e.currentTarget), n = document.activeElement, r = t.findIndex((e) => e === n);
|
|
406
|
-
J(e.shiftKey ? t.slice(0, r).reverse() : t.slice(r + 1, t.length)) ? e.preventDefault() : s.current?.focus();
|
|
407
|
-
}
|
|
408
|
-
}),
|
|
409
|
-
onEscapeKeyDown: a(e.onEscapeKeyDown, (e) => {
|
|
410
|
-
c.current = !0;
|
|
411
|
-
})
|
|
412
|
-
})
|
|
413
|
-
});
|
|
414
|
-
}), K = "NavigationMenuViewport", me = _.forwardRef((e, t) => {
|
|
415
|
-
let { forceMount: n, ...r } = e, i = !!M(K, e.__scopeNavigationMenu).value;
|
|
416
|
-
return /* @__PURE__ */ y(u, {
|
|
417
|
-
present: n || i,
|
|
418
|
-
children: /* @__PURE__ */ y(he, {
|
|
419
|
-
...r,
|
|
420
|
-
ref: t
|
|
421
|
-
})
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
me.displayName = K;
|
|
425
|
-
var he = _.forwardRef((e, t) => {
|
|
426
|
-
let { __scopeNavigationMenu: i, children: s, ...c } = e, l = M(K, i), d = n(t, l.onViewportChange), f = re(H, e.__scopeNavigationMenu), [p, m] = _.useState(null), [h, g] = _.useState(null), v = p ? p?.width + "px" : void 0, b = p ? p?.height + "px" : void 0, x = !!l.value, S = x ? l.value : l.previousValue;
|
|
427
|
-
return Y(h, () => {
|
|
428
|
-
h && m({
|
|
429
|
-
width: h.offsetWidth,
|
|
430
|
-
height: h.offsetHeight
|
|
431
|
-
});
|
|
432
|
-
}), /* @__PURE__ */ y(o.div, {
|
|
433
|
-
"data-state": X(x),
|
|
434
|
-
"data-orientation": l.orientation,
|
|
435
|
-
...c,
|
|
436
|
-
ref: d,
|
|
437
|
-
style: {
|
|
438
|
-
pointerEvents: !x && l.isRootMenu ? "none" : void 0,
|
|
439
|
-
"--radix-navigation-menu-viewport-width": v,
|
|
440
|
-
"--radix-navigation-menu-viewport-height": b,
|
|
441
|
-
...c.style
|
|
442
|
-
},
|
|
443
|
-
onPointerEnter: a(e.onPointerEnter, l.onContentEnter),
|
|
444
|
-
onPointerLeave: a(e.onPointerLeave, Z(l.onContentLeave)),
|
|
445
|
-
children: Array.from(f.items).map(([e, { ref: t, forceMount: n, ...i }]) => {
|
|
446
|
-
let a = S === e;
|
|
447
|
-
return /* @__PURE__ */ y(u, {
|
|
448
|
-
present: n || a,
|
|
449
|
-
children: /* @__PURE__ */ y(G, {
|
|
450
|
-
...i,
|
|
451
|
-
ref: r(t, (e) => {
|
|
452
|
-
a && e && g(e);
|
|
453
|
-
})
|
|
454
|
-
})
|
|
455
|
-
}, e);
|
|
456
|
-
})
|
|
457
|
-
});
|
|
458
|
-
}), ge = "FocusGroup", _e = _.forwardRef((e, t) => {
|
|
459
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = M(ge, n);
|
|
460
|
-
return /* @__PURE__ */ y(O.Provider, {
|
|
461
|
-
scope: n,
|
|
462
|
-
children: /* @__PURE__ */ y(O.Slot, {
|
|
463
|
-
scope: n,
|
|
464
|
-
children: /* @__PURE__ */ y(o.div, {
|
|
465
|
-
dir: i.dir,
|
|
466
|
-
...r,
|
|
467
|
-
ref: t
|
|
468
|
-
})
|
|
469
|
-
})
|
|
470
|
-
});
|
|
471
|
-
}), ve = [
|
|
472
|
-
"ArrowRight",
|
|
473
|
-
"ArrowLeft",
|
|
474
|
-
"ArrowUp",
|
|
475
|
-
"ArrowDown"
|
|
476
|
-
], ye = "FocusGroupItem", be = _.forwardRef((e, t) => {
|
|
477
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = k(n), s = M(ye, n);
|
|
478
|
-
return /* @__PURE__ */ y(O.ItemSlot, {
|
|
479
|
-
scope: n,
|
|
480
|
-
children: /* @__PURE__ */ y(o.button, {
|
|
481
|
-
...r,
|
|
482
|
-
ref: t,
|
|
483
|
-
onKeyDown: a(e.onKeyDown, (e) => {
|
|
484
|
-
if ([
|
|
485
|
-
"Home",
|
|
486
|
-
"End",
|
|
487
|
-
...ve
|
|
488
|
-
].includes(e.key)) {
|
|
489
|
-
let t = i().map((e) => e.ref.current);
|
|
490
|
-
if ([
|
|
491
|
-
s.dir === "rtl" ? "ArrowRight" : "ArrowLeft",
|
|
492
|
-
"ArrowUp",
|
|
493
|
-
"End"
|
|
494
|
-
].includes(e.key) && t.reverse(), ve.includes(e.key)) {
|
|
495
|
-
let n = t.indexOf(e.currentTarget);
|
|
496
|
-
t = t.slice(n + 1);
|
|
497
|
-
}
|
|
498
|
-
setTimeout(() => J(t)), e.preventDefault();
|
|
499
|
-
}
|
|
500
|
-
})
|
|
501
|
-
})
|
|
502
|
-
});
|
|
503
|
-
});
|
|
504
|
-
function q(e) {
|
|
505
|
-
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
506
|
-
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
507
|
-
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
508
|
-
} });
|
|
509
|
-
for (; n.nextNode();) t.push(n.currentNode);
|
|
510
|
-
return t;
|
|
511
|
-
}
|
|
512
|
-
function J(e) {
|
|
513
|
-
let t = document.activeElement;
|
|
514
|
-
return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
|
|
515
|
-
}
|
|
516
|
-
function xe(e) {
|
|
517
|
-
return e.forEach((e) => {
|
|
518
|
-
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
519
|
-
}), () => {
|
|
520
|
-
e.forEach((e) => {
|
|
521
|
-
let t = e.dataset.tabindex;
|
|
522
|
-
e.setAttribute("tabindex", t);
|
|
523
|
-
});
|
|
524
|
-
};
|
|
525
|
-
}
|
|
526
|
-
function Y(e, t) {
|
|
527
|
-
let n = p(t);
|
|
528
|
-
c(() => {
|
|
529
|
-
let t = 0;
|
|
530
|
-
if (e) {
|
|
531
|
-
let r = new ResizeObserver(() => {
|
|
532
|
-
cancelAnimationFrame(t), t = window.requestAnimationFrame(n);
|
|
533
|
-
});
|
|
534
|
-
return r.observe(e), () => {
|
|
535
|
-
window.cancelAnimationFrame(t), r.unobserve(e);
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
}, [e, n]);
|
|
539
|
-
}
|
|
540
|
-
function X(e) {
|
|
541
|
-
return e ? "open" : "closed";
|
|
542
|
-
}
|
|
543
|
-
function Se(e, t) {
|
|
544
|
-
return `${e}-trigger-${t}`;
|
|
545
|
-
}
|
|
546
|
-
function Ce(e, t) {
|
|
547
|
-
return `${e}-content-${t}`;
|
|
548
|
-
}
|
|
549
|
-
function Z(e) {
|
|
550
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
551
|
-
}
|
|
552
|
-
var we = N, Te = se, Ee = F, De = L, Oe = z, Q = V, ke = U, Ae = me, je = _.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ b(we, {
|
|
553
|
-
ref: i,
|
|
554
|
-
className: e("relative z-10 flex max-w-max flex-1 items-center justify-center", t),
|
|
555
|
-
...r,
|
|
556
|
-
children: [n, /* @__PURE__ */ y($, {})]
|
|
557
|
-
}));
|
|
558
|
-
je.displayName = we?.displayName || "NavigationMenu";
|
|
559
|
-
var Me = _.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ y(Te, {
|
|
560
|
-
ref: r,
|
|
561
|
-
className: e("group flex flex-1 list-none items-center justify-center space-x-1", t),
|
|
562
|
-
...n
|
|
563
|
-
}));
|
|
564
|
-
Me.displayName = Te?.displayName || "NavigationMenuList";
|
|
565
|
-
var Ne = Ee, Pe = C("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"), Fe = _.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ b(De, {
|
|
566
|
-
ref: i,
|
|
567
|
-
className: e(Pe(), "group", t),
|
|
568
|
-
...r,
|
|
569
|
-
children: [
|
|
570
|
-
n,
|
|
571
|
-
" ",
|
|
572
|
-
/* @__PURE__ */ y(S, {
|
|
573
|
-
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
574
|
-
"aria-hidden": "true"
|
|
575
|
-
})
|
|
576
|
-
]
|
|
577
|
-
}));
|
|
578
|
-
Fe.displayName = De?.displayName || "NavigationMenuTrigger";
|
|
579
|
-
var Ie = _.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ y(ke, {
|
|
580
|
-
ref: r,
|
|
581
|
-
className: e("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out 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 top-0 left-0 w-full md:absolute md:w-auto", t),
|
|
582
|
-
...n
|
|
583
|
-
}));
|
|
584
|
-
Ie.displayName = ke?.displayName || "NavigationMenuContent";
|
|
585
|
-
var Le = Oe, $ = _.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ y("div", {
|
|
586
|
-
className: e("absolute top-full left-0 flex justify-center"),
|
|
587
|
-
children: /* @__PURE__ */ y(Ae, {
|
|
588
|
-
className: e("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", t),
|
|
589
|
-
ref: r,
|
|
590
|
-
...n
|
|
591
|
-
})
|
|
592
|
-
}));
|
|
593
|
-
$.displayName = Ae?.displayName || "NavigationMenuViewport";
|
|
594
|
-
var Re = _.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ y(Q, {
|
|
595
|
-
ref: r,
|
|
596
|
-
className: e("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", t),
|
|
597
|
-
...n,
|
|
598
|
-
children: /* @__PURE__ */ y("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
599
|
-
}));
|
|
600
|
-
Re.displayName = Q?.displayName || "NavigationMenuIndicator";
|
|
601
|
-
//#endregion
|
|
602
|
-
export { Le as a, $ as c, Ne as i, Pe as l, Ie as n, Me as o, Re as r, Fe as s, je as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./chunk-mLOUI7ql.js"),t=require("./utils-ChMUqofy.js"),n=require("./dist-CSkpam6a.js"),r=require("./dist-BTPL2C0R.js"),i=require("./dist-Dw6-GQAn.js"),a=require("./dist-DasmYflz.js"),o=require("./dist-CGgemr2V.js"),s=require("./dist-DynSBUGq.js"),c=require("./dist-Doq7FY_P.js"),l=require("./dist-Byhx2fDJ.js"),u=require("./dist-CV2U2xFR.js"),d=require("./dist-CEJNUZGZ.js"),f=require("./dist-CPglx4om.js"),p=require("./dist-Cb7OVHcJ.js"),m=require("./dist-NIAlh3KC.js");let h=require("react"),g=e.r(h,1);h=e.r(h);let _=require("react/jsx-runtime"),v=require("react-dom");v=e.r(v,1);let y=require("lucide-react"),b=require("class-variance-authority");var x=`NavigationMenu`,[S,C,w]=a.t(x),[T,E,D]=a.t(x),[O,k]=n.n(x,[w,D]),[A,j]=O(x),[ee,te]=O(x),M=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:a,onValueChange:o,defaultValue:c,delayDuration:l=200,skipDelayDuration:d=300,orientation:f=`horizontal`,dir:p,...m}=e,[h,v]=g.useState(null),y=r.n(t,e=>v(e)),b=u.t(p),S=g.useRef(0),C=g.useRef(0),w=g.useRef(0),[T,E]=g.useState(!0),[D,O]=s.t({prop:a,onChange:e=>{let t=e!==``,n=d>0;t?(window.clearTimeout(w.current),n&&E(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(!0),d)),o?.(e)},defaultProp:c??``,caller:x}),k=g.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>O(``),150)},[O]),A=g.useCallback(e=>{window.clearTimeout(C.current),O(e)},[O]),j=g.useCallback(e=>{D===e?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),O(e)},l)},[D,O,l]);return g.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(w.current)},[]),(0,_.jsx)(re,{scope:n,isRootMenu:!0,value:D,dir:b,orientation:f,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(S.current),T?j(e):A(e)},onTriggerLeave:()=>{window.clearTimeout(S.current),k()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:k,onItemSelect:e=>{O(t=>t===e?``:e)},onItemDismiss:()=>O(``),children:(0,_.jsx)(i.t.nav,{"aria-label":`Main`,"data-orientation":f,dir:b,...m,ref:y})})});M.displayName=x;var N=`NavigationMenuSub`,ne=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:a,defaultValue:o,orientation:c=`horizontal`,...l}=e,u=j(N,n),[d,f]=s.t({prop:r,onChange:a,defaultProp:o??``,caller:N});return(0,_.jsx)(re,{scope:n,isRootMenu:!1,value:d,dir:u.dir,orientation:c,rootNavigationMenu:u.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(``),children:(0,_.jsx)(i.t.div,{"data-orientation":c,...l,ref:t})})});ne.displayName=N;var re=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:i,orientation:a,children:o,value:s,onItemSelect:c,onItemDismiss:u,onTriggerEnter:f,onTriggerLeave:m,onContentEnter:h,onContentLeave:v}=e,[y,b]=g.useState(null),[x,C]=g.useState(new Map),[w,T]=g.useState(null);return(0,_.jsx)(A,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:p.t(s),baseId:l.t(),dir:i,orientation:a,viewport:y,onViewportChange:b,indicatorTrack:w,onIndicatorTrackChange:T,onTriggerEnter:d.t(f),onTriggerLeave:d.t(m),onContentEnter:d.t(h),onContentLeave:d.t(v),onItemSelect:d.t(c),onItemDismiss:d.t(u),onViewportContentChange:g.useCallback((e,t)=>{C(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:g.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,_.jsx)(S.Provider,{scope:t,children:(0,_.jsx)(ee,{scope:t,items:x,children:o})})})},ie=`NavigationMenuList`,ae=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=j(ie,n),o=(0,_.jsx)(i.t.ul,{"data-orientation":a.orientation,...r,ref:t});return(0,_.jsx)(i.t.div,{style:{position:`relative`},ref:a.onIndicatorTrackChange,children:(0,_.jsx)(S.Slot,{scope:n,children:a.isRootMenu?(0,_.jsx)(K,{asChild:!0,children:o}):o})})});ae.displayName=ie;var oe=`NavigationMenuItem`,[se,ce]=O(oe),le=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,...a}=e,o=l.t(),s=r||o||`LEGACY_REACT_AUTO_VALUE`,c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=g.useRef(()=>{}),p=g.useRef(!1),m=g.useCallback((e=`start`)=>{if(c.current){f.current();let t=q(c.current);t.length&&J(e===`start`?t:t.reverse())}},[]),h=g.useCallback(()=>{if(c.current){let e=q(c.current);e.length&&(f.current=ve(e))}},[]);return(0,_.jsx)(se,{scope:n,value:s,triggerRef:u,contentRef:c,focusProxyRef:d,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:h,onContentFocusOutside:h,children:(0,_.jsx)(i.t.li,{...a,ref:t})})});le.displayName=oe;var P=`NavigationMenuTrigger`,F=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:a,...o}=e,s=j(P,e.__scopeNavigationMenu),c=ce(P,e.__scopeNavigationMenu),l=g.useRef(null),u=r.n(l,c.triggerRef,t),d=ye(s.baseId,c.value),f=be(s.baseId,c.value),p=g.useRef(!1),h=g.useRef(!1),v=c.value===s.value;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(S.ItemSlot,{scope:n,value:c.value,children:(0,_.jsx)(_e,{asChild:!0,children:(0,_.jsx)(i.t.button,{id:d,disabled:a,"data-disabled":a?``:void 0,"data-state":X(v),"aria-expanded":v,"aria-controls":f,...o,ref:u,onPointerEnter:i.r(e.onPointerEnter,()=>{h.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:i.r(e.onPointerMove,Z(()=>{a||h.current||c.wasEscapeCloseRef.current||p.current||(s.onTriggerEnter(c.value),p.current=!0)})),onPointerLeave:i.r(e.onPointerLeave,Z(()=>{a||(s.onTriggerLeave(),p.current=!1)})),onClick:i.r(e.onClick,()=>{s.onItemSelect(c.value),h.current=v}),onKeyDown:i.r(e.onKeyDown,e=>{let t={horizontal:`ArrowDown`,vertical:s.dir===`rtl`?`ArrowLeft`:`ArrowRight`}[s.orientation];v&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),v&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(m.t,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===l.current,i=t?.contains(n);(r||!i)&&c.onFocusProxyEnter(r?`start`:`end`)}}),s.viewport&&(0,_.jsx)(`span`,{"aria-owns":f})]})]})});F.displayName=P;var ue=`NavigationMenuLink`,I=`navigationMenu.linkSelect`,L=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,active:r,onSelect:a,...o}=e;return(0,_.jsx)(_e,{asChild:!0,children:(0,_.jsx)(i.t.a,{"data-active":r?``:void 0,"aria-current":r?`page`:void 0,...o,ref:t,onClick:i.r(e.onClick,e=>{let t=e.target,n=new CustomEvent(I,{bubbles:!0,cancelable:!0});t.addEventListener(I,e=>a?.(e),{once:!0}),i.n(t,n),!n.defaultPrevented&&!e.metaKey&&i.n(t,new CustomEvent(H,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});L.displayName=ue;var R=`NavigationMenuIndicator`,z=g.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=j(R,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?v.default.createPortal((0,_.jsx)(c.t,{present:n||a,children:(0,_.jsx)(de,{...r,ref:t})}),i.indicatorTrack):null});z.displayName=R;var de=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=j(R,n),o=C(n),[s,c]=g.useState(null),[l,u]=g.useState(null),d=a.orientation===`horizontal`,f=!!a.value;g.useEffect(()=>{let e=o().find(e=>e.value===a.value)?.ref.current;e&&c(e)},[o,a.value]);let p=()=>{s&&u({size:d?s.offsetWidth:s.offsetHeight,offset:d?s.offsetLeft:s.offsetTop})};return Y(s,p),Y(a.indicatorTrack,p),l?(0,_.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)`}:{top:0,height:l.size+`px`,transform:`translateY(${l.offset}px)`},...r.style}}):null}),B=`NavigationMenuContent`,V=g.forwardRef((e,t)=>{let{forceMount:n,...a}=e,o=j(B,e.__scopeNavigationMenu),s=ce(B,e.__scopeNavigationMenu),l=r.n(s.contentRef,t),u=s.value===o.value,d={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...a};return o.viewport?(0,_.jsx)(fe,{forceMount:n,...d,ref:l}):(0,_.jsx)(c.t,{present:n||u,children:(0,_.jsx)(U,{"data-state":X(u),...d,ref:l,onPointerEnter:i.r(e.onPointerEnter,o.onContentEnter),onPointerLeave:i.r(e.onPointerLeave,Z(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?`none`:void 0,...d.style}})})});V.displayName=B;var fe=g.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=j(B,e.__scopeNavigationMenu);return o.t(()=>{n(e.value,{ref:t,...e})},[e,t,n]),o.t(()=>()=>r(e.value),[e.value,r]),null}),H=`navigationMenu.rootContentDismiss`,U=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:a,triggerRef:o,focusProxyRef:s,wasEscapeCloseRef:c,onRootContentClose:l,onContentFocusOutside:u,...d}=e,p=j(B,n),m=g.useRef(null),h=r.n(m,t),v=ye(p.baseId,a),y=be(p.baseId,a),b=C(n),x=g.useRef(null),{onItemDismiss:S}=p;return g.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=()=>{S(),l(),e.contains(document.activeElement)&&o.current?.focus()};return e.addEventListener(H,t),()=>e.removeEventListener(H,t)}},[p.isRootMenu,e.value,o,S,l]),(0,_.jsx)(K,{asChild:!0,children:(0,_.jsx)(f.n,{id:y,"aria-labelledby":v,"data-motion":g.useMemo(()=>{let e=b().map(e=>e.value);p.dir===`rtl`&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=a===p.value,i=n===e.indexOf(a);if(!r&&!i)return x.current;let o=(()=>{if(t!==n){if(r&&n!==-1)return t>n?`from-end`:`from-start`;if(i&&t!==-1)return t>n?`to-start`:`to-end`}return null})();return x.current=o,o},[p.previousValue,p.value,p.dir,b,a]),"data-orientation":p.orientation,...d,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(H,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(e)},onFocusOutside:i.r(e.onFocusOutside,e=>{u();let t=e.target;p.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:i.r(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:i.r(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:i.r(e.onEscapeKeyDown,e=>{c.current=!0})})})}),W=`NavigationMenuViewport`,G=g.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=!!j(W,e.__scopeNavigationMenu).value;return(0,_.jsx)(c.t,{present:n||i,children:(0,_.jsx)(pe,{...r,ref:t})})});G.displayName=W;var pe=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:a,...o}=e,s=j(W,n),l=r.n(t,s.onViewportChange),u=te(B,e.__scopeNavigationMenu),[d,f]=g.useState(null),[p,m]=g.useState(null),h=d?d?.width+`px`:void 0,v=d?d?.height+`px`:void 0,y=!!s.value,b=y?s.value:s.previousValue;return Y(p,()=>{p&&f({width:p.offsetWidth,height:p.offsetHeight})}),(0,_.jsx)(i.t.div,{"data-state":X(y),"data-orientation":s.orientation,...o,ref:l,style:{pointerEvents:!y&&s.isRootMenu?`none`:void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":v,...o.style},onPointerEnter:i.r(e.onPointerEnter,s.onContentEnter),onPointerLeave:i.r(e.onPointerLeave,Z(s.onContentLeave)),children:Array.from(u.items).map(([e,{ref:t,forceMount:n,...i}])=>{let a=b===e;return(0,_.jsx)(c.t,{present:n||a,children:(0,_.jsx)(U,{...i,ref:r.t(t,e=>{a&&e&&m(e)})})},e)})})}),me=`FocusGroup`,K=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=j(me,n);return(0,_.jsx)(T.Provider,{scope:n,children:(0,_.jsx)(T.Slot,{scope:n,children:(0,_.jsx)(i.t.div,{dir:a.dir,...r,ref:t})})})}),he=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`],ge=`FocusGroupItem`,_e=g.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,a=E(n),o=j(ge,n);return(0,_.jsx)(T.ItemSlot,{scope:n,children:(0,_.jsx)(i.t.button,{...r,ref:t,onKeyDown:i.r(e.onKeyDown,e=>{if([`Home`,`End`,...he].includes(e.key)){let t=a().map(e=>e.ref.current);if([o.dir===`rtl`?`ArrowRight`:`ArrowLeft`,`ArrowUp`,`End`].includes(e.key)&&t.reverse(),he.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>J(t)),e.preventDefault()}})})})});function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function J(e){let t=document.activeElement;return e.some(e=>e===t?!0:(e.focus(),document.activeElement!==t))}function ve(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)})}}function Y(e,t){let n=d.t(t);o.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])}function X(e){return e?`open`:`closed`}function ye(e,t){return`${e}-trigger-${t}`}function be(e,t){return`${e}-content-${t}`}function Z(e){return t=>t.pointerType===`mouse`?e(t):void 0}var xe=M,Se=ae,Ce=le,we=F,Te=L,Ee=z,De=V,Oe=G,Q=h.forwardRef(({className:e,children:n,...r},i)=>(0,_.jsxs)(xe,{ref:i,className:t.t(`relative z-10 flex max-w-max flex-1 items-center justify-center`,e),...r,children:[n,(0,_.jsx)($,{})]}));Q.displayName=xe?.displayName||`NavigationMenu`;var ke=h.forwardRef(({className:e,...n},r)=>(0,_.jsx)(Se,{ref:r,className:t.t(`group flex flex-1 list-none items-center justify-center space-x-1`,e),...n}));ke.displayName=Se?.displayName||`NavigationMenuList`;var Ae=Ce,je=(0,b.cva)(`group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent`),Me=h.forwardRef(({className:e,children:n,...r},i)=>(0,_.jsxs)(we,{ref:i,className:t.t(je(),`group`,e),...r,children:[n,` `,(0,_.jsx)(y.ChevronDown,{className:`relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180`,"aria-hidden":`true`})]}));Me.displayName=we?.displayName||`NavigationMenuTrigger`;var Ne=h.forwardRef(({className:e,...n},r)=>(0,_.jsx)(De,{ref:r,className:t.t(`data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out 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 top-0 left-0 w-full md:absolute md:w-auto`,e),...n}));Ne.displayName=De?.displayName||`NavigationMenuContent`;var Pe=Te,$=h.forwardRef(({className:e,...n},r)=>(0,_.jsx)(`div`,{className:t.t(`absolute top-full left-0 flex justify-center`),children:(0,_.jsx)(Oe,{className:t.t(`origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]`,e),ref:r,...n})}));$.displayName=Oe?.displayName||`NavigationMenuViewport`;var Fe=h.forwardRef(({className:e,...n},r)=>(0,_.jsx)(Ee,{ref:r,className:t.t(`data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden`,e),...n,children:(0,_.jsx)(`div`,{className:`bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md`})}));Fe.displayName=Ee?.displayName||`NavigationMenuIndicator`,Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ae}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Fe}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Q}});
|