@arolariu/components 0.0.30 → 0.0.31
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/cjs/components/ui/accordion.cjs +1 -1
- package/dist/cjs/components/ui/accordion.cjs.map +1 -1
- package/dist/cjs/components/ui/alert-dialog.cjs +1 -1
- package/dist/cjs/components/ui/alert-dialog.cjs.map +1 -1
- package/dist/cjs/components/ui/alert.cjs +1 -1
- package/dist/cjs/components/ui/alert.cjs.map +1 -1
- package/dist/cjs/components/ui/aspect-ratio.cjs +1 -1
- package/dist/cjs/components/ui/aspect-ratio.cjs.map +1 -1
- package/dist/cjs/components/ui/avatar.cjs +1 -1
- package/dist/cjs/components/ui/avatar.cjs.map +1 -1
- package/dist/cjs/components/ui/badge.cjs +1 -1
- package/dist/cjs/components/ui/badge.cjs.map +1 -1
- package/dist/cjs/components/ui/breadcrumb.cjs +1 -1
- package/dist/cjs/components/ui/breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/ui/button.cjs +1 -1
- package/dist/cjs/components/ui/button.cjs.map +1 -1
- package/dist/cjs/components/ui/calendar.cjs +1 -1
- package/dist/cjs/components/ui/calendar.cjs.map +1 -1
- package/dist/cjs/components/ui/card.cjs +1 -1
- package/dist/cjs/components/ui/card.cjs.map +1 -1
- package/dist/cjs/components/ui/carousel.cjs +1 -1
- package/dist/cjs/components/ui/carousel.cjs.map +1 -1
- package/dist/cjs/components/ui/chart.cjs +3 -3
- package/dist/cjs/components/ui/chart.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox.cjs +1 -1
- package/dist/cjs/components/ui/checkbox.cjs.map +1 -1
- package/dist/cjs/components/ui/collapsible.cjs +1 -1
- package/dist/cjs/components/ui/collapsible.cjs.map +1 -1
- package/dist/cjs/components/ui/command.cjs +1 -1
- package/dist/cjs/components/ui/command.cjs.map +1 -1
- package/dist/cjs/components/ui/context-menu.cjs +1 -1
- package/dist/cjs/components/ui/context-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/dialog.cjs +1 -1
- package/dist/cjs/components/ui/dialog.cjs.map +1 -1
- package/dist/cjs/components/ui/drawer.cjs +1 -1
- package/dist/cjs/components/ui/drawer.cjs.map +1 -1
- package/dist/cjs/components/ui/dropdown-menu.cjs +1 -1
- package/dist/cjs/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/form.cjs +1 -1
- package/dist/cjs/components/ui/form.cjs.map +1 -1
- package/dist/cjs/components/ui/hover-card.cjs +1 -1
- package/dist/cjs/components/ui/hover-card.cjs.map +1 -1
- package/dist/cjs/components/ui/input-otp.cjs +1 -1
- package/dist/cjs/components/ui/input-otp.cjs.map +1 -1
- package/dist/cjs/components/ui/input.cjs +1 -1
- package/dist/cjs/components/ui/input.cjs.map +1 -1
- package/dist/cjs/components/ui/label.cjs +1 -1
- package/dist/cjs/components/ui/label.cjs.map +1 -1
- package/dist/cjs/components/ui/menubar.cjs +1 -1
- package/dist/cjs/components/ui/menubar.cjs.map +1 -1
- package/dist/cjs/components/ui/navigation-menu.cjs +1 -1
- package/dist/cjs/components/ui/navigation-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/pagination.cjs +1 -1
- package/dist/cjs/components/ui/pagination.cjs.map +1 -1
- package/dist/cjs/components/ui/popover.cjs +1 -1
- package/dist/cjs/components/ui/popover.cjs.map +1 -1
- package/dist/cjs/components/ui/progress.cjs +1 -1
- package/dist/cjs/components/ui/progress.cjs.map +1 -1
- package/dist/cjs/components/ui/radio-group.cjs +1 -1
- package/dist/cjs/components/ui/radio-group.cjs.map +1 -1
- package/dist/cjs/components/ui/resizable.cjs +1 -1
- package/dist/cjs/components/ui/resizable.cjs.map +1 -1
- package/dist/cjs/components/ui/scroll-area.cjs +1 -1
- package/dist/cjs/components/ui/scroll-area.cjs.map +1 -1
- package/dist/cjs/components/ui/select.cjs +1 -1
- package/dist/cjs/components/ui/select.cjs.map +1 -1
- package/dist/cjs/components/ui/separator.cjs +1 -1
- package/dist/cjs/components/ui/separator.cjs.map +1 -1
- package/dist/cjs/components/ui/sheet.cjs +1 -1
- package/dist/cjs/components/ui/sheet.cjs.map +1 -1
- package/dist/cjs/components/ui/sidebar.cjs +1 -1
- package/dist/cjs/components/ui/sidebar.cjs.map +1 -1
- package/dist/cjs/components/ui/skeleton.cjs +1 -1
- package/dist/cjs/components/ui/skeleton.cjs.map +1 -1
- package/dist/cjs/components/ui/slider.cjs +1 -1
- package/dist/cjs/components/ui/slider.cjs.map +1 -1
- package/dist/cjs/components/ui/sonner.cjs +1 -1
- package/dist/cjs/components/ui/sonner.cjs.map +1 -1
- package/dist/cjs/components/ui/switch.cjs +1 -1
- package/dist/cjs/components/ui/switch.cjs.map +1 -1
- package/dist/cjs/components/ui/table.cjs +1 -1
- package/dist/cjs/components/ui/table.cjs.map +1 -1
- package/dist/cjs/components/ui/tabs.cjs +1 -1
- package/dist/cjs/components/ui/tabs.cjs.map +1 -1
- package/dist/cjs/components/ui/textarea.cjs +1 -1
- package/dist/cjs/components/ui/textarea.cjs.map +1 -1
- package/dist/cjs/components/ui/toggle-group.cjs +1 -1
- package/dist/cjs/components/ui/toggle-group.cjs.map +1 -1
- package/dist/cjs/components/ui/toggle.cjs +1 -1
- package/dist/cjs/components/ui/toggle.cjs.map +1 -1
- package/dist/cjs/components/ui/tooltip.cjs +1 -1
- package/dist/cjs/components/ui/tooltip.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-accordion/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs +3 -3
- package/dist/cjs/node_modules/@radix-ui/react-alert-dialog/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-aspect-ratio/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-checkbox/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-collapsible/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-context-menu/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
- package/dist/cjs/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-hover-card/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-label/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-menubar/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-navigation-menu/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs +2 -2
- package/dist/cjs/node_modules/@radix-ui/react-progress/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-radio-group/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-scroll-area/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-select/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-separator/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-slider/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-switch/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-tabs/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-toggle/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-toggle-group/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
- package/dist/cjs/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
- package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs +1 -1
- package/dist/cjs/node_modules/react-day-picker/dist/index.esm.cjs.map +1 -1
- package/dist/esm/components/ui/accordion.js +20 -20
- package/dist/esm/components/ui/accordion.js.map +1 -1
- package/dist/esm/components/ui/alert-dialog.js +53 -50
- package/dist/esm/components/ui/alert-dialog.js.map +1 -1
- package/dist/esm/components/ui/alert.js +6 -6
- package/dist/esm/components/ui/alert.js.map +1 -1
- package/dist/esm/components/ui/aspect-ratio.js +4 -4
- package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
- package/dist/esm/components/ui/avatar.js +7 -7
- package/dist/esm/components/ui/avatar.js.map +1 -1
- package/dist/esm/components/ui/badge.js +9 -10
- package/dist/esm/components/ui/badge.js.map +1 -1
- package/dist/esm/components/ui/breadcrumb.js +36 -31
- package/dist/esm/components/ui/breadcrumb.js.map +1 -1
- package/dist/esm/components/ui/button.js +9 -10
- package/dist/esm/components/ui/button.js.map +1 -1
- package/dist/esm/components/ui/calendar.js +4 -4
- package/dist/esm/components/ui/calendar.js.map +1 -1
- package/dist/esm/components/ui/card.js +15 -12
- package/dist/esm/components/ui/card.js.map +1 -1
- package/dist/esm/components/ui/carousel.js +83 -83
- package/dist/esm/components/ui/carousel.js.map +1 -1
- package/dist/esm/components/ui/chart.js +80 -80
- package/dist/esm/components/ui/chart.js.map +1 -1
- package/dist/esm/components/ui/checkbox.js +4 -4
- package/dist/esm/components/ui/checkbox.js.map +1 -1
- package/dist/esm/components/ui/collapsible.js +10 -10
- package/dist/esm/components/ui/collapsible.js.map +1 -1
- package/dist/esm/components/ui/command.js +53 -53
- package/dist/esm/components/ui/command.js.map +1 -1
- package/dist/esm/components/ui/context-menu.js +80 -77
- package/dist/esm/components/ui/context-menu.js.map +1 -1
- package/dist/esm/components/ui/dialog.js +48 -45
- package/dist/esm/components/ui/dialog.js.map +1 -1
- package/dist/esm/components/ui/drawer.js +55 -49
- package/dist/esm/components/ui/drawer.js.map +1 -1
- package/dist/esm/components/ui/dropdown-menu.js +67 -64
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
- package/dist/esm/components/ui/form.js +44 -38
- package/dist/esm/components/ui/form.js.map +1 -1
- package/dist/esm/components/ui/hover-card.js +6 -6
- package/dist/esm/components/ui/hover-card.js.map +1 -1
- package/dist/esm/components/ui/input-otp.js +19 -19
- package/dist/esm/components/ui/input-otp.js.map +1 -1
- package/dist/esm/components/ui/input.js +2 -2
- package/dist/esm/components/ui/input.js.map +1 -1
- package/dist/esm/components/ui/label.js +4 -4
- package/dist/esm/components/ui/label.js.map +1 -1
- package/dist/esm/components/ui/menubar.js +94 -91
- package/dist/esm/components/ui/menubar.js.map +1 -1
- package/dist/esm/components/ui/navigation-menu.js +44 -44
- package/dist/esm/components/ui/navigation-menu.js.map +1 -1
- package/dist/esm/components/ui/pagination.js +39 -39
- package/dist/esm/components/ui/pagination.js.map +1 -1
- package/dist/esm/components/ui/popover.js +9 -9
- package/dist/esm/components/ui/popover.js.map +1 -1
- package/dist/esm/components/ui/progress.js +9 -9
- package/dist/esm/components/ui/progress.js.map +1 -1
- package/dist/esm/components/ui/radio-group.js +8 -8
- package/dist/esm/components/ui/radio-group.js.map +1 -1
- package/dist/esm/components/ui/resizable.js +8 -8
- package/dist/esm/components/ui/resizable.js.map +1 -1
- package/dist/esm/components/ui/scroll-area.js +22 -22
- package/dist/esm/components/ui/scroll-area.js.map +1 -1
- package/dist/esm/components/ui/select.js +81 -78
- package/dist/esm/components/ui/select.js.map +1 -1
- package/dist/esm/components/ui/separator.js +4 -4
- package/dist/esm/components/ui/separator.js.map +1 -1
- package/dist/esm/components/ui/sheet.js +50 -44
- package/dist/esm/components/ui/sheet.js.map +1 -1
- package/dist/esm/components/ui/sidebar.js +178 -179
- package/dist/esm/components/ui/sidebar.js.map +1 -1
- package/dist/esm/components/ui/skeleton.js +8 -5
- package/dist/esm/components/ui/skeleton.js.map +1 -1
- package/dist/esm/components/ui/slider.js +21 -21
- package/dist/esm/components/ui/slider.js.map +1 -1
- package/dist/esm/components/ui/sonner.js +2 -2
- package/dist/esm/components/ui/sonner.js.map +1 -1
- package/dist/esm/components/ui/switch.js +3 -3
- package/dist/esm/components/ui/switch.js.map +1 -1
- package/dist/esm/components/ui/table.js +20 -17
- package/dist/esm/components/ui/table.js.map +1 -1
- package/dist/esm/components/ui/tabs.js +5 -5
- package/dist/esm/components/ui/tabs.js.map +1 -1
- package/dist/esm/components/ui/textarea.js +2 -2
- package/dist/esm/components/ui/textarea.js.map +1 -1
- package/dist/esm/components/ui/toggle-group.js +7 -7
- package/dist/esm/components/ui/toggle-group.js.map +1 -1
- package/dist/esm/components/ui/toggle.js +5 -5
- package/dist/esm/components/ui/toggle.js.map +1 -1
- package/dist/esm/components/ui/tooltip.js +19 -19
- package/dist/esm/components/ui/tooltip.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js +74 -74
- package/dist/esm/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js +69 -69
- package/dist/esm/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/esm/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/esm/node_modules/@radix-ui/react-aspect-ratio/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js +29 -29
- package/dist/esm/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js +62 -62
- package/dist/esm/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js +46 -46
- package/dist/esm/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js +26 -26
- package/dist/esm/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js +21 -21
- package/dist/esm/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js +115 -115
- package/dist/esm/node_modules/@radix-ui/react-context-menu/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/esm/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +38 -38
- package/dist/esm/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +105 -105
- package/dist/esm/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/esm/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js +41 -41
- package/dist/esm/node_modules/@radix-ui/react-hover-card/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js +3 -3
- package/dist/esm/node_modules/@radix-ui/react-label/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js +198 -198
- package/dist/esm/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js +96 -96
- package/dist/esm/node_modules/@radix-ui/react-menubar/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js +236 -236
- package/dist/esm/node_modules/@radix-ui/react-navigation-menu/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js +90 -90
- package/dist/esm/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js +49 -49
- package/dist/esm/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/esm/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js +10 -10
- package/dist/esm/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js +18 -18
- package/dist/esm/node_modules/@radix-ui/react-progress/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js +86 -86
- package/dist/esm/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/esm/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js +170 -170
- package/dist/esm/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js +350 -350
- package/dist/esm/node_modules/@radix-ui/react-select/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/esm/node_modules/@radix-ui/react-separator/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js +114 -114
- package/dist/esm/node_modules/@radix-ui/react-slider/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js +14 -14
- package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js +48 -48
- package/dist/esm/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/esm/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js +6 -6
- package/dist/esm/node_modules/@radix-ui/react-toggle/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/esm/node_modules/@radix-ui/react-toggle-group/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js +97 -97
- package/dist/esm/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -1
- package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/esm/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -1
- package/dist/esm/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/esm/node_modules/react-day-picker/dist/index.esm.js.map +1 -1
- package/dist/types/components/ui/accordion.d.ts.map +1 -1
- package/dist/types/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/types/components/ui/alert.d.ts.map +1 -1
- package/dist/types/components/ui/avatar.d.ts.map +1 -1
- package/dist/types/components/ui/badge.d.ts.map +1 -1
- package/dist/types/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/types/components/ui/button.d.ts.map +1 -1
- package/dist/types/components/ui/calendar.d.ts.map +1 -1
- package/dist/types/components/ui/card.d.ts +1 -1
- package/dist/types/components/ui/card.d.ts.map +1 -1
- package/dist/types/components/ui/carousel.d.ts +1 -1
- package/dist/types/components/ui/carousel.d.ts.map +1 -1
- package/dist/types/components/ui/chart.d.ts.map +1 -1
- package/dist/types/components/ui/checkbox.d.ts.map +1 -1
- package/dist/types/components/ui/command.d.ts +1 -1
- package/dist/types/components/ui/command.d.ts.map +1 -1
- package/dist/types/components/ui/context-menu.d.ts.map +1 -1
- package/dist/types/components/ui/dialog.d.ts.map +1 -1
- package/dist/types/components/ui/drawer.d.ts.map +1 -1
- package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/types/components/ui/form.d.ts.map +1 -1
- package/dist/types/components/ui/hover-card.d.ts.map +1 -1
- package/dist/types/components/ui/input-otp.d.ts.map +1 -1
- package/dist/types/components/ui/input.d.ts.map +1 -1
- package/dist/types/components/ui/label.d.ts.map +1 -1
- package/dist/types/components/ui/menubar.d.ts.map +1 -1
- package/dist/types/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/types/components/ui/pagination.d.ts +1 -1
- package/dist/types/components/ui/pagination.d.ts.map +1 -1
- package/dist/types/components/ui/popover.d.ts.map +1 -1
- package/dist/types/components/ui/progress.d.ts.map +1 -1
- package/dist/types/components/ui/radio-group.d.ts.map +1 -1
- package/dist/types/components/ui/resizable.d.ts.map +1 -1
- package/dist/types/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/types/components/ui/select.d.ts.map +1 -1
- package/dist/types/components/ui/separator.d.ts.map +1 -1
- package/dist/types/components/ui/sheet.d.ts.map +1 -1
- package/dist/types/components/ui/sidebar.d.ts +5 -5
- package/dist/types/components/ui/sidebar.d.ts.map +1 -1
- package/dist/types/components/ui/skeleton.d.ts.map +1 -1
- package/dist/types/components/ui/slider.d.ts.map +1 -1
- package/dist/types/components/ui/switch.d.ts.map +1 -1
- package/dist/types/components/ui/table.d.ts.map +1 -1
- package/dist/types/components/ui/tabs.d.ts.map +1 -1
- package/dist/types/components/ui/textarea.d.ts.map +1 -1
- package/dist/types/components/ui/toggle-group.d.ts +1 -1
- package/dist/types/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/types/components/ui/toggle.d.ts.map +1 -1
- package/dist/types/components/ui/tooltip.d.ts.map +1 -1
- package/package.json +163 -399
- package/src/components/ui/accordion.tsx +10 -11
- package/src/components/ui/alert-dialog.tsx +21 -18
- package/src/components/ui/alert.tsx +10 -10
- package/src/components/ui/avatar.tsx +8 -9
- package/src/components/ui/badge.tsx +8 -9
- package/src/components/ui/breadcrumb.tsx +22 -17
- package/src/components/ui/button.tsx +11 -11
- package/src/components/ui/calendar.tsx +10 -10
- package/src/components/ui/card.tsx +20 -11
- package/src/components/ui/carousel.tsx +62 -63
- package/src/components/ui/chart.tsx +1 -2
- package/src/components/ui/checkbox.tsx +7 -8
- package/src/components/ui/command.tsx +18 -19
- package/src/components/ui/context-menu.tsx +29 -27
- package/src/components/ui/dialog.tsx +20 -18
- package/src/components/ui/drawer.tsx +23 -18
- package/src/components/ui/dropdown-menu.tsx +29 -27
- package/src/components/ui/form.tsx +49 -43
- package/src/components/ui/hover-card.tsx +8 -9
- package/src/components/ui/input-otp.tsx +1 -2
- package/src/components/ui/input.tsx +1 -2
- package/src/components/ui/label.tsx +6 -7
- package/src/components/ui/menubar.tsx +30 -28
- package/src/components/ui/navigation-menu.tsx +19 -19
- package/src/components/ui/pagination.tsx +14 -15
- package/src/components/ui/popover.tsx +9 -10
- package/src/components/ui/progress.tsx +6 -7
- package/src/components/ui/radio-group.tsx +8 -9
- package/src/components/ui/resizable.tsx +10 -11
- package/src/components/ui/scroll-area.tsx +7 -8
- package/src/components/ui/select.tsx +20 -18
- package/src/components/ui/separator.tsx +6 -7
- package/src/components/ui/sheet.tsx +25 -20
- package/src/components/ui/sidebar.tsx +119 -117
- package/src/components/ui/skeleton.tsx +7 -4
- package/src/components/ui/slider.tsx +9 -10
- package/src/components/ui/switch.tsx +6 -7
- package/src/components/ui/table.tsx +16 -14
- package/src/components/ui/tabs.tsx +9 -10
- package/src/components/ui/textarea.tsx +4 -4
- package/src/components/ui/toggle-group.tsx +11 -12
- package/src/components/ui/toggle.tsx +8 -9
- package/src/components/ui/tooltip.tsx +9 -10
- package/tsconfig.json +47 -0
- package/dist/cjs/_virtual/jsx-runtime.cjs +0 -2
- package/dist/cjs/_virtual/jsx-runtime.cjs.map +0 -1
- package/dist/cjs/_virtual/jsx-runtime2.cjs +0 -2
- package/dist/cjs/_virtual/jsx-runtime2.cjs.map +0 -1
- package/dist/cjs/_virtual/react-jsx-runtime.development.cjs +0 -2
- package/dist/cjs/_virtual/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/cjs/_virtual/react-jsx-runtime.production.cjs +0 -2
- package/dist/cjs/_virtual/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
- package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
- package/dist/cjs/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/cjs/node_modules/react/jsx-runtime.cjs +0 -2
- package/dist/cjs/node_modules/react/jsx-runtime.cjs.map +0 -1
- package/dist/esm/_virtual/jsx-runtime.js +0 -7
- package/dist/esm/_virtual/jsx-runtime.js.map +0 -1
- package/dist/esm/_virtual/jsx-runtime2.js +0 -6
- package/dist/esm/_virtual/jsx-runtime2.js.map +0 -1
- package/dist/esm/_virtual/react-jsx-runtime.development.js +0 -6
- package/dist/esm/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/esm/_virtual/react-jsx-runtime.production.js +0 -6
- package/dist/esm/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -410
- package/dist/esm/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js +0 -37
- package/dist/esm/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
- package/dist/esm/node_modules/react/jsx-runtime.js +0 -12
- package/dist/esm/node_modules/react/jsx-runtime.js.map +0 -1
- package/src/global.d.ts +0 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { composeEventHandlers as v } from "../../primitive/dist/index.js";
|
|
4
4
|
import { createCollection as ze } from "../../react-collection/dist/index.js";
|
|
5
|
-
import { useComposedRefs as
|
|
5
|
+
import { useComposedRefs as k, composeRefs as Ze } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { createContextScope as $e } from "../../react-context/dist/index.js";
|
|
7
7
|
import { useDirection as qe } from "../../react-direction/dist/index.js";
|
|
8
8
|
import { DismissableLayer as Je } from "../../react-dismissable-layer/dist/index.js";
|
|
@@ -11,46 +11,46 @@ import { FocusScope as et } from "../../react-focus-scope/dist/index.js";
|
|
|
11
11
|
import { useId as de } from "../../react-id/dist/index.js";
|
|
12
12
|
import { createPopperScope as pe, Root as me, Anchor as tt, Content as nt, Arrow as ot } from "../../react-popper/dist/index.js";
|
|
13
13
|
import { Portal as rt } from "../../react-portal/dist/index.js";
|
|
14
|
-
import { Presence as
|
|
15
|
-
import { Primitive as
|
|
16
|
-
import { createRovingFocusGroupScope as he, Item as
|
|
14
|
+
import { Presence as X } from "../../react-presence/dist/index.js";
|
|
15
|
+
import { Primitive as N, dispatchDiscreteCustomEvent as ct } from "../../react-primitive/dist/index.js";
|
|
16
|
+
import { createRovingFocusGroupScope as he, Item as at, Root as st } from "../../react-roving-focus/dist/index.js";
|
|
17
17
|
import { Slot as ut } from "../../react-slot/dist/index.js";
|
|
18
18
|
import { useCallbackRef as q } from "../../react-use-callback-ref/dist/index.js";
|
|
19
19
|
import { hideOthers as it } from "../../../aria-hidden/dist/es2015/index.js";
|
|
20
20
|
import lt from "../../../react-remove-scroll/dist/es2015/Combination.js";
|
|
21
|
-
import {
|
|
21
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
22
22
|
var $ = ["Enter", " "], dt = ["ArrowDown", "PageUp", "Home"], Me = ["ArrowUp", "PageDown", "End"], ft = [...dt, ...Me], pt = {
|
|
23
23
|
ltr: [...$, "ArrowRight"],
|
|
24
24
|
rtl: [...$, "ArrowLeft"]
|
|
25
25
|
}, mt = {
|
|
26
26
|
ltr: ["ArrowLeft"],
|
|
27
27
|
rtl: ["ArrowRight"]
|
|
28
|
-
},
|
|
28
|
+
}, F = "Menu", [O, ht, Mt] = ze(F), [P, nn] = $e(F, [
|
|
29
29
|
Mt,
|
|
30
30
|
pe,
|
|
31
31
|
he
|
|
32
|
-
]),
|
|
33
|
-
const { __scopeMenu: n, open: t = !1, children: c, dir: u, onOpenChange: r, modal: l = !0 } = e, f =
|
|
32
|
+
]), L = pe(), ve = he(), [Ce, R] = P(F), [vt, K] = P(F), ge = (e) => {
|
|
33
|
+
const { __scopeMenu: n, open: t = !1, children: c, dir: u, onOpenChange: r, modal: l = !0 } = e, f = L(n), [p, m] = o.useState(null), d = o.useRef(!1), a = q(r), h = qe(u);
|
|
34
34
|
return o.useEffect(() => {
|
|
35
|
-
const
|
|
35
|
+
const _ = () => {
|
|
36
36
|
d.current = !0, document.addEventListener("pointerdown", M, { capture: !0, once: !0 }), document.addEventListener("pointermove", M, { capture: !0, once: !0 });
|
|
37
37
|
}, M = () => d.current = !1;
|
|
38
|
-
return document.addEventListener("keydown",
|
|
39
|
-
document.removeEventListener("keydown",
|
|
38
|
+
return document.addEventListener("keydown", _, { capture: !0 }), () => {
|
|
39
|
+
document.removeEventListener("keydown", _, { capture: !0 }), document.removeEventListener("pointerdown", M, { capture: !0 }), document.removeEventListener("pointermove", M, { capture: !0 });
|
|
40
40
|
};
|
|
41
|
-
}, []), /* @__PURE__ */
|
|
41
|
+
}, []), /* @__PURE__ */ s(me, { ...f, children: /* @__PURE__ */ s(
|
|
42
42
|
Ce,
|
|
43
43
|
{
|
|
44
44
|
scope: n,
|
|
45
45
|
open: t,
|
|
46
|
-
onOpenChange:
|
|
46
|
+
onOpenChange: a,
|
|
47
47
|
content: p,
|
|
48
48
|
onContentChange: m,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ s(
|
|
50
50
|
vt,
|
|
51
51
|
{
|
|
52
52
|
scope: n,
|
|
53
|
-
onClose: o.useCallback(() =>
|
|
53
|
+
onClose: o.useCallback(() => a(!1), [a]),
|
|
54
54
|
isUsingKeyboardRef: d,
|
|
55
55
|
dir: h,
|
|
56
56
|
modal: l,
|
|
@@ -60,33 +60,33 @@ var $ = ["Enter", " "], dt = ["ArrowDown", "PageUp", "Home"], Me = ["ArrowUp", "
|
|
|
60
60
|
}
|
|
61
61
|
) });
|
|
62
62
|
};
|
|
63
|
-
ge.displayName =
|
|
63
|
+
ge.displayName = F;
|
|
64
64
|
var Ct = "MenuAnchor", J = o.forwardRef(
|
|
65
65
|
(e, n) => {
|
|
66
|
-
const { __scopeMenu: t, ...c } = e, u =
|
|
67
|
-
return /* @__PURE__ */
|
|
66
|
+
const { __scopeMenu: t, ...c } = e, u = L(t);
|
|
67
|
+
return /* @__PURE__ */ s(tt, { ...u, ...c, ref: n });
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
J.displayName = Ct;
|
|
71
|
-
var Q = "MenuPortal", [gt,
|
|
71
|
+
var Q = "MenuPortal", [gt, _e] = P(Q, {
|
|
72
72
|
forceMount: void 0
|
|
73
|
-
}),
|
|
74
|
-
const { __scopeMenu: n, forceMount: t, children: c, container: u } = e, r =
|
|
75
|
-
return /* @__PURE__ */
|
|
73
|
+
}), Re = (e) => {
|
|
74
|
+
const { __scopeMenu: n, forceMount: t, children: c, container: u } = e, r = R(Q, n);
|
|
75
|
+
return /* @__PURE__ */ s(gt, { scope: n, forceMount: t, children: /* @__PURE__ */ s(X, { present: t || r.open, children: /* @__PURE__ */ s(rt, { asChild: !0, container: u, children: c }) }) });
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
var g = "MenuContent", [
|
|
77
|
+
Re.displayName = Q;
|
|
78
|
+
var g = "MenuContent", [_t, ee] = P(g), Se = o.forwardRef(
|
|
79
79
|
(e, n) => {
|
|
80
|
-
const t =
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
const t = _e(g, e.__scopeMenu), { forceMount: c = t.forceMount, ...u } = e, r = R(g, e.__scopeMenu), l = K(g, e.__scopeMenu);
|
|
81
|
+
return /* @__PURE__ */ s(O.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(X, { present: c || r.open, children: /* @__PURE__ */ s(O.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ s(Rt, { ...u, ref: n }) : /* @__PURE__ */ s(St, { ...u, ref: n }) }) }) });
|
|
82
82
|
}
|
|
83
|
-
),
|
|
83
|
+
), Rt = o.forwardRef(
|
|
84
84
|
(e, n) => {
|
|
85
|
-
const t =
|
|
85
|
+
const t = R(g, e.__scopeMenu), c = o.useRef(null), u = k(n, c);
|
|
86
86
|
return o.useEffect(() => {
|
|
87
87
|
const r = c.current;
|
|
88
88
|
if (r) return it(r);
|
|
89
|
-
}, []), /* @__PURE__ */
|
|
89
|
+
}, []), /* @__PURE__ */ s(
|
|
90
90
|
te,
|
|
91
91
|
{
|
|
92
92
|
...e,
|
|
@@ -103,9 +103,9 @@ var g = "MenuContent", [xt, ee] = S(g), Re = o.forwardRef(
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
|
-
),
|
|
107
|
-
const t =
|
|
108
|
-
return /* @__PURE__ */
|
|
106
|
+
), St = o.forwardRef((e, n) => {
|
|
107
|
+
const t = R(g, e.__scopeMenu);
|
|
108
|
+
return /* @__PURE__ */ s(
|
|
109
109
|
te,
|
|
110
110
|
{
|
|
111
111
|
...e,
|
|
@@ -128,108 +128,108 @@ var g = "MenuContent", [xt, ee] = S(g), Re = o.forwardRef(
|
|
|
128
128
|
onEntryFocus: p,
|
|
129
129
|
onEscapeKeyDown: m,
|
|
130
130
|
onPointerDownOutside: d,
|
|
131
|
-
onFocusOutside:
|
|
131
|
+
onFocusOutside: a,
|
|
132
132
|
onInteractOutside: h,
|
|
133
|
-
onDismiss:
|
|
133
|
+
onDismiss: _,
|
|
134
134
|
disableOutsideScroll: M,
|
|
135
|
-
...
|
|
136
|
-
} = e,
|
|
137
|
-
const
|
|
135
|
+
...E
|
|
136
|
+
} = e, x = R(g, t), w = K(g, t), Ue = L(t), Be = ve(t), ae = ht(t), [Ve, se] = o.useState(null), G = o.useRef(null), Ye = k(n, G, x.onContentChange), U = o.useRef(0), B = o.useRef(""), Xe = o.useRef(0), j = o.useRef(null), ue = o.useRef("right"), W = o.useRef(0), He = M ? lt : o.Fragment, je = M ? { as: ut, allowPinchZoom: !0 } : void 0, We = (i) => {
|
|
137
|
+
const y = B.current + i, S = ae().filter((C) => !C.disabled), b = document.activeElement, z = S.find((C) => C.ref.current === b)?.textValue, Z = S.map((C) => C.textValue), ie = kt(Z, y, z), T = S.find((C) => C.textValue === ie)?.ref.current;
|
|
138
138
|
(function C(le) {
|
|
139
|
-
|
|
140
|
-
})(
|
|
139
|
+
B.current = le, window.clearTimeout(U.current), le !== "" && (U.current = window.setTimeout(() => C(""), 1e3));
|
|
140
|
+
})(y), T && setTimeout(() => T.focus());
|
|
141
141
|
};
|
|
142
|
-
o.useEffect(() => () => window.clearTimeout(
|
|
143
|
-
const
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
-
|
|
142
|
+
o.useEffect(() => () => window.clearTimeout(U.current), []), Qe();
|
|
143
|
+
const I = o.useCallback((i) => ue.current === j.current?.side && Ft(i, j.current?.area), []);
|
|
144
|
+
return /* @__PURE__ */ s(
|
|
145
|
+
_t,
|
|
146
146
|
{
|
|
147
147
|
scope: t,
|
|
148
|
-
searchRef:
|
|
148
|
+
searchRef: B,
|
|
149
149
|
onItemEnter: o.useCallback(
|
|
150
150
|
(i) => {
|
|
151
|
-
|
|
151
|
+
I(i) && i.preventDefault();
|
|
152
152
|
},
|
|
153
|
-
[
|
|
153
|
+
[I]
|
|
154
154
|
),
|
|
155
155
|
onItemLeave: o.useCallback(
|
|
156
156
|
(i) => {
|
|
157
|
-
|
|
157
|
+
I(i) || (G.current?.focus(), se(null));
|
|
158
158
|
},
|
|
159
|
-
[
|
|
159
|
+
[I]
|
|
160
160
|
),
|
|
161
161
|
onTriggerLeave: o.useCallback(
|
|
162
162
|
(i) => {
|
|
163
|
-
|
|
163
|
+
I(i) && i.preventDefault();
|
|
164
164
|
},
|
|
165
|
-
[
|
|
165
|
+
[I]
|
|
166
166
|
),
|
|
167
|
-
pointerGraceTimerRef:
|
|
167
|
+
pointerGraceTimerRef: Xe,
|
|
168
168
|
onPointerGraceIntentChange: o.useCallback((i) => {
|
|
169
|
-
|
|
169
|
+
j.current = i;
|
|
170
170
|
}, []),
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ s(He, { ...je, children: /* @__PURE__ */ s(
|
|
172
172
|
et,
|
|
173
173
|
{
|
|
174
174
|
asChild: !0,
|
|
175
175
|
trapped: u,
|
|
176
176
|
onMountAutoFocus: v(r, (i) => {
|
|
177
|
-
i.preventDefault(),
|
|
177
|
+
i.preventDefault(), G.current?.focus({ preventScroll: !0 });
|
|
178
178
|
}),
|
|
179
179
|
onUnmountAutoFocus: l,
|
|
180
|
-
children: /* @__PURE__ */
|
|
180
|
+
children: /* @__PURE__ */ s(
|
|
181
181
|
Je,
|
|
182
182
|
{
|
|
183
183
|
asChild: !0,
|
|
184
184
|
disableOutsidePointerEvents: f,
|
|
185
185
|
onEscapeKeyDown: m,
|
|
186
186
|
onPointerDownOutside: d,
|
|
187
|
-
onFocusOutside:
|
|
187
|
+
onFocusOutside: a,
|
|
188
188
|
onInteractOutside: h,
|
|
189
|
-
onDismiss:
|
|
190
|
-
children: /* @__PURE__ */
|
|
191
|
-
|
|
189
|
+
onDismiss: _,
|
|
190
|
+
children: /* @__PURE__ */ s(
|
|
191
|
+
st,
|
|
192
192
|
{
|
|
193
193
|
asChild: !0,
|
|
194
|
-
...
|
|
195
|
-
dir:
|
|
194
|
+
...Be,
|
|
195
|
+
dir: w.dir,
|
|
196
196
|
orientation: "vertical",
|
|
197
197
|
loop: c,
|
|
198
|
-
currentTabStopId:
|
|
199
|
-
onCurrentTabStopIdChange:
|
|
198
|
+
currentTabStopId: Ve,
|
|
199
|
+
onCurrentTabStopIdChange: se,
|
|
200
200
|
onEntryFocus: v(p, (i) => {
|
|
201
|
-
|
|
201
|
+
w.isUsingKeyboardRef.current || i.preventDefault();
|
|
202
202
|
}),
|
|
203
203
|
preventScrollOnEntryFocus: !0,
|
|
204
|
-
children: /* @__PURE__ */
|
|
204
|
+
children: /* @__PURE__ */ s(
|
|
205
205
|
nt,
|
|
206
206
|
{
|
|
207
207
|
role: "menu",
|
|
208
208
|
"aria-orientation": "vertical",
|
|
209
|
-
"data-state":
|
|
209
|
+
"data-state": Ge(x.open),
|
|
210
210
|
"data-radix-menu-content": "",
|
|
211
|
-
dir:
|
|
212
|
-
...
|
|
213
|
-
...
|
|
214
|
-
ref:
|
|
215
|
-
style: { outline: "none", ...
|
|
216
|
-
onKeyDown: v(
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
const Z =
|
|
211
|
+
dir: w.dir,
|
|
212
|
+
...Ue,
|
|
213
|
+
...E,
|
|
214
|
+
ref: Ye,
|
|
215
|
+
style: { outline: "none", ...E.style },
|
|
216
|
+
onKeyDown: v(E.onKeyDown, (i) => {
|
|
217
|
+
const S = i.target.closest("[data-radix-menu-content]") === i.currentTarget, b = i.ctrlKey || i.altKey || i.metaKey, z = i.key.length === 1;
|
|
218
|
+
S && (i.key === "Tab" && i.preventDefault(), !b && z && We(i.key));
|
|
219
|
+
const Z = G.current;
|
|
220
220
|
if (i.target !== Z || !ft.includes(i.key)) return;
|
|
221
221
|
i.preventDefault();
|
|
222
|
-
const T =
|
|
222
|
+
const T = ae().filter((C) => !C.disabled).map((C) => C.ref.current);
|
|
223
223
|
Me.includes(i.key) && T.reverse(), Ot(T);
|
|
224
224
|
}),
|
|
225
225
|
onBlur: v(e.onBlur, (i) => {
|
|
226
|
-
i.currentTarget.contains(i.target) || (window.clearTimeout(
|
|
226
|
+
i.currentTarget.contains(i.target) || (window.clearTimeout(U.current), B.current = "");
|
|
227
227
|
}),
|
|
228
228
|
onPointerMove: v(
|
|
229
229
|
e.onPointerMove,
|
|
230
|
-
|
|
231
|
-
const
|
|
232
|
-
if (i.currentTarget.contains(
|
|
230
|
+
D((i) => {
|
|
231
|
+
const y = i.target, S = W.current !== i.clientX;
|
|
232
|
+
if (i.currentTarget.contains(y) && S) {
|
|
233
233
|
const b = i.clientX > W.current ? "right" : "left";
|
|
234
234
|
ue.current = b, W.current = i.clientX;
|
|
235
235
|
}
|
|
@@ -247,66 +247,66 @@ var g = "MenuContent", [xt, ee] = S(g), Re = o.forwardRef(
|
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
-
|
|
251
|
-
var
|
|
250
|
+
Se.displayName = g;
|
|
251
|
+
var Pt = "MenuGroup", ne = o.forwardRef(
|
|
252
252
|
(e, n) => {
|
|
253
253
|
const { __scopeMenu: t, ...c } = e;
|
|
254
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ s(N.div, { role: "group", ...c, ref: n });
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
|
-
ne.displayName =
|
|
258
|
-
var
|
|
257
|
+
ne.displayName = Pt;
|
|
258
|
+
var Et = "MenuLabel", Pe = o.forwardRef(
|
|
259
259
|
(e, n) => {
|
|
260
260
|
const { __scopeMenu: t, ...c } = e;
|
|
261
|
-
return /* @__PURE__ */
|
|
261
|
+
return /* @__PURE__ */ s(N.div, { ...c, ref: n });
|
|
262
262
|
}
|
|
263
263
|
);
|
|
264
|
-
|
|
265
|
-
var
|
|
264
|
+
Pe.displayName = Et;
|
|
265
|
+
var V = "MenuItem", fe = "menu.itemSelect", H = o.forwardRef(
|
|
266
266
|
(e, n) => {
|
|
267
|
-
const { disabled: t = !1, onSelect: c, ...u } = e, r = o.useRef(null), l =
|
|
268
|
-
const
|
|
269
|
-
if (!t &&
|
|
267
|
+
const { disabled: t = !1, onSelect: c, ...u } = e, r = o.useRef(null), l = K(V, e.__scopeMenu), f = ee(V, e.__scopeMenu), p = k(n, r), m = o.useRef(!1), d = () => {
|
|
268
|
+
const a = r.current;
|
|
269
|
+
if (!t && a) {
|
|
270
270
|
const h = new CustomEvent(fe, { bubbles: !0, cancelable: !0 });
|
|
271
|
-
|
|
271
|
+
a.addEventListener(fe, (_) => c?.(_), { once: !0 }), ct(a, h), h.defaultPrevented ? m.current = !1 : l.onClose();
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
-
|
|
274
|
+
return /* @__PURE__ */ s(
|
|
275
|
+
Ee,
|
|
276
276
|
{
|
|
277
277
|
...u,
|
|
278
278
|
ref: p,
|
|
279
279
|
disabled: t,
|
|
280
280
|
onClick: v(e.onClick, d),
|
|
281
|
-
onPointerDown: (
|
|
282
|
-
e.onPointerDown?.(
|
|
281
|
+
onPointerDown: (a) => {
|
|
282
|
+
e.onPointerDown?.(a), m.current = !0;
|
|
283
283
|
},
|
|
284
|
-
onPointerUp: v(e.onPointerUp, (
|
|
285
|
-
m.current ||
|
|
284
|
+
onPointerUp: v(e.onPointerUp, (a) => {
|
|
285
|
+
m.current || a.currentTarget?.click();
|
|
286
286
|
}),
|
|
287
|
-
onKeyDown: v(e.onKeyDown, (
|
|
287
|
+
onKeyDown: v(e.onKeyDown, (a) => {
|
|
288
288
|
const h = f.searchRef.current !== "";
|
|
289
|
-
t || h &&
|
|
289
|
+
t || h && a.key === " " || $.includes(a.key) && (a.currentTarget.click(), a.preventDefault());
|
|
290
290
|
})
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
294
|
);
|
|
295
|
-
|
|
296
|
-
var
|
|
295
|
+
H.displayName = V;
|
|
296
|
+
var Ee = o.forwardRef(
|
|
297
297
|
(e, n) => {
|
|
298
|
-
const { __scopeMenu: t, disabled: c = !1, textValue: u, ...r } = e, l = ee(
|
|
298
|
+
const { __scopeMenu: t, disabled: c = !1, textValue: u, ...r } = e, l = ee(V, t), f = ve(t), p = o.useRef(null), m = k(n, p), [d, a] = o.useState(!1), [h, _] = o.useState("");
|
|
299
299
|
return o.useEffect(() => {
|
|
300
300
|
const M = p.current;
|
|
301
|
-
M &&
|
|
302
|
-
}, [r.children]), /* @__PURE__ */
|
|
301
|
+
M && _((M.textContent ?? "").trim());
|
|
302
|
+
}, [r.children]), /* @__PURE__ */ s(
|
|
303
303
|
O.ItemSlot,
|
|
304
304
|
{
|
|
305
305
|
scope: t,
|
|
306
306
|
disabled: c,
|
|
307
307
|
textValue: u ?? h,
|
|
308
|
-
children: /* @__PURE__ */
|
|
309
|
-
|
|
308
|
+
children: /* @__PURE__ */ s(at, { asChild: !0, ...f, focusable: !c, children: /* @__PURE__ */ s(
|
|
309
|
+
N.div,
|
|
310
310
|
{
|
|
311
311
|
role: "menuitem",
|
|
312
312
|
"data-highlighted": d ? "" : void 0,
|
|
@@ -316,58 +316,58 @@ var Pe = o.forwardRef(
|
|
|
316
316
|
ref: m,
|
|
317
317
|
onPointerMove: v(
|
|
318
318
|
e.onPointerMove,
|
|
319
|
-
|
|
319
|
+
D((M) => {
|
|
320
320
|
c ? l.onItemLeave(M) : (l.onItemEnter(M), M.defaultPrevented || M.currentTarget.focus({ preventScroll: !0 }));
|
|
321
321
|
})
|
|
322
322
|
),
|
|
323
323
|
onPointerLeave: v(
|
|
324
324
|
e.onPointerLeave,
|
|
325
|
-
|
|
325
|
+
D((M) => l.onItemLeave(M))
|
|
326
326
|
),
|
|
327
|
-
onFocus: v(e.onFocus, () =>
|
|
328
|
-
onBlur: v(e.onBlur, () =>
|
|
327
|
+
onFocus: v(e.onFocus, () => a(!0)),
|
|
328
|
+
onBlur: v(e.onBlur, () => a(!1))
|
|
329
329
|
}
|
|
330
330
|
) })
|
|
331
331
|
}
|
|
332
332
|
);
|
|
333
333
|
}
|
|
334
|
-
),
|
|
334
|
+
), wt = "MenuCheckboxItem", we = o.forwardRef(
|
|
335
335
|
(e, n) => {
|
|
336
336
|
const { checked: t = !1, onCheckedChange: c, ...u } = e;
|
|
337
|
-
return /* @__PURE__ */
|
|
338
|
-
|
|
337
|
+
return /* @__PURE__ */ s(Te, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ s(
|
|
338
|
+
H,
|
|
339
339
|
{
|
|
340
340
|
role: "menuitemcheckbox",
|
|
341
|
-
"aria-checked":
|
|
341
|
+
"aria-checked": Y(t) ? "mixed" : t,
|
|
342
342
|
...u,
|
|
343
343
|
ref: n,
|
|
344
344
|
"data-state": ce(t),
|
|
345
345
|
onSelect: v(
|
|
346
346
|
u.onSelect,
|
|
347
|
-
() => c?.(
|
|
347
|
+
() => c?.(Y(t) ? !0 : !t),
|
|
348
348
|
{ checkForDefaultPrevented: !1 }
|
|
349
349
|
)
|
|
350
350
|
}
|
|
351
351
|
) });
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
|
-
|
|
355
|
-
var
|
|
356
|
-
|
|
354
|
+
we.displayName = wt;
|
|
355
|
+
var Ie = "MenuRadioGroup", [It, yt] = P(
|
|
356
|
+
Ie,
|
|
357
357
|
{ value: void 0, onValueChange: () => {
|
|
358
358
|
} }
|
|
359
|
-
),
|
|
359
|
+
), ye = o.forwardRef(
|
|
360
360
|
(e, n) => {
|
|
361
361
|
const { value: t, onValueChange: c, ...u } = e, r = q(c);
|
|
362
|
-
return /* @__PURE__ */
|
|
362
|
+
return /* @__PURE__ */ s(It, { scope: e.__scopeMenu, value: t, onValueChange: r, children: /* @__PURE__ */ s(ne, { ...u, ref: n }) });
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
|
-
|
|
366
|
-
var
|
|
365
|
+
ye.displayName = Ie;
|
|
366
|
+
var xe = "MenuRadioItem", be = o.forwardRef(
|
|
367
367
|
(e, n) => {
|
|
368
|
-
const { value: t, ...c } = e, u =
|
|
369
|
-
return /* @__PURE__ */
|
|
370
|
-
|
|
368
|
+
const { value: t, ...c } = e, u = yt(xe, e.__scopeMenu), r = t === u.value;
|
|
369
|
+
return /* @__PURE__ */ s(Te, { scope: e.__scopeMenu, checked: r, children: /* @__PURE__ */ s(
|
|
370
|
+
H,
|
|
371
371
|
{
|
|
372
372
|
role: "menuitemradio",
|
|
373
373
|
"aria-checked": r,
|
|
@@ -383,19 +383,19 @@ var ye = "MenuRadioItem", be = o.forwardRef(
|
|
|
383
383
|
) });
|
|
384
384
|
}
|
|
385
385
|
);
|
|
386
|
-
be.displayName =
|
|
387
|
-
var oe = "MenuItemIndicator", [Te,
|
|
386
|
+
be.displayName = xe;
|
|
387
|
+
var oe = "MenuItemIndicator", [Te, xt] = P(
|
|
388
388
|
oe,
|
|
389
389
|
{ checked: !1 }
|
|
390
390
|
), Ae = o.forwardRef(
|
|
391
391
|
(e, n) => {
|
|
392
|
-
const { __scopeMenu: t, forceMount: c, ...u } = e, r =
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
|
|
392
|
+
const { __scopeMenu: t, forceMount: c, ...u } = e, r = xt(oe, t);
|
|
393
|
+
return /* @__PURE__ */ s(
|
|
394
|
+
X,
|
|
395
395
|
{
|
|
396
|
-
present: c ||
|
|
397
|
-
children: /* @__PURE__ */
|
|
398
|
-
|
|
396
|
+
present: c || Y(r.checked) || r.checked === !0,
|
|
397
|
+
children: /* @__PURE__ */ s(
|
|
398
|
+
N.span,
|
|
399
399
|
{
|
|
400
400
|
...u,
|
|
401
401
|
ref: n,
|
|
@@ -410,8 +410,8 @@ Ae.displayName = oe;
|
|
|
410
410
|
var bt = "MenuSeparator", Oe = o.forwardRef(
|
|
411
411
|
(e, n) => {
|
|
412
412
|
const { __scopeMenu: t, ...c } = e;
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
-
|
|
413
|
+
return /* @__PURE__ */ s(
|
|
414
|
+
N.div,
|
|
415
415
|
{
|
|
416
416
|
role: "separator",
|
|
417
417
|
"aria-orientation": "horizontal",
|
|
@@ -422,24 +422,24 @@ var bt = "MenuSeparator", Oe = o.forwardRef(
|
|
|
422
422
|
}
|
|
423
423
|
);
|
|
424
424
|
Oe.displayName = bt;
|
|
425
|
-
var Tt = "MenuArrow",
|
|
425
|
+
var Tt = "MenuArrow", De = o.forwardRef(
|
|
426
426
|
(e, n) => {
|
|
427
|
-
const { __scopeMenu: t, ...c } = e, u =
|
|
428
|
-
return /* @__PURE__ */
|
|
427
|
+
const { __scopeMenu: t, ...c } = e, u = L(t);
|
|
428
|
+
return /* @__PURE__ */ s(ot, { ...u, ...c, ref: n });
|
|
429
429
|
}
|
|
430
430
|
);
|
|
431
|
-
|
|
432
|
-
var re = "MenuSub", [At,
|
|
433
|
-
const { __scopeMenu: n, children: t, open: c = !1, onOpenChange: u } = e, r =
|
|
434
|
-
return o.useEffect(() => (r.open === !1 &&
|
|
431
|
+
De.displayName = Tt;
|
|
432
|
+
var re = "MenuSub", [At, ke] = P(re), Ne = (e) => {
|
|
433
|
+
const { __scopeMenu: n, children: t, open: c = !1, onOpenChange: u } = e, r = R(re, n), l = L(n), [f, p] = o.useState(null), [m, d] = o.useState(null), a = q(u);
|
|
434
|
+
return o.useEffect(() => (r.open === !1 && a(!1), () => a(!1)), [r.open, a]), /* @__PURE__ */ s(me, { ...l, children: /* @__PURE__ */ s(
|
|
435
435
|
Ce,
|
|
436
436
|
{
|
|
437
437
|
scope: n,
|
|
438
438
|
open: c,
|
|
439
|
-
onOpenChange:
|
|
439
|
+
onOpenChange: a,
|
|
440
440
|
content: m,
|
|
441
441
|
onContentChange: d,
|
|
442
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ s(
|
|
443
443
|
At,
|
|
444
444
|
{
|
|
445
445
|
scope: n,
|
|
@@ -453,79 +453,79 @@ var re = "MenuSub", [At, De] = S(re), ke = (e) => {
|
|
|
453
453
|
}
|
|
454
454
|
) });
|
|
455
455
|
};
|
|
456
|
-
|
|
457
|
-
var A = "MenuSubTrigger",
|
|
456
|
+
Ne.displayName = re;
|
|
457
|
+
var A = "MenuSubTrigger", Fe = o.forwardRef(
|
|
458
458
|
(e, n) => {
|
|
459
|
-
const t =
|
|
459
|
+
const t = R(A, e.__scopeMenu), c = K(A, e.__scopeMenu), u = ke(A, e.__scopeMenu), r = ee(A, e.__scopeMenu), l = o.useRef(null), { pointerGraceTimerRef: f, onPointerGraceIntentChange: p } = r, m = { __scopeMenu: e.__scopeMenu }, d = o.useCallback(() => {
|
|
460
460
|
l.current && window.clearTimeout(l.current), l.current = null;
|
|
461
461
|
}, []);
|
|
462
462
|
return o.useEffect(() => d, [d]), o.useEffect(() => {
|
|
463
|
-
const
|
|
463
|
+
const a = f.current;
|
|
464
464
|
return () => {
|
|
465
|
-
window.clearTimeout(
|
|
465
|
+
window.clearTimeout(a), p(null);
|
|
466
466
|
};
|
|
467
|
-
}, [f, p]), /* @__PURE__ */
|
|
468
|
-
|
|
467
|
+
}, [f, p]), /* @__PURE__ */ s(J, { asChild: !0, ...m, children: /* @__PURE__ */ s(
|
|
468
|
+
Ee,
|
|
469
469
|
{
|
|
470
470
|
id: u.triggerId,
|
|
471
471
|
"aria-haspopup": "menu",
|
|
472
472
|
"aria-expanded": t.open,
|
|
473
473
|
"aria-controls": u.contentId,
|
|
474
|
-
"data-state":
|
|
474
|
+
"data-state": Ge(t.open),
|
|
475
475
|
...e,
|
|
476
476
|
ref: Ze(n, u.onTriggerChange),
|
|
477
|
-
onClick: (
|
|
478
|
-
e.onClick?.(
|
|
477
|
+
onClick: (a) => {
|
|
478
|
+
e.onClick?.(a), !(e.disabled || a.defaultPrevented) && (a.currentTarget.focus(), t.open || t.onOpenChange(!0));
|
|
479
479
|
},
|
|
480
480
|
onPointerMove: v(
|
|
481
481
|
e.onPointerMove,
|
|
482
|
-
|
|
483
|
-
r.onItemEnter(
|
|
482
|
+
D((a) => {
|
|
483
|
+
r.onItemEnter(a), !a.defaultPrevented && !e.disabled && !t.open && !l.current && (r.onPointerGraceIntentChange(null), l.current = window.setTimeout(() => {
|
|
484
484
|
t.onOpenChange(!0), d();
|
|
485
485
|
}, 100));
|
|
486
486
|
})
|
|
487
487
|
),
|
|
488
488
|
onPointerLeave: v(
|
|
489
489
|
e.onPointerLeave,
|
|
490
|
-
|
|
490
|
+
D((a) => {
|
|
491
491
|
d();
|
|
492
492
|
const h = t.content?.getBoundingClientRect();
|
|
493
493
|
if (h) {
|
|
494
|
-
const
|
|
494
|
+
const _ = t.content?.dataset.side, M = _ === "right", E = M ? -5 : 5, x = h[M ? "left" : "right"], w = h[M ? "right" : "left"];
|
|
495
495
|
r.onPointerGraceIntentChange({
|
|
496
496
|
area: [
|
|
497
497
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
498
498
|
// consistently within polygon bounds
|
|
499
|
-
{ x:
|
|
500
|
-
{ x
|
|
501
|
-
{ x:
|
|
502
|
-
{ x:
|
|
503
|
-
{ x
|
|
499
|
+
{ x: a.clientX + E, y: a.clientY },
|
|
500
|
+
{ x, y: h.top },
|
|
501
|
+
{ x: w, y: h.top },
|
|
502
|
+
{ x: w, y: h.bottom },
|
|
503
|
+
{ x, y: h.bottom }
|
|
504
504
|
],
|
|
505
|
-
side:
|
|
505
|
+
side: _
|
|
506
506
|
}), window.clearTimeout(f.current), f.current = window.setTimeout(
|
|
507
507
|
() => r.onPointerGraceIntentChange(null),
|
|
508
508
|
300
|
|
509
509
|
);
|
|
510
510
|
} else {
|
|
511
|
-
if (r.onTriggerLeave(
|
|
511
|
+
if (r.onTriggerLeave(a), a.defaultPrevented) return;
|
|
512
512
|
r.onPointerGraceIntentChange(null);
|
|
513
513
|
}
|
|
514
514
|
})
|
|
515
515
|
),
|
|
516
|
-
onKeyDown: v(e.onKeyDown, (
|
|
516
|
+
onKeyDown: v(e.onKeyDown, (a) => {
|
|
517
517
|
const h = r.searchRef.current !== "";
|
|
518
|
-
e.disabled || h &&
|
|
518
|
+
e.disabled || h && a.key === " " || pt[c.dir].includes(a.key) && (t.onOpenChange(!0), t.content?.focus(), a.preventDefault());
|
|
519
519
|
})
|
|
520
520
|
}
|
|
521
521
|
) });
|
|
522
522
|
}
|
|
523
523
|
);
|
|
524
|
-
|
|
525
|
-
var
|
|
524
|
+
Fe.displayName = A;
|
|
525
|
+
var Le = "MenuSubContent", Ke = o.forwardRef(
|
|
526
526
|
(e, n) => {
|
|
527
|
-
const t =
|
|
528
|
-
return /* @__PURE__ */
|
|
527
|
+
const t = _e(g, e.__scopeMenu), { forceMount: c = t.forceMount, ...u } = e, r = R(g, e.__scopeMenu), l = K(g, e.__scopeMenu), f = ke(Le, e.__scopeMenu), p = o.useRef(null), m = k(n, p);
|
|
528
|
+
return /* @__PURE__ */ s(O.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(X, { present: c || r.open, children: /* @__PURE__ */ s(O.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(
|
|
529
529
|
te,
|
|
530
530
|
{
|
|
531
531
|
id: f.contentId,
|
|
@@ -548,41 +548,41 @@ var Fe = "MenuSubContent", Le = o.forwardRef(
|
|
|
548
548
|
l.onClose(), d.preventDefault();
|
|
549
549
|
}),
|
|
550
550
|
onKeyDown: v(e.onKeyDown, (d) => {
|
|
551
|
-
const
|
|
552
|
-
|
|
551
|
+
const a = d.currentTarget.contains(d.target), h = mt[l.dir].includes(d.key);
|
|
552
|
+
a && h && (r.onOpenChange(!1), f.trigger?.focus(), d.preventDefault());
|
|
553
553
|
})
|
|
554
554
|
}
|
|
555
555
|
) }) }) });
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
|
-
|
|
559
|
-
function
|
|
558
|
+
Ke.displayName = Le;
|
|
559
|
+
function Ge(e) {
|
|
560
560
|
return e ? "open" : "closed";
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function Y(e) {
|
|
563
563
|
return e === "indeterminate";
|
|
564
564
|
}
|
|
565
565
|
function ce(e) {
|
|
566
|
-
return
|
|
566
|
+
return Y(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
567
567
|
}
|
|
568
568
|
function Ot(e) {
|
|
569
569
|
const n = document.activeElement;
|
|
570
570
|
for (const t of e)
|
|
571
571
|
if (t === n || (t.focus(), document.activeElement !== n)) return;
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Dt(e, n) {
|
|
574
574
|
return e.map((t, c) => e[(n + c) % e.length]);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function kt(e, n, t) {
|
|
577
577
|
const u = n.length > 1 && Array.from(n).every((m) => m === n[0]) ? n[0] : n, r = t ? e.indexOf(t) : -1;
|
|
578
|
-
let l =
|
|
578
|
+
let l = Dt(e, Math.max(r, 0));
|
|
579
579
|
u.length === 1 && (l = l.filter((m) => m !== t));
|
|
580
580
|
const p = l.find(
|
|
581
581
|
(m) => m.toLowerCase().startsWith(u.toLowerCase())
|
|
582
582
|
);
|
|
583
583
|
return p !== t ? p : void 0;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Nt(e, n) {
|
|
586
586
|
const { x: t, y: c } = e;
|
|
587
587
|
let u = !1;
|
|
588
588
|
for (let r = 0, l = n.length - 1; r < n.length; l = r++) {
|
|
@@ -591,40 +591,40 @@ function kt(e, n) {
|
|
|
591
591
|
}
|
|
592
592
|
return u;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ft(e, n) {
|
|
595
595
|
if (!n) return !1;
|
|
596
596
|
const t = { x: e.clientX, y: e.clientY };
|
|
597
|
-
return
|
|
597
|
+
return Nt(t, n);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function D(e) {
|
|
600
600
|
return (n) => n.pointerType === "mouse" ? e(n) : void 0;
|
|
601
601
|
}
|
|
602
|
-
var on = ge, rn = J, cn =
|
|
602
|
+
var on = ge, rn = J, cn = Re, an = Se, sn = ne, un = Pe, ln = H, dn = we, fn = ye, pn = be, mn = Ae, hn = Oe, Mn = De, vn = Ne, Cn = Fe, gn = Ke;
|
|
603
603
|
export {
|
|
604
604
|
rn as Anchor,
|
|
605
605
|
Mn as Arrow,
|
|
606
606
|
dn as CheckboxItem,
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
an as Content,
|
|
608
|
+
sn as Group,
|
|
609
609
|
ln as Item,
|
|
610
610
|
mn as ItemIndicator,
|
|
611
611
|
un as Label,
|
|
612
612
|
ge as Menu,
|
|
613
613
|
J as MenuAnchor,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
614
|
+
De as MenuArrow,
|
|
615
|
+
we as MenuCheckboxItem,
|
|
616
|
+
Se as MenuContent,
|
|
617
617
|
ne as MenuGroup,
|
|
618
|
-
|
|
618
|
+
H as MenuItem,
|
|
619
619
|
Ae as MenuItemIndicator,
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
620
|
+
Pe as MenuLabel,
|
|
621
|
+
Re as MenuPortal,
|
|
622
|
+
ye as MenuRadioGroup,
|
|
623
623
|
be as MenuRadioItem,
|
|
624
624
|
Oe as MenuSeparator,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
625
|
+
Ne as MenuSub,
|
|
626
|
+
Ke as MenuSubContent,
|
|
627
|
+
Fe as MenuSubTrigger,
|
|
628
628
|
cn as Portal,
|
|
629
629
|
fn as RadioGroup,
|
|
630
630
|
pn as RadioItem,
|