@gv-tech/ui-web 2.28.0 → 2.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__contracts.d.ts +44 -2
- package/dist/__contracts.d.ts.map +1 -1
- package/dist/accordion-D5QXSsCK.mjs +248 -0
- package/dist/accordion-DjyDOX-h.js +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +5 -5
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/alert-dialog-B-a0Wa1M.mjs +182 -0
- package/dist/alert-dialog-DYQAhGBC.js +1 -0
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +13 -13
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.mjs +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +5 -5
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.mjs +4 -4
- package/dist/aspect-ratio-C-KOOyGP.js +1 -0
- package/dist/{aspect-ratio-DnChDaBi.mjs → aspect-ratio-s7Ji1MSr.mjs} +10 -9
- 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 -1
- package/dist/attachment.cjs +1 -0
- package/dist/attachment.d.ts +23 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.mjs +101 -0
- package/dist/attachment.test.d.ts +2 -0
- package/dist/attachment.test.d.ts.map +1 -0
- package/dist/avatar-4K3XjhP8.js +1 -0
- package/dist/avatar-d8Di248f.mjs +138 -0
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.d.ts +7 -7
- package/dist/avatar.d.ts.map +1 -1
- package/dist/avatar.mjs +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +2 -2
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.mjs +2 -2
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.mjs +25 -27
- package/dist/bubble.cjs +1 -0
- package/dist/bubble.d.ts +13 -0
- package/dist/bubble.d.ts.map +1 -0
- package/dist/bubble.mjs +72 -0
- package/dist/bubble.test.d.ts +2 -0
- package/dist/bubble.test.d.ts.map +1 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.d.ts +4 -4
- package/dist/button-group.d.ts.map +1 -1
- package/dist/button-group.mjs +7 -8
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +2 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/button.mjs +7 -7
- package/dist/calendar-DFj14O6r.js +1 -0
- package/dist/{calendar-Dg6VGycy.mjs → calendar-UW8h9dfh.mjs} +870 -842
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +3 -3
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.mjs +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +7 -7
- package/dist/card.d.ts.map +1 -1
- package/dist/card.mjs +5 -5
- package/dist/carousel-CNGpg5df.js +1 -0
- package/dist/{carousel-DbDoNdqJ.mjs → carousel-DG9xGJns.mjs} +53 -55
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +6 -6
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chart.cjs +1 -1
- package/dist/chart.d.ts +4 -4
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/checkbox-BCgbTAdU.js +1 -0
- package/dist/checkbox-Dq8VHKDH.mjs +186 -0
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.d.ts.map +1 -1
- package/dist/checkbox.mjs +1 -1
- package/dist/chunk-HBS6WEDP-CQNaACTf.js +1 -0
- package/dist/chunk-HBS6WEDP-aK8IuEX9.mjs +63 -0
- 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 +7 -7
- package/dist/combobox-CpPIGtPJ.js +4 -0
- package/dist/combobox-b4OmCNw1.mjs +5887 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.d.ts +14 -14
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.mjs +1 -1
- package/dist/command-5hobOyGG.mjs +545 -0
- package/dist/command-Dbqnm9kI.js +1 -0
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +10 -10
- package/dist/command.d.ts.map +1 -1
- package/dist/command.mjs +1 -1
- package/dist/context-menu-DyTUismw.js +1 -0
- package/dist/context-menu-DzzU-_v8.mjs +317 -0
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +16 -16
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.mjs +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +11 -11
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.mjs +25 -25
- package/dist/direction.cjs +1 -1
- package/dist/direction.d.ts +2 -2
- package/dist/direction.d.ts.map +1 -1
- package/dist/direction.mjs +1 -1
- package/dist/dist-1zUKVGvf.js +1 -0
- package/dist/dist-B057I8ju.mjs +30 -0
- package/dist/dist-BB78QQyQ.mjs +41 -0
- package/dist/dist-BBvidwzC.js +1 -0
- package/dist/{dist-Cacc4QIh.mjs → dist-BEbV0Hal.mjs} +9 -5
- package/dist/dist-BPL7gUpg.mjs +18 -0
- package/dist/dist-BTUvBzOm.js +1 -0
- package/dist/dist-BU-TFzJf.js +1 -0
- package/dist/dist-Bb5W_J2F.mjs +39 -0
- package/dist/dist-BbI6NHqR.mjs +23 -0
- package/dist/dist-BexAB6yo.mjs +192 -0
- package/dist/dist-BgXIqHHq.js +1 -0
- package/dist/dist-Bvfb4y_L.mjs +100 -0
- package/dist/dist-C8Pm6LRc.js +1 -0
- package/dist/dist-CPAF050o.mjs +90 -0
- package/dist/dist-CS572Be42.mjs +11 -0
- package/dist/dist-CUvxOuXM.mjs +551 -0
- package/dist/dist-C_iFkwIX.js +1 -0
- package/dist/dist-ClYM7l1t.js +1 -0
- package/dist/dist-CpKLY_uZ.mjs +96 -0
- package/dist/dist-D1qkELLT.js +1 -0
- package/dist/dist-D7-Fky36.js +1 -0
- package/dist/dist-DEpkkABT.js +1 -0
- package/dist/dist-DI1vapnL.mjs +20 -0
- package/dist/dist-DJqkhIXb2.js +1 -0
- package/dist/dist-DKXojpVG.js +1 -0
- package/dist/dist-DYUvPCPC.js +1 -0
- package/dist/dist-DZiOPWLp.js +1 -0
- package/dist/dist-DatgTWLz.mjs +202 -0
- package/dist/dist-Dm3IQk5b.mjs +685 -0
- package/dist/dist-DoivLw3t.js +1 -0
- package/dist/dist-Dq-h6VAy.mjs +118 -0
- package/dist/dist-Dt6m-kwU.mjs +221 -0
- package/dist/dist-E8ieJTBC.mjs +190 -0
- package/dist/{dist-C9PlF532.mjs → dist-GazS1kfR.mjs} +1 -1
- package/dist/dist-N97cIp0_.js +1 -0
- package/dist/dist-OqDzLHTa.mjs +460 -0
- package/dist/dist-Qm9hFvM1.js +1 -0
- package/dist/dist-UkWa-Arh.mjs +16 -0
- package/dist/dist-UnTrOmPV.js +1 -0
- package/dist/dist-YAADIsyo.js +1 -0
- package/dist/dist-Zs2sjYhL.js +1 -0
- package/dist/dist-hFLuJoMi.js +1 -0
- package/dist/dist-s7ibhASj.mjs +181 -0
- package/dist/dist-vu20fMUK.mjs +93 -0
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +11 -11
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-CriaO1_i.mjs → dropdown-menu-BqAhn64y.mjs} +109 -143
- package/dist/dropdown-menu-BtKOr--r.js +1 -0
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +16 -16
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.mjs +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.d.ts +7 -7
- package/dist/empty.d.ts.map +1 -1
- package/dist/empty.mjs +2 -2
- package/dist/es2015-DbAsWDbs.js +41 -0
- package/dist/es2015-DbsmTzuc.mjs +571 -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 -7
- package/dist/floating-ui.react-dom-BwFRxNGc.js +1 -0
- package/dist/{floating-ui.react-dom-DgS_bqyY.mjs → floating-ui.react-dom-CyupHsR6.mjs} +249 -276
- package/dist/form.cjs +1 -1
- package/dist/form.d.ts +8 -6
- package/dist/form.d.ts.map +1 -1
- package/dist/form.mjs +8 -8
- package/dist/hover-card-DMsxpR9G.mjs +178 -0
- package/dist/hover-card-DWXusgiI.js +1 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +4 -4
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +40 -34
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +7 -7
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.mjs +6 -11
- package/dist/input-otp-D49Y9VcH.mjs +409 -0
- package/dist/input-otp-u3obpt-Q.js +20 -0
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +5 -5
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.mjs +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.mjs +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.d.ts +11 -11
- package/dist/item.d.ts.map +1 -1
- package/dist/item.mjs +7 -8
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.d.ts.map +1 -1
- package/dist/kbd.mjs +2 -2
- package/dist/label-Dacwh21G.js +1 -0
- package/dist/label-DsSICLPc.mjs +28 -0
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts +2 -2
- package/dist/label.d.ts.map +1 -1
- package/dist/label.mjs +1 -1
- package/dist/marker.cjs +1 -0
- package/dist/marker.d.ts +12 -0
- package/dist/marker.d.ts.map +1 -0
- package/dist/marker.mjs +40 -0
- package/dist/marker.test.d.ts +2 -0
- package/dist/marker.test.d.ts.map +1 -0
- package/dist/menubar-BYNeRuzx.js +1 -0
- package/dist/{menubar-BcyqIJgy.mjs → menubar-DZqEj6S1.mjs} +138 -172
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +17 -17
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.mjs +1 -1
- package/dist/message-scroller-CS4t7Ypn.mjs +824 -0
- package/dist/message-scroller-DqLu0YI6.js +1 -0
- package/dist/message-scroller.cjs +1 -0
- package/dist/message-scroller.d.ts +13 -0
- package/dist/message-scroller.d.ts.map +1 -0
- package/dist/message-scroller.mjs +3 -0
- package/dist/message-scroller.test.d.ts +2 -0
- package/dist/message-scroller.test.d.ts.map +1 -0
- package/dist/message.cjs +1 -0
- package/dist/message.d.ts +11 -0
- package/dist/message.d.ts.map +1 -0
- package/dist/message.mjs +50 -0
- package/dist/message.test.d.ts +2 -0
- package/dist/message.test.d.ts.map +1 -0
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.d.ts +3 -3
- package/dist/native-select.d.ts.map +1 -1
- package/dist/native-select.mjs +12 -12
- package/dist/navigation-menu-B36G3O83.js +1 -0
- package/dist/navigation-menu-RO6thDOF.mjs +636 -0
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.d.ts +9 -9
- package/dist/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu.mjs +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +8 -8
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.mjs +42 -35
- package/dist/popover-DSBkc70V.mjs +243 -0
- package/dist/popover-DUHbvKB8.js +1 -0
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +8 -8
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.mjs +1 -1
- package/dist/progress-B9z08UXf.js +6 -0
- package/dist/progress-CQ4nQ85t.mjs +92 -0
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -2
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.mjs +1 -1
- package/dist/questionnaire-CVED7G7R.mjs +1159 -0
- package/dist/questionnaire-PWClWvST.js +1 -0
- package/dist/questionnaire.cjs +1 -0
- package/dist/questionnaire.d.ts +22 -0
- package/dist/questionnaire.d.ts.map +1 -0
- package/dist/questionnaire.mjs +4 -0
- package/dist/questionnaire.test.d.ts +2 -0
- package/dist/questionnaire.test.d.ts.map +1 -0
- package/dist/radio-group-Bd3WbH5I.js +1 -0
- package/dist/radio-group-TRiAhMZB.mjs +266 -0
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.d.ts.map +1 -1
- package/dist/radio-group.mjs +1 -1
- package/dist/resizable-Cq60hEWB.js +1 -0
- package/dist/resizable-Qc8cVUKd.mjs +2857 -0
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +3 -3
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/scroll-area-D6MiNHnJ.mjs +564 -0
- package/dist/scroll-area-DFUdJeSZ.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +3 -3
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.mjs +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.d.ts +1 -1
- package/dist/scroll-to-top.d.ts.map +1 -1
- package/dist/scroll-to-top.mjs +18 -16
- package/dist/search.cjs +1 -1
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.mjs +17 -17
- package/dist/select-BFJUmjvX.mjs +830 -0
- package/dist/select-iQFoKU1s.js +1 -0
- package/dist/select.cjs +1 -1
- package/dist/select.d.ts +11 -11
- package/dist/select.d.ts.map +1 -1
- package/dist/select.mjs +1 -1
- package/dist/separator-2kr96SyF.mjs +40 -0
- package/dist/separator-Bo49G2aj.js +1 -0
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +2 -2
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.mjs +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +9 -9
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.mjs +23 -23
- package/dist/sidebar-C6O8hLkz.js +1 -0
- package/dist/{sidebar-B-sWccYh.mjs → sidebar-DM9ee9wf.mjs} +66 -66
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.d.ts +24 -24
- package/dist/sidebar.d.ts.map +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.mjs +1 -1
- package/dist/slider-CagVxozY.js +1 -0
- package/dist/slider-CdTCoQu1.mjs +485 -0
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +2 -2
- package/dist/slider.d.ts.map +1 -1
- package/dist/slider.mjs +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +2 -4
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.mjs +8 -8
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.d.ts +2 -1
- package/dist/spinner.d.ts.map +1 -1
- package/dist/spinner.mjs +12 -7
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.d.ts +1 -1
- package/dist/support-fab.d.ts.map +1 -1
- package/dist/support-fab.mjs +22 -22
- package/dist/switch-CoeAC1Wk.js +1 -0
- package/dist/switch-zUBdj7jK.mjs +174 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +2 -2
- package/dist/switch.d.ts.map +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.d.ts +9 -13
- package/dist/table-of-contents.d.ts.map +1 -1
- package/dist/table-of-contents.mjs +3 -2
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +8 -8
- package/dist/table.d.ts.map +1 -1
- package/dist/table.mjs +1 -1
- package/dist/tabs-DaE9pEbo.mjs +160 -0
- package/dist/tabs-TMhXe20x.js +1 -0
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +5 -5
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.mjs +1 -1
- 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 +3 -3
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.mjs +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/dist/theme-provider.d.ts.map +1 -1
- package/dist/theme-toggle-3RStptYf.mjs +73 -0
- package/dist/theme-toggle-DKh8WFLT.js +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/theme-toggle.mjs +1 -1
- package/dist/toast-B0S3F09s.js +1 -0
- package/dist/toast-D0Yb-K84.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 -1
- package/dist/{toaster-DfDb2-aI.js → toaster-CX9im8R_.js} +1 -1
- package/dist/{toaster-Czhz-ktg.mjs → toaster-gT2b7mfE.mjs} +1 -1
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.d.ts +1 -1
- package/dist/toaster.d.ts.map +1 -1
- package/dist/toaster.mjs +1 -1
- package/dist/toggle-B0hXPsi7.js +1 -0
- package/dist/toggle-BAeKd2N0.mjs +59 -0
- package/dist/toggle-group-CEKhUozD.mjs +167 -0
- package/dist/toggle-group-htyug3G7.js +1 -0
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.d.ts +3 -3
- 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 +2 -2
- package/dist/toggle.d.ts.map +1 -1
- package/dist/toggle.mjs +1 -1
- package/dist/tooltip-BZazhXDZ.js +1 -0
- package/dist/tooltip-R_nK_Qh5.mjs +390 -0
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +5 -5
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.mjs +1 -1
- package/package.json +18 -16
- package/src/__contracts.ts +438 -278
- package/src/accordion.tsx +4 -6
- package/src/alert-dialog.tsx +6 -7
- package/src/alert.tsx +5 -7
- package/src/aspect-ratio.tsx +1 -2
- package/src/attachment.tsx +202 -0
- package/src/avatar.tsx +1 -2
- package/src/badge.tsx +2 -3
- package/src/breadcrumb.tsx +4 -8
- package/src/bubble.tsx +115 -0
- package/src/button-group.tsx +7 -8
- package/src/button.tsx +7 -9
- package/src/calendar.tsx +14 -14
- package/src/card.tsx +6 -7
- package/src/carousel.tsx +16 -17
- package/src/chart.tsx +1 -4
- package/src/checkbox.tsx +4 -6
- package/src/collapsible.tsx +1 -2
- package/src/combobox.tsx +8 -8
- package/src/command.tsx +8 -9
- package/src/context-menu.tsx +10 -12
- package/src/dialog.tsx +6 -7
- package/src/direction.tsx +1 -2
- package/src/drawer.tsx +3 -5
- package/src/dropdown-menu.tsx +10 -12
- package/src/empty.tsx +3 -5
- package/src/field.tsx +10 -11
- package/src/form.tsx +8 -8
- package/src/hooks/use-mobile.ts +1 -1
- package/src/hover-card.tsx +3 -5
- package/src/index.ts +54 -0
- package/src/input-group.tsx +14 -22
- package/src/input-otp.tsx +5 -6
- package/src/input.tsx +2 -4
- package/src/item.tsx +11 -12
- package/src/kbd.tsx +2 -2
- package/src/label.tsx +2 -4
- package/src/marker.tsx +61 -0
- package/src/menubar.tsx +11 -13
- package/src/message-scroller.tsx +133 -0
- package/src/message.tsx +85 -0
- package/src/native-select.tsx +2 -3
- package/src/navigation-menu.tsx +8 -10
- package/src/pagination.tsx +11 -10
- package/src/popover.tsx +3 -5
- package/src/progress.tsx +2 -4
- package/src/questionnaire.tsx +333 -0
- package/src/radio-group.tsx +2 -3
- package/src/resizable.tsx +1 -4
- package/src/scroll-area.tsx +3 -5
- package/src/scroll-to-top.tsx +7 -2
- package/src/search.tsx +2 -1
- package/src/select.tsx +8 -10
- package/src/separator.tsx +4 -6
- package/src/setupTests.ts +9 -9
- package/src/sheet.tsx +6 -7
- package/src/sidebar.tsx +17 -17
- package/src/skeleton.tsx +1 -2
- package/src/slider.tsx +5 -7
- package/src/sonner.tsx +0 -5
- package/src/spinner.tsx +14 -5
- package/src/support-fab.tsx +5 -1
- package/src/switch.tsx +4 -6
- package/src/table-of-contents.tsx +15 -13
- package/src/table.tsx +2 -4
- package/src/tabs.tsx +9 -11
- package/src/text.tsx +4 -4
- package/src/textarea.tsx +2 -4
- 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 +5 -6
- package/src/toggle.tsx +5 -7
- package/src/tooltip.tsx +3 -5
- package/dist/accordion-Dd8Hrexd.mjs +0 -244
- package/dist/accordion-DdSOiVyo.js +0 -1
- package/dist/alert-dialog-B7zX3gJX.js +0 -7
- package/dist/alert-dialog-BQoG5g_w.mjs +0 -213
- package/dist/aspect-ratio-QD1ZXP2B.js +0 -1
- package/dist/avatar-C4onD8-4.mjs +0 -127
- package/dist/avatar-ki_M47qG.js +0 -1
- package/dist/calendar-D9sapvfY.js +0 -1
- package/dist/carousel-6oFHLN7R.js +0 -1
- package/dist/checkbox-BLgY82mB.js +0 -1
- package/dist/checkbox-Bts_zfqd.mjs +0 -173
- package/dist/combobox-6qNx9Wbb.js +0 -4
- package/dist/combobox-yDMqxM_J.mjs +0 -5522
- package/dist/command-C6wJ5giF.mjs +0 -576
- package/dist/command-DCrPL1iW.js +0 -1
- package/dist/context-menu-CydUpD4W.mjs +0 -349
- package/dist/context-menu-DQ7XuuG5.js +0 -1
- package/dist/dist-1C8JOpVg.js +0 -1
- package/dist/dist-B1OcuinL.mjs +0 -558
- package/dist/dist-BGZDG175.mjs +0 -199
- package/dist/dist-BPBwSSyk.mjs +0 -8
- package/dist/dist-BPX1UGAz2.js +0 -1
- package/dist/dist-BRsDdVlJ.js +0 -1
- package/dist/dist-BWwCr-xN.mjs +0 -118
- package/dist/dist-BYdcKuDi.mjs +0 -16
- package/dist/dist-BlB11V_z.mjs +0 -27
- package/dist/dist-Bm8Cuttq.mjs +0 -76
- package/dist/dist-Byhx2fDJ.js +0 -1
- package/dist/dist-CCXBcfM3.js +0 -1
- package/dist/dist-CCokLFyA.mjs +0 -10
- package/dist/dist-CDU9vno-.mjs +0 -18
- package/dist/dist-CEJNUZGZ.js +0 -1
- package/dist/dist-CJolxugc.js +0 -1
- package/dist/dist-CQhWBhaI.mjs +0 -91
- package/dist/dist-CRLbUj9C.js +0 -1
- package/dist/dist-CSkpam6a.js +0 -1
- package/dist/dist-CWElW7UD.js +0 -1
- package/dist/dist-CXbzwSnE.js +0 -1
- package/dist/dist-CYj6O95k.mjs +0 -220
- package/dist/dist-C_45sBzc2.js +0 -1
- package/dist/dist-Cb7OVHcJ.js +0 -1
- package/dist/dist-Ccv5O-Vw.js +0 -1
- package/dist/dist-ChuP-5Gb.js +0 -1
- package/dist/dist-CiM892Rg.js +0 -1
- package/dist/dist-CuMQq0hV.js +0 -1
- package/dist/dist-DGzGsPqo2.mjs +0 -6
- package/dist/dist-DMnXk8Uo.js +0 -1
- package/dist/dist-DPBTfUqI.mjs +0 -96
- package/dist/dist-DR0lXVFG.js +0 -1
- package/dist/dist-Da7BU5sd.js +0 -5
- package/dist/dist-Df2ez-DA.mjs +0 -12
- package/dist/dist-DuTFGM_g.mjs +0 -45
- package/dist/dist-DynSBUGq.js +0 -1
- package/dist/dist-Dz3LbuDd.mjs +0 -60
- package/dist/dist-GhACpuJb2.mjs +0 -73
- package/dist/dist-N3JLy7yk.mjs +0 -29
- package/dist/dist-o4zlRoDG.js +0 -1
- package/dist/dist-rGeQfsgN.mjs +0 -66
- package/dist/dist-tvb2Wafb.mjs +0 -153
- package/dist/dist-xgVOvcNx.mjs +0 -11
- package/dist/dropdown-menu-BoJvZ3Fj.js +0 -1
- package/dist/es2015-BhmbVcui.mjs +0 -701
- package/dist/es2015-D22cM8Q_.js +0 -41
- package/dist/floating-ui.react-dom-DpCJEf_x.js +0 -1
- package/dist/hover-card-CJ-ibpbC.mjs +0 -187
- package/dist/hover-card-CK5SjVLL.js +0 -1
- package/dist/input-otp-BH_9dVhh.mjs +0 -391
- package/dist/input-otp-BibboKMt.js +0 -20
- package/dist/label-BXMSoyyu.js +0 -1
- package/dist/label-C8GNfPU0.mjs +0 -25
- package/dist/menubar-DPxokWFI.js +0 -1
- package/dist/navigation-menu-2yE2MUu-.js +0 -1
- package/dist/navigation-menu-N8gkxEXE.mjs +0 -628
- package/dist/popover-D1AO-E8p.js +0 -1
- package/dist/popover-wQACF3ut.mjs +0 -245
- package/dist/progress-DPWSEWa5.mjs +0 -86
- package/dist/progress-ShXZwOfj.js +0 -6
- package/dist/radio-group-CQbZCQmj.mjs +0 -199
- package/dist/radio-group-DAEi5vW_.js +0 -1
- package/dist/resizable-Cv-mKMKP.js +0 -1
- package/dist/resizable-DJSE3e5L.mjs +0 -1561
- package/dist/scroll-area-8QcqkHnC.mjs +0 -530
- package/dist/scroll-area-Cqqinhxf.js +0 -1
- package/dist/select-DdUveoSA.js +0 -1
- package/dist/select-yoeH35x2.mjs +0 -778
- package/dist/separator-BU1ea5gl.mjs +0 -35
- package/dist/separator-DBjErwHf.js +0 -1
- package/dist/shim-B5sEfNEJ.js +0 -1
- package/dist/shim-DX33EwUw.mjs +0 -91
- package/dist/sidebar-DIW-1cin.js +0 -1
- package/dist/slider-CCPXejUF.mjs +0 -388
- package/dist/slider-w05gD_Ix.js +0 -1
- package/dist/switch-CDBqsWQa.mjs +0 -112
- package/dist/switch-X2WBJsUu.js +0 -1
- package/dist/tabs-DzvgrVzk.js +0 -1
- package/dist/tabs-KDeHjVQU.mjs +0 -160
- package/dist/theme-toggle-C2Y4bIM3.js +0 -1
- package/dist/theme-toggle-clE-HpSS.mjs +0 -64
- package/dist/toast-1keyrzem.js +0 -1
- package/dist/toast-DVI6jPq5.mjs +0 -428
- package/dist/toggle-BGkq5XDM.js +0 -1
- package/dist/toggle-BfIIdlA6.mjs +0 -58
- package/dist/toggle-group-CbqgoPFU.mjs +0 -167
- package/dist/toggle-group-D7hR4BT2.js +0 -1
- package/dist/tooltip-CAIbshMk.js +0 -1
- package/dist/tooltip-D_o8Z-Ya.mjs +0 -380
package/dist/dialog.mjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { t as e } from "./
|
|
4
|
-
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./dist-
|
|
3
|
+
import { t as e } from "./dist-Dm3IQk5b.mjs";
|
|
4
|
+
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./dist-DatgTWLz.mjs";
|
|
5
5
|
import { Button as l } from "./button.mjs";
|
|
6
|
+
import { XIcon as u } from "lucide-react";
|
|
6
7
|
import "react";
|
|
7
|
-
import { jsx as
|
|
8
|
-
import { XIcon as f } from "lucide-react";
|
|
8
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
9
|
//#region src/dialog.tsx
|
|
10
10
|
function p({ ...e }) {
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ d(c, {
|
|
12
12
|
"data-slot": "dialog",
|
|
13
13
|
...e
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function m({ ...e }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ d(n, {
|
|
18
18
|
"data-slot": "dialog-trigger",
|
|
19
19
|
...e
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
function h({ ...e }) {
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ d(a, {
|
|
24
24
|
"data-slot": "dialog-portal",
|
|
25
25
|
...e
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
function g({ ...e }) {
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ d(i, {
|
|
30
30
|
"data-slot": "dialog-close",
|
|
31
31
|
...e
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function _({ className:
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
function _({ className: n, ...r }) {
|
|
35
|
+
return /* @__PURE__ */ d(t, {
|
|
36
36
|
"data-slot": "dialog-overlay",
|
|
37
|
-
className: e("data-
|
|
38
|
-
...
|
|
37
|
+
className: e("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", n),
|
|
38
|
+
...r
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
function v({ className: t, children: n, showCloseButton: r = !0, ...a }) {
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ f(h, { children: [/* @__PURE__ */ d(_, {}), /* @__PURE__ */ f(o, {
|
|
43
43
|
"data-slot": "dialog-content",
|
|
44
|
-
className: e("bg-popover text-popover-foreground ring-foreground/10 data-
|
|
44
|
+
className: e("bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed start-1/2 top-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm rtl:translate-x-1/2", t),
|
|
45
45
|
...a,
|
|
46
|
-
children: [n, r && /* @__PURE__ */
|
|
46
|
+
children: [n, r && /* @__PURE__ */ d(i, {
|
|
47
47
|
"data-slot": "dialog-close",
|
|
48
48
|
asChild: !0,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ f(l, {
|
|
50
50
|
variant: "ghost",
|
|
51
51
|
className: "absolute end-2 top-2",
|
|
52
52
|
size: "icon-sm",
|
|
53
|
-
children: [/* @__PURE__ */ u
|
|
53
|
+
children: [/* @__PURE__ */ d(u, {}), /* @__PURE__ */ d("span", {
|
|
54
54
|
className: "sr-only",
|
|
55
55
|
children: "Close"
|
|
56
56
|
})]
|
|
@@ -59,20 +59,20 @@ function v({ className: t, children: n, showCloseButton: r = !0, ...a }) {
|
|
|
59
59
|
})] });
|
|
60
60
|
}
|
|
61
61
|
function y({ className: t, ...n }) {
|
|
62
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ d("div", {
|
|
63
63
|
"data-slot": "dialog-header",
|
|
64
64
|
className: e("flex flex-col gap-2", t),
|
|
65
65
|
...n
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function b({ className: t, showCloseButton: n = !1, children: r, ...
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
function b({ className: t, showCloseButton: n = !1, children: r, ...a }) {
|
|
69
|
+
return /* @__PURE__ */ f("div", {
|
|
70
70
|
"data-slot": "dialog-footer",
|
|
71
71
|
className: e("bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 sm:flex-row sm:justify-end", t),
|
|
72
|
-
...
|
|
73
|
-
children: [r, n && /* @__PURE__ */
|
|
72
|
+
...a,
|
|
73
|
+
children: [r, n && /* @__PURE__ */ d(i, {
|
|
74
74
|
asChild: !0,
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ d(l, {
|
|
76
76
|
variant: "outline",
|
|
77
77
|
children: "Close"
|
|
78
78
|
})
|
|
@@ -80,14 +80,14 @@ function b({ className: t, showCloseButton: n = !1, children: r, ...i }) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
function x({ className: t, ...n }) {
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ d(s, {
|
|
84
84
|
"data-slot": "dialog-title",
|
|
85
85
|
className: e("text-base leading-none font-medium", t),
|
|
86
86
|
...n
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
function S({ className: t, ...n }) {
|
|
90
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ d(r, {
|
|
91
91
|
"data-slot": "dialog-description",
|
|
92
92
|
className: e("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", t),
|
|
93
93
|
...n
|
package/dist/direction.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-UnTrOmPV.js");let n=require("react");n=e.r(n);let r=require("react/jsx-runtime");function i({dir:e,direction:n,children:i}){return(0,r.jsx)(t.t,{dir:n??e,children:i})}var a=t.n;exports.DirectionProvider=i,exports.useDirection=a;
|
package/dist/direction.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Direction } from 'radix-ui';
|
|
2
1
|
import { DirectionProviderBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { Direction } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
declare function DirectionProvider({ dir, direction, children, }: React.ComponentProps<typeof Direction.DirectionProvider> & DirectionProviderBaseProps):
|
|
4
|
+
declare function DirectionProvider({ dir, direction, children, }: React.ComponentProps<typeof Direction.DirectionProvider> & DirectionProviderBaseProps): React.JSX.Element;
|
|
5
5
|
declare const useDirection: typeof Direction.useDirection;
|
|
6
6
|
export { DirectionProvider, useDirection };
|
|
7
7
|
//# sourceMappingURL=direction.d.ts.map
|
package/dist/direction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../src/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../src/direction.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,iBAAS,iBAAiB,CAAC,EACzB,GAAG,EACH,SAAS,EACT,QAAQ,GACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,iBAAiB,CAAC,GAAG,0BAA0B,qBAEvF;AAED,QAAA,MAAM,YAAY,+BAAyB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/direction.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-hFLuJoMi.js"),n=require("./dist-CGgemr2V.js");let r=require("react");r=e.r(r,1);let i=require("react-dom");i=e.r(i,1);let a=require("react/jsx-runtime");var o=Object.defineProperty,s=r.forwardRef(((e,t)=>o(e,`name`,{value:t,configurable:!0}))(function(e,o){let{container:s,...c}=e,[l,u]=r.useState(!1);n.t(()=>u(!0),[]);let d=s||l&&globalThis?.document?.body;return d?i.createPortal((0,a.jsx)(t.t.div,{...c,ref:o}),d):null},`Portal`));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as e } from "./dist-BEbV0Hal.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../node_modules/.bun/@radix-ui+react-visually-hidden@1.2.13+b146eb580f4286be/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
5
|
+
var r = Object.defineProperty, i = (e, t) => r(e, "name", {
|
|
6
|
+
value: t,
|
|
7
|
+
configurable: !0
|
|
8
|
+
}), a = Object.freeze({
|
|
9
|
+
position: "absolute",
|
|
10
|
+
border: 0,
|
|
11
|
+
width: 1,
|
|
12
|
+
height: 1,
|
|
13
|
+
padding: 0,
|
|
14
|
+
margin: -1,
|
|
15
|
+
overflow: "hidden",
|
|
16
|
+
clip: "rect(0, 0, 0, 0)",
|
|
17
|
+
whiteSpace: "nowrap",
|
|
18
|
+
wordWrap: "normal"
|
|
19
|
+
}), o = /* @__PURE__ */ t.forwardRef(/* @__PURE__ */ i(function(t, r) {
|
|
20
|
+
return /* @__PURE__ */ n(e.span, {
|
|
21
|
+
...t,
|
|
22
|
+
ref: r,
|
|
23
|
+
style: {
|
|
24
|
+
...a,
|
|
25
|
+
...t.style
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}, "VisuallyHidden"));
|
|
29
|
+
//#endregion
|
|
30
|
+
export { o as n, a as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region ../../node_modules/.bun/@radix-ui+primitive@1.2.0/node_modules/@radix-ui/primitive/dist/index.mjs
|
|
2
|
+
var e = Object.defineProperty, t = (t, n) => e(t, "name", {
|
|
3
|
+
value: n,
|
|
4
|
+
configurable: !0
|
|
5
|
+
}), n = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
6
|
+
function r(e, n, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
7
|
+
return /* @__PURE__ */ t(function(t) {
|
|
8
|
+
if (e?.(t), r === !1 || !t || !t.defaultPrevented) return n?.(t);
|
|
9
|
+
}, "handleEvent");
|
|
10
|
+
}
|
|
11
|
+
t(r, "composeEventHandlers");
|
|
12
|
+
function i(e) {
|
|
13
|
+
if (!n) throw Error("Cannot access window outside of the DOM");
|
|
14
|
+
return e?.ownerDocument?.defaultView ?? window;
|
|
15
|
+
}
|
|
16
|
+
t(i, "getOwnerWindow");
|
|
17
|
+
function a(e) {
|
|
18
|
+
if (!n) throw Error("Cannot access document outside of the DOM");
|
|
19
|
+
return e?.ownerDocument ?? document;
|
|
20
|
+
}
|
|
21
|
+
t(a, "getOwnerDocument");
|
|
22
|
+
function o(e, t = !1) {
|
|
23
|
+
let { activeElement: n } = a(e);
|
|
24
|
+
if (!n?.nodeName) return null;
|
|
25
|
+
if (s(n) && n.contentDocument) return o(n.contentDocument.body, t);
|
|
26
|
+
if (t) {
|
|
27
|
+
let e = n.getAttribute("aria-activedescendant");
|
|
28
|
+
if (e) {
|
|
29
|
+
let t = a(n).getElementById(e);
|
|
30
|
+
if (t) return t;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return n;
|
|
34
|
+
}
|
|
35
|
+
t(o, "getActiveElement");
|
|
36
|
+
function s(e) {
|
|
37
|
+
return e.tagName === "IFRAME";
|
|
38
|
+
}
|
|
39
|
+
t(s, "isFrame");
|
|
40
|
+
//#endregion
|
|
41
|
+
export { r as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js");let t=require("react");t=e.r(t,1);var n=Object.defineProperty,r=(e,t)=>n(e,`name`,{value:t,configurable:!0});function i(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}r(i,`setRef`);function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():i(e[t],null)}}}}r(a,`composeRefs`);function o(...e){return t.useCallback(a(...e),e)}r(o,`useComposedRefs`);var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0});function l(e){let n=t.forwardRef((n,r)=>{let{children:i,...a}=n,s=null,c=!1,l=[];i=b(i),t.Children.forEach(i,e=>{if(g(e)){c=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;v(n)&&typeof w==`function`;)n=w(n._payload);s=p(t,n),l.push(s?.props?.children)}else l.push(e)}),s?s=t.cloneElement(s,void 0,l):!c&&t.Children.count(i)===1&&t.isValidElement(i)&&(s=i);let u=s?h(s):void 0,d=o(r,u);if(!s){if(i||i===0)throw Error(c?C(e):S(e));return i}let f=m(a,s.props??{});return s.type!==t.Fragment&&(f.ref=r?d:u),t.cloneElement(s,f)});return n.displayName=`${e}.Slot`,n}c(l,`createSlot`);var u=l(`Slot`),d=Symbol.for(`radix.slottable`);function f(e){let t=c(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=d,t}c(f,`createSlottable`);var p=c((e,n)=>`child`in e.props?t.isValidElement(n)?t.cloneElement(n,void 0,e.props.children(n.props.children)):null:t.isValidElement(n)?n:null,`getSlottableElementFromSlottable`);function m(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=x(a,i))}return{...e,...n}}c(m,`mergeProps`);function h(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}c(h,`getElementRef`);function g(e){return t.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===d}c(g,`isSlottable`);var _=Symbol.for(`react.lazy`);function v(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===_&&`_payload`in e&&y(e._payload)}c(v,`isLazyComponent`);function y(e){return typeof e==`object`&&!!e&&`then`in e}c(y,`isPromiseLike`);function b(e){let t=e;for(;v(t)&&typeof w==`function`;)t=w(t._payload);return t}c(b,`useUnwrappedLazy`);function x(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}c(x,`concatAriaDescribedby`);var S=c(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),C=c(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),w=t.use;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { n as e } from "./dist-
|
|
1
|
+
import { n as e } from "./dist-Dq-h6VAy.mjs";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import * as n from "react-dom";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../node_modules/.bun/@radix-ui+react-primitive@2.
|
|
6
|
-
var i =
|
|
5
|
+
//#region ../../node_modules/.bun/@radix-ui+react-primitive@2.2.0+b146eb580f4286be/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
+
var i = Object.defineProperty, a = (e, t) => i(e, "name", {
|
|
7
|
+
value: t,
|
|
8
|
+
configurable: !0
|
|
9
|
+
}), o = [
|
|
7
10
|
"a",
|
|
8
11
|
"button",
|
|
9
12
|
"div",
|
|
@@ -34,8 +37,9 @@ var i = [
|
|
|
34
37
|
[i]: o
|
|
35
38
|
};
|
|
36
39
|
}, {});
|
|
37
|
-
function
|
|
40
|
+
function s(e, t) {
|
|
38
41
|
e && n.flushSync(() => e.dispatchEvent(t));
|
|
39
42
|
}
|
|
43
|
+
a(s, "dispatchDiscreteCustomEvent");
|
|
40
44
|
//#endregion
|
|
41
|
-
export {
|
|
45
|
+
export { s as n, o as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as e } from "./dist-GazS1kfR.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-callback-ref@1.1.5+c841d34b494ec30a/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
}), i = t.useInsertionEffect;
|
|
8
|
+
function a(n) {
|
|
9
|
+
let r = t.useRef(n);
|
|
10
|
+
return typeof i == "function" ? i(() => {
|
|
11
|
+
r.current = n;
|
|
12
|
+
}) : e(() => {
|
|
13
|
+
r.current = n;
|
|
14
|
+
}), t.useMemo(() => ((...e) => r.current?.(...e)), []);
|
|
15
|
+
}
|
|
16
|
+
r(a, "useCallbackRef");
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js"),i=require("./dist-CGgemr2V.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-YAADIsyo.js"),s=require("./dist-D7-Fky36.js"),c=require("./dist-C8Pm6LRc.js");let l=require("react");l=e.r(l,1);let u=require("react/jsx-runtime");var d=Object.defineProperty,f=(e,t)=>d(e,`name`,{value:t,configurable:!0}),p=`Collapsible`,[m,h]=r.t(p),[g,_]=m(p),v=l.forwardRef(f(function(e,t){let{__scopeCollapsible:r,open:i,defaultOpen:a,disabled:s,onOpenChange:d,...f}=e,[m,h]=o.t({prop:i,defaultProp:a??!1,onChange:d,caller:p});return(0,u.jsx)(g,{scope:r,disabled:s,contentId:c.t(),open:m,onOpenToggle:l.useCallback(()=>h(e=>!e),[h]),children:(0,u.jsx)(n.t.div,{"data-state":w(m),"data-disabled":s?``:void 0,...f,ref:t})})},`Collapsible`)),y=`CollapsibleTrigger`,b=l.forwardRef(f(function(e,t){let{__scopeCollapsible:r,...i}=e,o=_(y,r);return(0,u.jsx)(n.t.button,{type:`button`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open||!1,"data-state":w(o.open),"data-disabled":o.disabled?``:void 0,disabled:o.disabled,...i,ref:t,onClick:a.t(e.onClick,o.onOpenToggle)})},`CollapsibleTrigger`)),x=`CollapsibleContent`,S=l.forwardRef(f(function(e,t){let{forceMount:n,...r}=e,i=_(x,e.__scopeCollapsible);return(0,u.jsx)(s.t,{present:n||i.open,children:({present:e})=>(0,u.jsx)(C,{...r,ref:t,present:e})})},`CollapsibleContent`)),C=l.forwardRef(f(function(e,r){let{__scopeCollapsible:a,present:o,children:s,...c}=e,d=_(x,a),[f,p]=l.useState(o),m=l.useRef(null),h=t.a(r,m),g=l.useRef(0),v=g.current,y=l.useRef(0),b=y.current,S=d.open||f,C=l.useRef(S),T=l.useRef(void 0);return l.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),i.t(()=>{let e=m.current;if(e){T.current=T.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,C.current||(e.style.transitionDuration=T.current.transitionDuration,e.style.animationName=T.current.animationName),p(o)}},[d.open,o]),(0,u.jsx)(n.t.div,{"data-state":w(d.open),"data-disabled":d.disabled?``:void 0,id:d.contentId,hidden:!S,...c,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:S&&s})},`CollapsibleContentImpl`));function w(e){return e?`open`:`closed`}f(w,`getState`),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DZiOPWLp.js"),i=require("./dist-D1qkELLT.js");let a=require("react");a=e.r(a,1);let o=require("react/jsx-runtime");var s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=`dismissableLayer.update`,u=`dismissableLayer.pointerDownOutside`,d=`dismissableLayer.focusOutside`,f,p=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),m=a.forwardRef(c(function(e,s){let{disableOutsidePointerEvents:u=!1,deferPointerDownOutside:d=!1,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:_,onDismiss:x,...S}=e,C=a.useContext(p),[w,T]=a.useState(null),E=w?.ownerDocument??globalThis?.document,[,D]=a.useState({}),O=t.a(s,T),k=Array.from(C.layers),[A]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),j=A?k.indexOf(A):-1,M=w?k.indexOf(w):-1,N=C.layersWithOutsidePointerEventsDisabled.size>0,P=M>=j,F=a.useRef(!1),I=v(e=>{h?.(e),_?.(e),e.defaultPrevented||x?.()},{ownerDocument:E,deferPointerDownOutside:d,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:a.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return P&&!t},[C.branches,P])}),L=y(e=>{if(d&&F.current)return;let t=e.target;[...C.branches].some(e=>e.contains(t))||(g?.(e),_?.(e),e.defaultPrevented||x?.())},E),R=w?M===k.length-1:!1,z=i.t(e=>{e.key===`Escape`&&(m?.(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))});return a.useEffect(()=>{if(R)return E.addEventListener(`keydown`,z,{capture:!0}),()=>E.removeEventListener(`keydown`,z,{capture:!0})},[E,R,z]),a.useEffect(()=>{if(w)return u&&(C.layersWithOutsidePointerEventsDisabled.size===0&&(f=E.body.style.pointerEvents,E.body.style.pointerEvents=`none`),C.layersWithOutsidePointerEventsDisabled.add(w)),C.layers.add(w),b(),()=>{u&&(C.layersWithOutsidePointerEventsDisabled.delete(w),C.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=f))}},[w,E,u,C]),a.useEffect(()=>()=>{w&&(C.layers.delete(w),C.layersWithOutsidePointerEventsDisabled.delete(w),b())},[w,C]),a.useEffect(()=>{let e=c(()=>D({}),`handleUpdate`);return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,o.jsx)(n.t.div,{...S,ref:O,style:{pointerEvents:N?P?`auto`:`none`:void 0,...e.style},onFocusCapture:r.t(e.onFocusCapture,L.onFocusCapture),onBlurCapture:r.t(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:r.t(e.onPointerDownCapture,I.onPointerDownCapture)})},`DismissableLayer`)),h=a.forwardRef(c(function(e,r){let i=a.useContext(p),s=a.useRef(null),c=t.a(r,s);return a.useEffect(()=>{let e=s.current;if(e)return i.branches.add(e),()=>{i.branches.delete(e)}},[i.branches]),(0,o.jsx)(n.t.div,{...e,ref:c})},`DismissableLayerBranch`));function g(){let e=a.useContext(p),[t,n]=a.useState(null);return a.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}c(g,`useDismissableLayerSurface`);var _=c(()=>!0,`IS_TRUE`);function v(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:l=_}=t,d=i.t(e),f=a.useRef(!1),p=a.useRef(!1),m=a.useRef(new Map),h=a.useRef(()=>{});return a.useEffect(()=>{function e(){p.current=!1,o.current=!1,m.current.clear()}c(e,`resetOutsideInteraction`);function t(){return Array.from(m.current.values()).some(Boolean)}c(t,`isOutsideInteractionIntercepted`);function i(e){if(!p.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||m.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{p.current&&h.current()},0)}c(i,`handleInteractionCapture`);function a(e){p.current&&m.current.set(e.type,!1)}c(a,`handleInteractionBubble`);let g=c(i=>{if(i.target&&!f.current){let a=function(){n.removeEventListener(`click`,h.current);let r=t();e(),r||x(u,d,s,{discrete:!0})};if(c(a,`handleAndDispatchPointerDownOutsideEvent`),!l(i.target)){n.removeEventListener(`click`,h.current),e(),f.current=!1;return}let s={originalEvent:i};p.current=!0,o.current=r&&i.button===0,m.current.clear(),!r||i.button!==0?a():(n.removeEventListener(`click`,h.current),h.current=a,n.addEventListener(`click`,h.current,{once:!0}))}else n.removeEventListener(`click`,h.current),e();f.current=!1},`handlePointerDown`),_=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of _)n.addEventListener(e,i,!0),n.addEventListener(e,a);let v=window.setTimeout(()=>{n.addEventListener(`pointerdown`,g)},0);return()=>{window.clearTimeout(v),n.removeEventListener(`pointerdown`,g),n.removeEventListener(`click`,h.current);for(let e of _)n.removeEventListener(e,i,!0),n.removeEventListener(e,a)}},[n,d,r,o,s,l]),{onPointerDownCapture:c(()=>f.current=!0,`onPointerDownCapture`)}}c(v,`usePointerDownOutside`);function y(e,t=globalThis?.document){let n=i.t(e),r=a.useRef(!1);return a.useEffect(()=>{let e=c(e=>{e.target&&!r.current&&x(d,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:c(()=>r.current=!0,`onFocusCapture`),onBlurCapture:c(()=>r.current=!1,`onBlurCapture`)}}c(y,`useFocusOutside`);function b(){let e=new CustomEvent(l);document.dispatchEvent(e)}c(b,`dispatchUpdate`);function x(e,t,r,{discrete:i}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?n.n(a,o):a.dispatchEvent(o)}c(x,`handleAndDispatchCustomEvent`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return m}});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./dist-GazS1kfR.mjs";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-size@1.1.5+c841d34b494ec30a/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
});
|
|
8
|
+
function i(n) {
|
|
9
|
+
let [r, i] = t.useState(void 0);
|
|
10
|
+
return e(() => {
|
|
11
|
+
if (n) {
|
|
12
|
+
i({
|
|
13
|
+
width: n.offsetWidth,
|
|
14
|
+
height: n.offsetHeight
|
|
15
|
+
});
|
|
16
|
+
let e = 0, t = new ResizeObserver((t) => {
|
|
17
|
+
if (!Array.isArray(t) || !t.length) return;
|
|
18
|
+
let r = t[0];
|
|
19
|
+
window.cancelAnimationFrame(e), e = window.requestAnimationFrame(() => {
|
|
20
|
+
let e, t;
|
|
21
|
+
if ("borderBoxSize" in r) {
|
|
22
|
+
let n = r.borderBoxSize, i = Array.isArray(n) ? n[0] : n;
|
|
23
|
+
e = i.inlineSize, t = i.blockSize;
|
|
24
|
+
} else e = n.offsetWidth, t = n.offsetHeight;
|
|
25
|
+
i({
|
|
26
|
+
width: e,
|
|
27
|
+
height: t
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
return t.observe(n, { box: "border-box" }), () => {
|
|
32
|
+
window.cancelAnimationFrame(e), t.unobserve(n);
|
|
33
|
+
};
|
|
34
|
+
} else i(void 0);
|
|
35
|
+
}, [n]), r;
|
|
36
|
+
}
|
|
37
|
+
r(i, "useSize");
|
|
38
|
+
//#endregion
|
|
39
|
+
export { i as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/.bun/@radix-ui+react-direction@1.2.0+c841d34b494ec30a/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
4
|
+
var n = Object.defineProperty, r = (e, t) => n(e, "name", {
|
|
5
|
+
value: t,
|
|
6
|
+
configurable: !0
|
|
7
|
+
}), i = {
|
|
8
|
+
LTR: "ltr",
|
|
9
|
+
RTL: "rtl"
|
|
10
|
+
}, a = e.createContext(void 0), o = /* @__PURE__ */ r((e) => {
|
|
11
|
+
let { dir: n, children: r } = e;
|
|
12
|
+
return /* @__PURE__ */ t(a.Provider, {
|
|
13
|
+
value: n,
|
|
14
|
+
children: r
|
|
15
|
+
});
|
|
16
|
+
}, "DirectionProvider");
|
|
17
|
+
function s(t) {
|
|
18
|
+
let n = e.useContext(a);
|
|
19
|
+
return t || n || i.LTR;
|
|
20
|
+
}
|
|
21
|
+
r(s, "useDirection");
|
|
22
|
+
//#endregion
|
|
23
|
+
export { s as n, o as t };
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { a as e } from "./dist-Dq-h6VAy.mjs";
|
|
2
|
+
import { t } from "./dist-BEbV0Hal.mjs";
|
|
3
|
+
import { t as n } from "./dist-CPAF050o.mjs";
|
|
4
|
+
import { t as r } from "./dist-GazS1kfR.mjs";
|
|
5
|
+
import { t as i } from "./dist-OqDzLHTa.mjs";
|
|
6
|
+
import { t as a } from "./dist-BB78QQyQ.mjs";
|
|
7
|
+
import { t as o } from "./dist-Bvfb4y_L.mjs";
|
|
8
|
+
import { t as s } from "./dist-UkWa-Arh.mjs";
|
|
9
|
+
import { n as c } from "./dist-BbI6NHqR.mjs";
|
|
10
|
+
import { t as l } from "./dist-BPL7gUpg.mjs";
|
|
11
|
+
import * as u from "react";
|
|
12
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../node_modules/.bun/@radix-ui+react-use-is-hydrated@0.1.3+c841d34b494ec30a/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
|
|
14
|
+
var f = Object.defineProperty, p = (e, t) => f(e, "name", {
|
|
15
|
+
value: t,
|
|
16
|
+
configurable: !0
|
|
17
|
+
}), m = !1;
|
|
18
|
+
function h() {
|
|
19
|
+
let [e, t] = u.useState(m);
|
|
20
|
+
return u.useEffect(() => {
|
|
21
|
+
m || (m = !0, t(!0));
|
|
22
|
+
}, []), e;
|
|
23
|
+
}
|
|
24
|
+
p(h, "useIsHydrated");
|
|
25
|
+
var g = u.useSyncExternalStore;
|
|
26
|
+
function _() {
|
|
27
|
+
return () => {};
|
|
28
|
+
}
|
|
29
|
+
p(_, "subscribe");
|
|
30
|
+
function v() {
|
|
31
|
+
return g(_, () => !0, () => !1);
|
|
32
|
+
}
|
|
33
|
+
p(v, "useIsHydratedModern");
|
|
34
|
+
var y = typeof g == "function" ? v : h, b = Object.defineProperty, x = (e, t) => b(e, "name", {
|
|
35
|
+
value: t,
|
|
36
|
+
configurable: !0
|
|
37
|
+
}), S = "rovingFocusGroup.onEntryFocus", C = {
|
|
38
|
+
bubbles: !1,
|
|
39
|
+
cancelable: !0
|
|
40
|
+
}, w = "RovingFocusGroup", [T, E, D] = i(w), [O, k] = n(w, [D]), A = {
|
|
41
|
+
Vertical: "vertical",
|
|
42
|
+
Horizontal: "horizontal"
|
|
43
|
+
}, j = {
|
|
44
|
+
LTR: "ltr",
|
|
45
|
+
RTL: "rtl"
|
|
46
|
+
}, [M, N] = O(w), P = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(e, t) {
|
|
47
|
+
return /* @__PURE__ */ d(T.Provider, {
|
|
48
|
+
scope: e.__scopeRovingFocusGroup,
|
|
49
|
+
children: /* @__PURE__ */ d(T.Slot, {
|
|
50
|
+
scope: e.__scopeRovingFocusGroup,
|
|
51
|
+
children: /* @__PURE__ */ d(F, {
|
|
52
|
+
...e,
|
|
53
|
+
ref: t
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}, "RovingFocusGroup")), F = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(n, r) {
|
|
58
|
+
let { __scopeRovingFocusGroup: i, orientation: s, loop: f = !1, dir: p, currentTabStopId: m, defaultCurrentTabStopId: h, onCurrentTabStopIdChange: g, onEntryFocus: _, preventScrollOnEntryFocus: v = !1, ...y } = n, b = u.useRef(null), x = e(r, b), T = c(p), [D, O] = o({
|
|
59
|
+
prop: m,
|
|
60
|
+
defaultProp: h ?? null,
|
|
61
|
+
onChange: g,
|
|
62
|
+
caller: w
|
|
63
|
+
}), [k, A] = u.useState(!1), j = l(_), N = E(i), P = u.useRef(!1), [F, I] = u.useState(0);
|
|
64
|
+
return u.useEffect(() => {
|
|
65
|
+
let e = b.current;
|
|
66
|
+
if (e) return e.addEventListener(S, j), () => e.removeEventListener(S, j);
|
|
67
|
+
}, [j]), /* @__PURE__ */ d(M, {
|
|
68
|
+
scope: i,
|
|
69
|
+
orientation: s,
|
|
70
|
+
dir: T,
|
|
71
|
+
loop: f,
|
|
72
|
+
currentTabStopId: D,
|
|
73
|
+
onItemFocus: u.useCallback((e) => O(e), [O]),
|
|
74
|
+
onItemShiftTab: u.useCallback(() => A(!0), []),
|
|
75
|
+
onFocusableItemAdd: u.useCallback(() => I((e) => e + 1), []),
|
|
76
|
+
onFocusableItemRemove: u.useCallback(() => I((e) => e - 1), []),
|
|
77
|
+
children: /* @__PURE__ */ d(t.div, {
|
|
78
|
+
tabIndex: k || F === 0 ? -1 : 0,
|
|
79
|
+
"data-orientation": s,
|
|
80
|
+
...y,
|
|
81
|
+
ref: x,
|
|
82
|
+
style: {
|
|
83
|
+
outline: "none",
|
|
84
|
+
...n.style
|
|
85
|
+
},
|
|
86
|
+
onMouseDown: a(n.onMouseDown, () => {
|
|
87
|
+
P.current = !0;
|
|
88
|
+
}),
|
|
89
|
+
onFocus: a(n.onFocus, (e) => {
|
|
90
|
+
let t = !P.current;
|
|
91
|
+
if (e.target === e.currentTarget && t && !k) {
|
|
92
|
+
let t = new CustomEvent(S, C);
|
|
93
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
94
|
+
let e = N().filter((e) => e.focusable);
|
|
95
|
+
V([
|
|
96
|
+
e.find((e) => e.active),
|
|
97
|
+
e.find((e) => e.id === D),
|
|
98
|
+
...e
|
|
99
|
+
].filter(Boolean).map((e) => e.ref.current), v);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
P.current = !1;
|
|
103
|
+
}),
|
|
104
|
+
onBlur: a(n.onBlur, () => A(!1))
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}, "RovingFocusGroupImpl")), I = "RovingFocusGroupItem", L = /* @__PURE__ */ u.forwardRef(/* @__PURE__ */ x(function(e, n) {
|
|
108
|
+
let { __scopeRovingFocusGroup: i, focusable: o = !0, active: c = !1, tabStopId: l, children: f, ...p } = e, m = s(), h = l || m, g = N(I, i), _ = g.currentTabStopId === h, v = E(i), { onFocusableItemAdd: b, onFocusableItemRemove: x, currentTabStopId: S } = g, C = y();
|
|
109
|
+
return r(() => {
|
|
110
|
+
if (!(!C || !o)) return b(), () => x();
|
|
111
|
+
}, [
|
|
112
|
+
C,
|
|
113
|
+
o,
|
|
114
|
+
b,
|
|
115
|
+
x
|
|
116
|
+
]), u.useEffect(() => {
|
|
117
|
+
if (!(C || !o)) return b(), () => x();
|
|
118
|
+
}, [
|
|
119
|
+
C,
|
|
120
|
+
o,
|
|
121
|
+
b,
|
|
122
|
+
x
|
|
123
|
+
]), /* @__PURE__ */ d(T.ItemSlot, {
|
|
124
|
+
scope: i,
|
|
125
|
+
id: h,
|
|
126
|
+
focusable: o,
|
|
127
|
+
active: c,
|
|
128
|
+
children: /* @__PURE__ */ d(t.span, {
|
|
129
|
+
tabIndex: _ ? 0 : -1,
|
|
130
|
+
"data-orientation": g.orientation,
|
|
131
|
+
...p,
|
|
132
|
+
ref: n,
|
|
133
|
+
onMouseDown: a(e.onMouseDown, (e) => {
|
|
134
|
+
o ? g.onItemFocus(h) : e.preventDefault();
|
|
135
|
+
}),
|
|
136
|
+
onFocus: a(e.onFocus, () => g.onItemFocus(h)),
|
|
137
|
+
onKeyDown: a(e.onKeyDown, (e) => {
|
|
138
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
139
|
+
g.onItemShiftTab();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
if (e.target !== e.currentTarget) return;
|
|
143
|
+
let t = B(e, g.orientation, g.dir);
|
|
144
|
+
if (t !== void 0) {
|
|
145
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
146
|
+
e.preventDefault();
|
|
147
|
+
let n = v().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
148
|
+
if (t === "last") n.reverse();
|
|
149
|
+
else if (t === "prev" || t === "next") {
|
|
150
|
+
t === "prev" && n.reverse();
|
|
151
|
+
let r = n.indexOf(e.currentTarget);
|
|
152
|
+
n = g.loop ? H(n, r + 1) : n.slice(r + 1);
|
|
153
|
+
}
|
|
154
|
+
setTimeout(() => V(n));
|
|
155
|
+
}
|
|
156
|
+
}),
|
|
157
|
+
children: typeof f == "function" ? f({
|
|
158
|
+
isCurrentTabStop: _,
|
|
159
|
+
hasTabStop: S != null
|
|
160
|
+
}) : f
|
|
161
|
+
})
|
|
162
|
+
});
|
|
163
|
+
}, "RovingFocusGroupItem")), R = {
|
|
164
|
+
ArrowLeft: "prev",
|
|
165
|
+
ArrowUp: "prev",
|
|
166
|
+
ArrowRight: "next",
|
|
167
|
+
ArrowDown: "next",
|
|
168
|
+
PageUp: "first",
|
|
169
|
+
Home: "first",
|
|
170
|
+
PageDown: "last",
|
|
171
|
+
End: "last"
|
|
172
|
+
};
|
|
173
|
+
function z(e, t) {
|
|
174
|
+
return t === j.RTL ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
175
|
+
}
|
|
176
|
+
x(z, "getDirectionAwareKey");
|
|
177
|
+
function B(e, t, n) {
|
|
178
|
+
let r = z(e.key, n);
|
|
179
|
+
if (!(t === A.Vertical && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === A.Horizontal && ["ArrowUp", "ArrowDown"].includes(r))) return R[r];
|
|
180
|
+
}
|
|
181
|
+
x(B, "getFocusIntent");
|
|
182
|
+
function V(e, t = !1) {
|
|
183
|
+
let n = document.activeElement;
|
|
184
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
185
|
+
}
|
|
186
|
+
x(V, "focusFirst");
|
|
187
|
+
function H(e, t) {
|
|
188
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
189
|
+
}
|
|
190
|
+
x(H, "wrapArray");
|
|
191
|
+
//#endregion
|
|
192
|
+
export { L as n, k as r, P as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-mLOUI7ql.js"),t=require("./dist-BBvidwzC.js"),n=require("./dist-hFLuJoMi.js"),r=require("./dist-DYUvPCPC.js"),i=require("./dist-Zs2sjYhL.js"),a=require("./dist-DZiOPWLp.js"),o=require("./dist-D7-Fky36.js"),s=require("./dist-C8Pm6LRc.js"),c=require("./dist-UnTrOmPV.js"),l=require("./dist-D1qkELLT.js"),u=require("./dist-BU-TFzJf.js"),d=require("./dist-Qm9hFvM1.js"),f=require("./dist-1zUKVGvf.js"),p=require("./es2015-DbAsWDbs.js"),m=require("./dist-N97cIp0_.js"),h=require("./dist-DEpkkABT.js");let g=require("react");g=e.r(g,1);let _=require("react/jsx-runtime");var v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0}),ee={LTR:`ltr`,RTL:`rtl`},b=[`Enter`,` `],x=[`ArrowDown`,`PageUp`,`Home`],te=[`ArrowUp`,`PageDown`,`End`],ne=[...x,...te],re={ltr:[...b,`ArrowRight`],rtl:[...b,`ArrowLeft`]},S={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},C=`Menu`,[w,ie,T]=i.t(C),[E,ae]=r.t(C,[T,m.a,h.r]),D=m.a(),oe=h.r(),[O,k]=E(C),[se,A]=E(C),j=y(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=D(t),[u,d]=g.useState(null),f=g.useRef(!1),p=l.t(a),h=c.n(i);return g.useEffect(()=>{let e=y(()=>{f.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=y(()=>f.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),g.useEffect(()=>{if(!n)return;let e=y(()=>p(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,p]),(0,_.jsx)(m.t,{...s,children:(0,_.jsx)(O,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:d,children:(0,_.jsx)(se,{scope:t,onClose:g.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:o,children:r})})})},`Menu`),M=g.forwardRef(y(function(e,t){let{__scopeMenu:n,...r}=e,i=D(n);return(0,_.jsx)(m.n,{...i,...r,ref:t})},`MenuAnchor`)),N=`MenuPortal`,[ce,P]=E(N,{forceMount:void 0}),le=y(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=k(N,t);return(0,_.jsx)(ce,{scope:t,forceMount:n,children:(0,_.jsx)(o.t,{present:n||a.open,children:(0,_.jsx)(f.t,{asChild:!0,container:i,children:r})})})},`MenuPortal`),F=`MenuContent`,[ue,I]=E(F),L=g.forwardRef(y(function(e,t){let n=P(F,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=k(F,e.__scopeMenu),s=A(F,e.__scopeMenu);return(0,_.jsx)(w.Provider,{scope:e.__scopeMenu,children:(0,_.jsx)(o.t,{present:r||a.open,children:(0,_.jsx)(w.Slot,{scope:e.__scopeMenu,children:s.modal?(0,_.jsx)(R,{...i,ref:t}):(0,_.jsx)(z,{...i,ref:t})})})})},`MenuContent`)),R=g.forwardRef(y(function(e,n){let r=k(F,e.__scopeMenu),i=g.useRef(null),o=t.a(n,i);return g.useEffect(()=>{let e=i.current;if(e)return p.t(e)},[]),(0,_.jsx)(B,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:a.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},`MenuRootContentModal`)),z=g.forwardRef(y(function(e,t){let n=k(F,e.__scopeMenu);return(0,_.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),de=t.n(`MenuContent.ScrollLock`),B=g.forwardRef(y(function(e,n){let{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:f,onEscapeKeyDown:v,onPointerDownOutside:ee,onFocusOutside:b,onInteractOutside:x,onDismiss:re,disableOutsideScroll:S,...C}=e,w=k(F,r),T=A(F,r),E=D(r),ae=oe(r),O=ie(r),[se,j]=g.useState(null),M=g.useRef(null),[N,ce]=g.useState(null);d.r(N);let{nodes:P,registry:le}=d.i(),I=!!(o||S),L=t.a(n,M,w.onContentChange,ce),R=g.useRef(0),z=g.useRef(``),B=g.useRef(0),V=g.useRef(null),H=g.useRef(`right`),U=g.useRef(0),W=g.useMemo(()=>S?[M,...P.map(e=>({current:e}))]:[],[M,P,S]),G=S?p.n:g.Fragment,K=S?{as:de,allowPinchZoom:!0,shards:W}:void 0,fe=y(e=>{let t=z.current+e,n=O().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Ae(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){z.current=e,window.clearTimeout(R.current),e!==``&&(R.current=window.setTimeout(()=>s(``),1e3))}y(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);g.useEffect(()=>()=>window.clearTimeout(R.current),[]),p.r();let q=g.useCallback(e=>H.current===V.current?.side&&Me(e,V.current?.area),[]);return(0,_.jsx)(ue,{scope:r,searchRef:z,onItemEnter:g.useCallback(e=>{q(e)&&e.preventDefault()},[q]),onItemLeave:g.useCallback(e=>{q(e)||(M.current?.focus(),j(null))},[q]),onTriggerLeave:g.useCallback(e=>{q(e)&&e.preventDefault()},[q]),pointerGraceTimerRef:B,onPointerGraceIntentChange:g.useCallback(e=>{V.current=e},[]),children:(0,_.jsx)(d.n,{registry:I?le:null,children:(0,_.jsx)(G,{...K,children:(0,_.jsx)(d.t,{asChild:!0,trapped:o,branches:P,onMountAutoFocus:a.t(s,e=>{e.preventDefault(),M.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,_.jsx)(u.t,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:v,onPointerDownOutside:ee,onFocusOutside:b,onInteractOutside:x,onDismiss:re,children:(0,_.jsx)(h.t,{asChild:!0,...ae,dir:T.dir,orientation:`vertical`,loop:i,currentTabStopId:se,onCurrentTabStopIdChange:j,onEntryFocus:a.t(f,e=>{T.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,_.jsx)(m.i,{role:`menu`,"aria-orientation":`vertical`,"data-state":X(w.open),"data-radix-menu-content":``,dir:T.dir,...E,...C,ref:L,style:{outline:`none`,...C.style},onKeyDown:a.t(C.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&fe(e.key));let i=M.current;if(e.target!==i||!ne.includes(e.key))return;e.preventDefault();let a=O().filter(e=>!e.disabled).map(e=>e.ref.current);te.includes(e.key)&&a.reverse(),Oe(a)}),onBlur:a.t(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(R.current),z.current=``)}),onPointerMove:a.t(e.onPointerMove,$(e=>{let t=e.target,n=U.current!==e.clientX;e.currentTarget.contains(t)&&n&&(H.current=e.clientX>U.current?`right`:`left`,U.current=e.clientX)}))})})})})})})})},`MenuContentImpl`)),V=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{role:`group`,...i,ref:t})},`MenuGroup`)),H=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{...i,ref:t})},`MenuLabel`)),U=`MenuItem`,W=`menu.itemSelect`,G=g.forwardRef(y(function(e,r){let{disabled:i=!1,onSelect:o,...s}=e,c=g.useRef(null),l=A(U,e.__scopeMenu),u=I(U,e.__scopeMenu),d=t.a(r,c),f=g.useRef(!1),p=y(()=>{let e=c.current;if(!i&&e){let t=new CustomEvent(W,{bubbles:!0,cancelable:!0});e.addEventListener(W,e=>o?.(e),{once:!0}),n.n(e,t),t.defaultPrevented?f.current=!1:l.onClose()}},`handleSelect`);return(0,_.jsx)(K,{...s,ref:d,disabled:i,onClick:a.t(e.onClick,p),onPointerDown:t=>{e.onPointerDown?.(t),f.current=!0},onPointerUp:a.t(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:a.t(e.onKeyDown,e=>{i||e.target!==e.currentTarget||u.searchRef.current!==``&&e.key===` `||b.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),K=g.forwardRef(y(function(e,r){let{__scopeMenu:i,disabled:o=!1,textValue:s,...c}=e,l=I(U,i),u=oe(i),d=g.useRef(null),f=t.a(r,d),[p,m]=g.useState(!1),[v,y]=g.useState(``);return g.useEffect(()=>{let e=d.current;e&&y((e.textContent??``).trim())},[c.children]),(0,_.jsx)(w.ItemSlot,{scope:i,disabled:o,textValue:s??v,children:(0,_.jsx)(h.n,{asChild:!0,...u,focusable:!o,children:(0,_.jsx)(n.t.div,{role:`menuitem`,"data-highlighted":p?``:void 0,"aria-disabled":o||void 0,"data-disabled":o?``:void 0,...c,ref:f,onPointerMove:a.t(e.onPointerMove,$(e=>{o?l.onItemLeave(e):(l.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:a.t(e.onPointerLeave,$(e=>l.onItemLeave(e))),onFocus:a.t(e.onFocus,()=>m(!0)),onBlur:a.t(e.onBlur,()=>m(!1))})})})},`MenuItemImpl`)),fe=g.forwardRef(y(function(e,t){let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,_.jsx)(_e,{scope:e.__scopeMenu,checked:n,children:(0,_.jsx)(G,{role:`menuitemcheckbox`,"aria-checked":Z(n)?`mixed`:n,...i,ref:t,"data-state":Q(n),onSelect:a.t(i.onSelect,()=>r?.(Z(n)?!0:!n),{checkForDefaultPrevented:!1})})})},`MenuCheckboxItem`)),[q,pe]=E(`MenuRadioGroup`,{value:void 0,onValueChange:y(()=>{},`onValueChange`)}),me=g.forwardRef(y(function(e,t){let{value:n,onValueChange:r,...i}=e,a=l.t(r);return(0,_.jsx)(q,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,_.jsx)(V,{...i,ref:t})})},`MenuRadioGroup`)),he=`MenuRadioItem`,ge=g.forwardRef(y(function(e,t){let{value:n,...r}=e,i=pe(he,e.__scopeMenu),o=n===i.value;return(0,_.jsx)(_e,{scope:e.__scopeMenu,checked:o,children:(0,_.jsx)(G,{role:`menuitemradio`,"aria-checked":o,...r,ref:t,"data-state":Q(o),onSelect:a.t(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})},`MenuRadioItem`)),J=`MenuItemIndicator`,[_e,ve]=E(J,{checked:!1}),ye=g.forwardRef(y(function(e,t){let{__scopeMenu:r,forceMount:i,...a}=e,s=ve(J,r);return(0,_.jsx)(o.t,{present:i||Z(s.checked)||s.checked===!0,children:(0,_.jsx)(n.t.span,{...a,ref:t,"data-state":Q(s.checked)})})},`MenuItemIndicator`)),be=g.forwardRef(y(function(e,t){let{__scopeMenu:r,...i}=e;return(0,_.jsx)(n.t.div,{role:`separator`,"aria-orientation":`horizontal`,...i,ref:t})},`MenuSeparator`)),xe=`MenuSub`,[Se,Ce]=E(xe),we=y(e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,a=k(xe,t),o=D(t),[c,u]=g.useState(null),[d,f]=g.useState(null),p=l.t(i);return g.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),(0,_.jsx)(m.t,{...o,children:(0,_.jsx)(O,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,_.jsx)(Se,{scope:t,contentId:s.t(),triggerId:s.t(),trigger:c,onTriggerChange:u,children:n})})})},`MenuSub`),Y=`MenuSubTrigger`,Te=g.forwardRef(y(function(e,n){let r=k(Y,e.__scopeMenu),i=A(Y,e.__scopeMenu),o=Ce(Y,e.__scopeMenu),s=I(Y,e.__scopeMenu),c=g.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},f=g.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);g.useEffect(()=>f,[f]),g.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);let p=t.a(n,o.onTriggerChange);return(0,_.jsx)(M,{asChild:!0,...d,children:(0,_.jsx)(K,{id:o.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":r.open?o.contentId:void 0,"data-state":X(r.open),...e,ref:p,onClick:t=>{e.onClick?.(t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:a.t(e.onPointerMove,$(t=>{s.onItemEnter(t),!t.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:a.t(e.onPointerLeave,$(e=>{f();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,o=t[i?`left`:`right`],c=t[i?`right`:`left`];s.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:o,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:o,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:a.t(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||s.searchRef.current!==``&&t.key===` `||re[i.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})},`MenuSubTrigger`)),Ee=`MenuSubContent`,De=g.forwardRef(y(function(e,n){let r=P(F,e.__scopeMenu),{forceMount:i=r.forceMount,align:s=`start`,...c}=e,l=k(F,e.__scopeMenu),u=A(F,e.__scopeMenu),d=Ce(Ee,e.__scopeMenu),f=g.useRef(null),p=t.a(n,f);return(0,_.jsx)(w.Provider,{scope:e.__scopeMenu,children:(0,_.jsx)(o.t,{present:i||l.open,children:(0,_.jsx)(w.Slot,{scope:e.__scopeMenu,children:(0,_.jsx)(B,{id:d.contentId,"aria-labelledby":d.triggerId,...c,ref:p,align:s,side:u.dir===ee.RTL?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{u.isUsingKeyboardRef.current&&f.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:a.t(e.onFocusOutside,e=>{e.target!==d.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:a.t(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:a.t(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=S[u.dir].includes(e.key);t&&n&&(l.onOpenChange(!1),d.trigger?.focus(),e.preventDefault())})})})})})},`MenuSubContent`));function X(e){return e?`open`:`closed`}y(X,`getOpenState`);function Z(e){return e===`indeterminate`}y(Z,`isIndeterminate`);function Q(e){return Z(e)?`indeterminate`:e?`checked`:`unchecked`}y(Q,`getCheckedState`);function Oe(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}y(Oe,`focusFirst`);function ke(e,t){return e.map((n,r)=>e[(t+r)%e.length])}y(ke,`wrapArray`);function Ae(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ke(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}y(Ae,`getNextMatch`);function je(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}y(je,`isPointInPolygon`);function Me(e,t){return t?je({x:e.clientX,y:e.clientY},t):!1}y(Me,`isPointerInGraceArea`);function $(e){return t=>t.pointerType===`mouse`?e(t):void 0}y($,`whenMouse`),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return be}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return we}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return me}});
|