@arolariu/components 0.0.30 → 0.0.32
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/LICENSE +21 -0
- 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/index.cjs +1 -1
- package/dist/cjs/index.css +1 -0
- 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 +10 -10
- 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/index.css +1 -0
- package/dist/esm/index.js +294 -293
- package/dist/esm/index.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/index.css +1 -0
- package/dist/index.js +298 -0
- 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 +237 -442
- package/src/components/ui/accordion.tsx +10 -11
- package/src/components/ui/alert-dialog.tsx +160 -157
- package/src/components/ui/alert.tsx +11 -9
- package/src/components/ui/aspect-ratio.tsx +12 -12
- package/src/components/ui/avatar.tsx +52 -53
- package/src/components/ui/badge.tsx +47 -48
- package/src/components/ui/breadcrumb.tsx +116 -111
- package/src/components/ui/button.tsx +60 -60
- package/src/components/ui/calendar.tsx +75 -75
- package/src/components/ui/card.tsx +79 -70
- package/src/components/ui/carousel.tsx +240 -241
- package/src/components/ui/chart.tsx +352 -353
- package/src/components/ui/checkbox.tsx +31 -32
- package/src/components/ui/collapsible.tsx +34 -34
- package/src/components/ui/command.tsx +176 -177
- package/src/components/ui/context-menu.tsx +254 -252
- package/src/components/ui/dialog.tsx +20 -18
- package/src/components/ui/drawer.tsx +137 -132
- package/src/components/ui/dropdown-menu.tsx +259 -257
- package/src/components/ui/form.tsx +173 -167
- package/src/components/ui/hover-card.tsx +41 -42
- package/src/components/ui/input-otp.tsx +77 -78
- package/src/components/ui/input.tsx +22 -23
- package/src/components/ui/label.tsx +23 -24
- package/src/components/ui/menubar.tsx +278 -276
- package/src/components/ui/navigation-menu.tsx +170 -170
- package/src/components/ui/pagination.tsx +128 -129
- package/src/components/ui/popover.tsx +47 -48
- package/src/components/ui/progress.tsx +30 -31
- package/src/components/ui/radio-group.tsx +44 -45
- package/src/components/ui/resizable.tsx +55 -56
- package/src/components/ui/scroll-area.tsx +57 -58
- package/src/components/ui/select.tsx +183 -181
- package/src/components/ui/separator.tsx +27 -28
- package/src/components/ui/sheet.tsx +144 -139
- package/src/components/ui/sidebar.tsx +725 -723
- package/src/components/ui/skeleton.tsx +17 -14
- package/src/components/ui/slider.tsx +62 -63
- package/src/components/ui/sonner.tsx +30 -30
- package/src/components/ui/switch.tsx +30 -31
- package/src/components/ui/table.tsx +118 -116
- package/src/components/ui/tabs.tsx +65 -66
- package/src/components/ui/textarea.tsx +19 -19
- package/src/components/ui/toggle-group.tsx +72 -73
- package/src/components/ui/toggle.tsx +46 -47
- package/src/components/ui/tooltip.tsx +60 -61
- package/src/index.css +3 -107
- package/src/index.ts +2 -0
- package/tailwind.config.mjs +67 -0
- package/tsconfig.json +50 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { clamp as
|
|
3
|
+
import { clamp as $ } from "../../number/dist/index.js";
|
|
4
4
|
import { composeEventHandlers as C } from "../../primitive/dist/index.js";
|
|
5
5
|
import { useComposedRefs as I } from "../../react-compose-refs/dist/index.js";
|
|
6
6
|
import { createContextScope as ae } from "../../react-context/dist/index.js";
|
|
@@ -10,15 +10,15 @@ import { usePrevious as de } from "../../react-use-previous/dist/index.js";
|
|
|
10
10
|
import { useSize as ue } from "../../react-use-size/dist/index.js";
|
|
11
11
|
import { Primitive as V } from "../../react-primitive/dist/index.js";
|
|
12
12
|
import { createCollection as fe } from "../../react-collection/dist/index.js";
|
|
13
|
-
import {
|
|
14
|
-
var
|
|
13
|
+
import { jsx as h, jsxs as me } from "react/jsx-runtime";
|
|
14
|
+
var j = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], G = {
|
|
15
15
|
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
16
16
|
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
17
17
|
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
18
18
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
19
|
-
}, M = "Slider", [
|
|
19
|
+
}, M = "Slider", [N, Se, pe] = fe(M), [W, Oe] = ae(M, [
|
|
20
20
|
pe
|
|
21
|
-
]), [
|
|
21
|
+
]), [he, T] = W(M), q = l.forwardRef(
|
|
22
22
|
(e, t) => {
|
|
23
23
|
const {
|
|
24
24
|
name: o,
|
|
@@ -29,46 +29,46 @@ var $ = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
|
|
|
29
29
|
disabled: c = !1,
|
|
30
30
|
minStepsBetweenThumbs: d = 0,
|
|
31
31
|
defaultValue: g = [n],
|
|
32
|
-
value:
|
|
32
|
+
value: y,
|
|
33
33
|
onValueChange: s = () => {
|
|
34
34
|
},
|
|
35
35
|
onValueCommit: u = () => {
|
|
36
36
|
},
|
|
37
37
|
inverted: v = !1,
|
|
38
|
-
form:
|
|
39
|
-
...
|
|
40
|
-
} = e, m = l.useRef(/* @__PURE__ */ new Set()), f = l.useRef(0), w = r === "horizontal" ?
|
|
41
|
-
prop:
|
|
38
|
+
form: P,
|
|
39
|
+
...p
|
|
40
|
+
} = e, m = l.useRef(/* @__PURE__ */ new Set()), f = l.useRef(0), w = r === "horizontal" ? ge : ve, [S = [], _] = ce({
|
|
41
|
+
prop: y,
|
|
42
42
|
defaultProp: g,
|
|
43
|
-
onChange: (
|
|
44
|
-
[...m.current][f.current]?.focus(), s(
|
|
43
|
+
onChange: (b) => {
|
|
44
|
+
[...m.current][f.current]?.focus(), s(b);
|
|
45
45
|
}
|
|
46
|
-
}),
|
|
47
|
-
function
|
|
48
|
-
const
|
|
49
|
-
K(
|
|
46
|
+
}), B = l.useRef(S);
|
|
47
|
+
function k(b) {
|
|
48
|
+
const R = Re(S, b);
|
|
49
|
+
K(b, R);
|
|
50
50
|
}
|
|
51
|
-
function ie(
|
|
52
|
-
K(
|
|
51
|
+
function ie(b) {
|
|
52
|
+
K(b, f.current);
|
|
53
53
|
}
|
|
54
54
|
function se() {
|
|
55
|
-
const
|
|
56
|
-
|
|
55
|
+
const b = B.current[f.current];
|
|
56
|
+
S[f.current] !== b && u(S);
|
|
57
57
|
}
|
|
58
|
-
function K(
|
|
59
|
-
const
|
|
58
|
+
function K(b, R, { commit: z } = { commit: !1 }) {
|
|
59
|
+
const U = Ce(a), H = Me(Math.round((b - n) / a) * a + n, U), A = $(H, [n, i]);
|
|
60
60
|
_((E = []) => {
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
63
|
-
f.current =
|
|
64
|
-
const
|
|
65
|
-
return
|
|
61
|
+
const x = ye(E, A, R);
|
|
62
|
+
if (Ee(x, d * a)) {
|
|
63
|
+
f.current = x.indexOf(A);
|
|
64
|
+
const Y = String(x) !== String(E);
|
|
65
|
+
return Y && z && u(x), Y ? x : E;
|
|
66
66
|
} else
|
|
67
67
|
return E;
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
70
|
+
return /* @__PURE__ */ h(
|
|
71
|
+
he,
|
|
72
72
|
{
|
|
73
73
|
scope: e.__scopeSlider,
|
|
74
74
|
name: o,
|
|
@@ -77,31 +77,31 @@ var $ = ["PageUp", "PageDown"], X = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arrow
|
|
|
77
77
|
max: i,
|
|
78
78
|
valueIndexToChangeRef: f,
|
|
79
79
|
thumbs: m.current,
|
|
80
|
-
values:
|
|
80
|
+
values: S,
|
|
81
81
|
orientation: r,
|
|
82
|
-
form:
|
|
83
|
-
children: /* @__PURE__ */
|
|
82
|
+
form: P,
|
|
83
|
+
children: /* @__PURE__ */ h(N.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ h(N.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ h(
|
|
84
84
|
w,
|
|
85
85
|
{
|
|
86
86
|
"aria-disabled": c,
|
|
87
87
|
"data-disabled": c ? "" : void 0,
|
|
88
|
-
...
|
|
88
|
+
...p,
|
|
89
89
|
ref: t,
|
|
90
|
-
onPointerDown: C(
|
|
91
|
-
c || (
|
|
90
|
+
onPointerDown: C(p.onPointerDown, () => {
|
|
91
|
+
c || (B.current = S);
|
|
92
92
|
}),
|
|
93
93
|
min: n,
|
|
94
94
|
max: i,
|
|
95
95
|
inverted: v,
|
|
96
|
-
onSlideStart: c ? void 0 :
|
|
96
|
+
onSlideStart: c ? void 0 : k,
|
|
97
97
|
onSlideMove: c ? void 0 : ie,
|
|
98
98
|
onSlideEnd: c ? void 0 : se,
|
|
99
99
|
onHomeKeyDown: () => !c && K(n, 0, { commit: !0 }),
|
|
100
|
-
onEndKeyDown: () => !c && K(i,
|
|
101
|
-
onStepKeyDown: ({ event:
|
|
100
|
+
onEndKeyDown: () => !c && K(i, S.length - 1, { commit: !0 }),
|
|
101
|
+
onStepKeyDown: ({ event: b, direction: R }) => {
|
|
102
102
|
if (!c) {
|
|
103
|
-
const
|
|
104
|
-
K(E +
|
|
103
|
+
const H = j.includes(b.key) || b.shiftKey && X.includes(b.key) ? 10 : 1, A = f.current, E = S[A], x = a * H * R;
|
|
104
|
+
K(E + x, A, { commit: !0 });
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -116,7 +116,7 @@ var [J, Q] = W(M, {
|
|
|
116
116
|
endEdge: "right",
|
|
117
117
|
size: "width",
|
|
118
118
|
direction: 1
|
|
119
|
-
}),
|
|
119
|
+
}), ge = l.forwardRef(
|
|
120
120
|
(e, t) => {
|
|
121
121
|
const {
|
|
122
122
|
min: o,
|
|
@@ -127,13 +127,13 @@ var [J, Q] = W(M, {
|
|
|
127
127
|
onSlideMove: c,
|
|
128
128
|
onSlideEnd: d,
|
|
129
129
|
onStepKeyDown: g,
|
|
130
|
-
...
|
|
131
|
-
} = e, [s, u] = l.useState(null), v = I(t, (w) => u(w)),
|
|
130
|
+
...y
|
|
131
|
+
} = e, [s, u] = l.useState(null), v = I(t, (w) => u(w)), P = l.useRef(void 0), p = le(i), m = p === "ltr", f = m && !a || !m && a;
|
|
132
132
|
function D(w) {
|
|
133
|
-
const
|
|
134
|
-
return
|
|
133
|
+
const S = P.current || s.getBoundingClientRect(), _ = [0, S.width], k = F(_, f ? [o, n] : [n, o]);
|
|
134
|
+
return P.current = S, k(w - S.left);
|
|
135
135
|
}
|
|
136
|
-
return /* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ h(
|
|
137
137
|
J,
|
|
138
138
|
{
|
|
139
139
|
scope: e.__scopeSlider,
|
|
@@ -141,27 +141,27 @@ var [J, Q] = W(M, {
|
|
|
141
141
|
endEdge: f ? "right" : "left",
|
|
142
142
|
direction: f ? 1 : -1,
|
|
143
143
|
size: "width",
|
|
144
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ h(
|
|
145
145
|
Z,
|
|
146
146
|
{
|
|
147
|
-
dir:
|
|
147
|
+
dir: p,
|
|
148
148
|
"data-orientation": "horizontal",
|
|
149
|
-
...
|
|
149
|
+
...y,
|
|
150
150
|
ref: v,
|
|
151
151
|
style: {
|
|
152
|
-
...
|
|
152
|
+
...y.style,
|
|
153
153
|
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
154
154
|
},
|
|
155
155
|
onSlideStart: (w) => {
|
|
156
|
-
const
|
|
157
|
-
r?.(
|
|
156
|
+
const S = D(w.clientX);
|
|
157
|
+
r?.(S);
|
|
158
158
|
},
|
|
159
159
|
onSlideMove: (w) => {
|
|
160
|
-
const
|
|
161
|
-
c?.(
|
|
160
|
+
const S = D(w.clientX);
|
|
161
|
+
c?.(S);
|
|
162
162
|
},
|
|
163
163
|
onSlideEnd: () => {
|
|
164
|
-
|
|
164
|
+
P.current = void 0, d?.();
|
|
165
165
|
},
|
|
166
166
|
onStepKeyDown: (w) => {
|
|
167
167
|
const _ = G[f ? "from-left" : "from-right"].includes(w.key);
|
|
@@ -172,7 +172,7 @@ var [J, Q] = W(M, {
|
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
|
-
),
|
|
175
|
+
), ve = l.forwardRef(
|
|
176
176
|
(e, t) => {
|
|
177
177
|
const {
|
|
178
178
|
min: o,
|
|
@@ -183,12 +183,12 @@ var [J, Q] = W(M, {
|
|
|
183
183
|
onSlideEnd: c,
|
|
184
184
|
onStepKeyDown: d,
|
|
185
185
|
...g
|
|
186
|
-
} = e,
|
|
187
|
-
function
|
|
188
|
-
const m = u.current ||
|
|
189
|
-
return u.current = m, w(
|
|
186
|
+
} = e, y = l.useRef(null), s = I(t, y), u = l.useRef(void 0), v = !i;
|
|
187
|
+
function P(p) {
|
|
188
|
+
const m = u.current || y.current.getBoundingClientRect(), f = [0, m.height], w = F(f, v ? [n, o] : [o, n]);
|
|
189
|
+
return u.current = m, w(p - m.top);
|
|
190
190
|
}
|
|
191
|
-
return /* @__PURE__ */
|
|
191
|
+
return /* @__PURE__ */ h(
|
|
192
192
|
J,
|
|
193
193
|
{
|
|
194
194
|
scope: e.__scopeSlider,
|
|
@@ -196,7 +196,7 @@ var [J, Q] = W(M, {
|
|
|
196
196
|
endEdge: v ? "top" : "bottom",
|
|
197
197
|
size: "height",
|
|
198
198
|
direction: v ? 1 : -1,
|
|
199
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ h(
|
|
200
200
|
Z,
|
|
201
201
|
{
|
|
202
202
|
"data-orientation": "vertical",
|
|
@@ -206,20 +206,20 @@ var [J, Q] = W(M, {
|
|
|
206
206
|
...g.style,
|
|
207
207
|
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
208
208
|
},
|
|
209
|
-
onSlideStart: (
|
|
210
|
-
const m =
|
|
209
|
+
onSlideStart: (p) => {
|
|
210
|
+
const m = P(p.clientY);
|
|
211
211
|
a?.(m);
|
|
212
212
|
},
|
|
213
|
-
onSlideMove: (
|
|
214
|
-
const m =
|
|
213
|
+
onSlideMove: (p) => {
|
|
214
|
+
const m = P(p.clientY);
|
|
215
215
|
r?.(m);
|
|
216
216
|
},
|
|
217
217
|
onSlideEnd: () => {
|
|
218
218
|
u.current = void 0, c?.();
|
|
219
219
|
},
|
|
220
|
-
onStepKeyDown: (
|
|
221
|
-
const f = G[v ? "from-bottom" : "from-top"].includes(
|
|
222
|
-
d?.({ event:
|
|
220
|
+
onStepKeyDown: (p) => {
|
|
221
|
+
const f = G[v ? "from-bottom" : "from-top"].includes(p.key);
|
|
222
|
+
d?.({ event: p, direction: f ? -1 : 1 });
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
)
|
|
@@ -237,18 +237,18 @@ var [J, Q] = W(M, {
|
|
|
237
237
|
onEndKeyDown: c,
|
|
238
238
|
onStepKeyDown: d,
|
|
239
239
|
...g
|
|
240
|
-
} = e,
|
|
241
|
-
return /* @__PURE__ */
|
|
240
|
+
} = e, y = T(M, o);
|
|
241
|
+
return /* @__PURE__ */ h(
|
|
242
242
|
V.span,
|
|
243
243
|
{
|
|
244
244
|
...g,
|
|
245
245
|
ref: t,
|
|
246
246
|
onKeyDown: C(e.onKeyDown, (s) => {
|
|
247
|
-
s.key === "Home" ? (r(s), s.preventDefault()) : s.key === "End" ? (c(s), s.preventDefault()) :
|
|
247
|
+
s.key === "Home" ? (r(s), s.preventDefault()) : s.key === "End" ? (c(s), s.preventDefault()) : j.concat(X).includes(s.key) && (d(s), s.preventDefault());
|
|
248
248
|
}),
|
|
249
249
|
onPointerDown: C(e.onPointerDown, (s) => {
|
|
250
250
|
const u = s.target;
|
|
251
|
-
u.setPointerCapture(s.pointerId), s.preventDefault(),
|
|
251
|
+
u.setPointerCapture(s.pointerId), s.preventDefault(), y.thumbs.has(u) ? u.focus() : n(s);
|
|
252
252
|
}),
|
|
253
253
|
onPointerMove: C(e.onPointerMove, (s) => {
|
|
254
254
|
s.target.hasPointerCapture(s.pointerId) && i(s);
|
|
@@ -262,8 +262,8 @@ var [J, Q] = W(M, {
|
|
|
262
262
|
}
|
|
263
263
|
), ee = "SliderTrack", te = l.forwardRef(
|
|
264
264
|
(e, t) => {
|
|
265
|
-
const { __scopeSlider: o, ...n } = e, i =
|
|
266
|
-
return /* @__PURE__ */
|
|
265
|
+
const { __scopeSlider: o, ...n } = e, i = T(ee, o);
|
|
266
|
+
return /* @__PURE__ */ h(
|
|
267
267
|
V.span,
|
|
268
268
|
{
|
|
269
269
|
"data-disabled": i.disabled ? "" : void 0,
|
|
@@ -275,12 +275,12 @@ var [J, Q] = W(M, {
|
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
277
|
te.displayName = ee;
|
|
278
|
-
var
|
|
278
|
+
var O = "SliderRange", ne = l.forwardRef(
|
|
279
279
|
(e, t) => {
|
|
280
|
-
const { __scopeSlider: o, ...n } = e, i =
|
|
280
|
+
const { __scopeSlider: o, ...n } = e, i = T(O, o), a = Q(O, o), r = l.useRef(null), c = I(t, r), d = i.values.length, g = i.values.map(
|
|
281
281
|
(u) => re(u, i.min, i.max)
|
|
282
|
-
),
|
|
283
|
-
return /* @__PURE__ */
|
|
282
|
+
), y = d > 1 ? Math.min(...g) : 0, s = 100 - Math.max(...g);
|
|
283
|
+
return /* @__PURE__ */ h(
|
|
284
284
|
V.span,
|
|
285
285
|
{
|
|
286
286
|
"data-orientation": i.orientation,
|
|
@@ -289,44 +289,44 @@ var N = "SliderRange", ne = l.forwardRef(
|
|
|
289
289
|
ref: c,
|
|
290
290
|
style: {
|
|
291
291
|
...e.style,
|
|
292
|
-
[a.startEdge]:
|
|
292
|
+
[a.startEdge]: y + "%",
|
|
293
293
|
[a.endEdge]: s + "%"
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
);
|
|
299
|
-
ne.displayName =
|
|
300
|
-
var
|
|
299
|
+
ne.displayName = O;
|
|
300
|
+
var L = "SliderThumb", oe = l.forwardRef(
|
|
301
301
|
(e, t) => {
|
|
302
|
-
const o =
|
|
302
|
+
const o = Se(e.__scopeSlider), [n, i] = l.useState(null), a = I(t, (c) => i(c)), r = l.useMemo(
|
|
303
303
|
() => n ? o().findIndex((c) => c.ref.current === n) : -1,
|
|
304
304
|
[o, n]
|
|
305
305
|
);
|
|
306
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ h(we, { ...e, ref: a, index: r });
|
|
307
307
|
}
|
|
308
|
-
),
|
|
308
|
+
), we = l.forwardRef(
|
|
309
309
|
(e, t) => {
|
|
310
|
-
const { __scopeSlider: o, index: n, name: i, ...a } = e, r =
|
|
310
|
+
const { __scopeSlider: o, index: n, name: i, ...a } = e, r = T(L, o), c = Q(L, o), [d, g] = l.useState(null), y = I(t, (D) => g(D)), s = d ? r.form || !!d.closest("form") : !0, u = ue(d), v = r.values[n], P = v === void 0 ? 0 : re(v, r.min, r.max), p = Pe(n, r.values.length), m = u?.[c.size], f = m ? xe(m, P, c.direction) : 0;
|
|
311
311
|
return l.useEffect(() => {
|
|
312
312
|
if (d)
|
|
313
313
|
return r.thumbs.add(d), () => {
|
|
314
314
|
r.thumbs.delete(d);
|
|
315
315
|
};
|
|
316
|
-
}, [d, r.thumbs]), /* @__PURE__ */
|
|
316
|
+
}, [d, r.thumbs]), /* @__PURE__ */ me(
|
|
317
317
|
"span",
|
|
318
318
|
{
|
|
319
319
|
style: {
|
|
320
320
|
transform: "var(--radix-slider-thumb-transform)",
|
|
321
321
|
position: "absolute",
|
|
322
|
-
[c.startEdge]: `calc(${
|
|
322
|
+
[c.startEdge]: `calc(${P}% + ${f}px)`
|
|
323
323
|
},
|
|
324
324
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ h(N.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ h(
|
|
326
326
|
V.span,
|
|
327
327
|
{
|
|
328
328
|
role: "slider",
|
|
329
|
-
"aria-label": e["aria-label"] ||
|
|
329
|
+
"aria-label": e["aria-label"] || p,
|
|
330
330
|
"aria-valuemin": r.min,
|
|
331
331
|
"aria-valuenow": v,
|
|
332
332
|
"aria-valuemax": r.max,
|
|
@@ -335,15 +335,15 @@ var O = "SliderThumb", oe = l.forwardRef(
|
|
|
335
335
|
"data-disabled": r.disabled ? "" : void 0,
|
|
336
336
|
tabIndex: r.disabled ? void 0 : 0,
|
|
337
337
|
...a,
|
|
338
|
-
ref:
|
|
338
|
+
ref: y,
|
|
339
339
|
style: v === void 0 ? { display: "none" } : e.style,
|
|
340
340
|
onFocus: C(e.onFocus, () => {
|
|
341
341
|
r.valueIndexToChangeRef.current = n;
|
|
342
342
|
})
|
|
343
343
|
}
|
|
344
344
|
) }),
|
|
345
|
-
s && /* @__PURE__ */
|
|
346
|
-
|
|
345
|
+
s && /* @__PURE__ */ h(
|
|
346
|
+
be,
|
|
347
347
|
{
|
|
348
348
|
name: i ?? (r.name ? r.name + (r.values.length > 1 ? "[]" : "") : void 0),
|
|
349
349
|
form: r.form,
|
|
@@ -356,8 +356,8 @@ var O = "SliderThumb", oe = l.forwardRef(
|
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
|
-
oe.displayName =
|
|
360
|
-
var
|
|
359
|
+
oe.displayName = L;
|
|
360
|
+
var be = (e) => {
|
|
361
361
|
const { value: t, ...o } = e, n = l.useRef(null), i = de(t);
|
|
362
362
|
return l.useEffect(() => {
|
|
363
363
|
const a = n.current, r = window.HTMLInputElement.prototype, d = Object.getOwnPropertyDescriptor(r, "value").set;
|
|
@@ -365,62 +365,62 @@ var we = (e) => {
|
|
|
365
365
|
const g = new Event("input", { bubbles: !0 });
|
|
366
366
|
d.call(a, t), a.dispatchEvent(g);
|
|
367
367
|
}
|
|
368
|
-
}, [i, t]), /* @__PURE__ */
|
|
368
|
+
}, [i, t]), /* @__PURE__ */ h("input", { style: { display: "none" }, ...o, ref: n, defaultValue: t });
|
|
369
369
|
};
|
|
370
|
-
function
|
|
370
|
+
function ye(e = [], t, o) {
|
|
371
371
|
const n = [...e];
|
|
372
372
|
return n[o] = t, n.sort((i, a) => i - a);
|
|
373
373
|
}
|
|
374
374
|
function re(e, t, o) {
|
|
375
375
|
const a = 100 / (o - t) * (e - t);
|
|
376
|
-
return
|
|
376
|
+
return $(a, [0, 100]);
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Pe(e, t) {
|
|
379
379
|
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Re(e, t) {
|
|
382
382
|
if (e.length === 1) return 0;
|
|
383
383
|
const o = e.map((i) => Math.abs(i - t)), n = Math.min(...o);
|
|
384
384
|
return o.indexOf(n);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const n = e / 2, a =
|
|
386
|
+
function xe(e, t, o) {
|
|
387
|
+
const n = e / 2, a = F([0, 50], [0, n]);
|
|
388
388
|
return (n - a(t) * o) * o;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function De(e) {
|
|
391
391
|
return e.slice(0, -1).map((t, o) => e[o + 1] - t);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Ee(e, t) {
|
|
394
394
|
if (t > 0) {
|
|
395
|
-
const o =
|
|
395
|
+
const o = De(e);
|
|
396
396
|
return Math.min(...o) >= t;
|
|
397
397
|
}
|
|
398
398
|
return !0;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function F(e, t) {
|
|
401
401
|
return (o) => {
|
|
402
402
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
403
403
|
const n = (t[1] - t[0]) / (e[1] - e[0]);
|
|
404
404
|
return t[0] + n * (o - e[0]);
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Ce(e) {
|
|
408
408
|
return (String(e).split(".")[1] || "").length;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Me(e, t) {
|
|
411
411
|
const o = Math.pow(10, t);
|
|
412
412
|
return Math.round(e * o) / o;
|
|
413
413
|
}
|
|
414
|
-
var
|
|
414
|
+
var Le = q, Fe = te, Ue = ne, Ye = oe;
|
|
415
415
|
export {
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
Ue as Range,
|
|
417
|
+
Le as Root,
|
|
418
418
|
q as Slider,
|
|
419
419
|
ne as SliderRange,
|
|
420
420
|
oe as SliderThumb,
|
|
421
421
|
te as SliderTrack,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
422
|
+
Ye as Thumb,
|
|
423
|
+
Fe as Track,
|
|
424
|
+
Oe as createSliderScope
|
|
425
425
|
};
|
|
426
426
|
//# sourceMappingURL=index.js.map
|