@youcan/celeste 0.6.101 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/celeste.css +1460 -1460
- package/dist/cjs/chunks/BubbleSelect.cjs +332 -0
- package/dist/cjs/chunks/CollapsibleRoot.cjs +90 -0
- package/dist/cjs/chunks/Collection.cjs +79 -0
- package/dist/cjs/chunks/ComboboxContent.cjs +442 -0
- package/dist/cjs/chunks/ComboboxGroup.cjs +90 -0
- package/dist/cjs/chunks/ComboboxInput.cjs +266 -0
- package/dist/cjs/chunks/ComboboxItem.cjs +195 -0
- package/dist/cjs/chunks/ComboboxLabel.cjs +47 -0
- package/dist/cjs/chunks/ComboboxRoot.cjs +695 -0
- package/dist/cjs/chunks/ComboboxSeparator.cjs +35 -0
- package/dist/cjs/chunks/ConfigProvider.cjs +11 -0
- package/dist/cjs/chunks/DialogClose.cjs +41 -0
- package/dist/cjs/chunks/DialogDescription.cjs +38 -0
- package/dist/cjs/chunks/DialogPortal.cjs +521 -0
- package/dist/cjs/chunks/DialogRoot.cjs +81 -0
- package/dist/cjs/chunks/DialogTitle.cjs +38 -0
- package/dist/cjs/chunks/DialogTrigger.cjs +57 -0
- package/dist/cjs/chunks/DismissableLayer.cjs +292 -0
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +73 -0
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +87 -0
- package/dist/cjs/chunks/FocusScope.cjs +368 -0
- package/dist/cjs/chunks/Label.cjs +42 -0
- package/dist/cjs/chunks/MenuAnchor.cjs +37 -0
- package/dist/cjs/chunks/MenuContentImpl.cjs +371 -0
- package/dist/cjs/chunks/MenuGroup.cjs +44 -0
- package/dist/cjs/chunks/MenuItemImpl.cjs +100 -0
- package/dist/cjs/chunks/MenuRoot.cjs +108 -0
- package/dist/cjs/chunks/MenuSub.cjs +68 -0
- package/dist/cjs/chunks/PaginationRoot.cjs +101 -0
- package/dist/cjs/chunks/PinInputRoot.cjs +153 -0
- package/dist/cjs/chunks/PopoverRoot.cjs +73 -0
- package/dist/cjs/chunks/PopperAnchor.cjs +48 -0
- package/dist/cjs/chunks/PopperArrow.cjs +152 -0
- package/dist/cjs/chunks/PopperContent.cjs +2134 -0
- package/dist/cjs/chunks/PopperRoot.cjs +32 -0
- package/dist/cjs/chunks/Presence.cjs +194 -0
- package/dist/cjs/chunks/Primitive.cjs +80 -0
- package/dist/cjs/chunks/ProgressIndicator.cjs +161 -0
- package/dist/cjs/chunks/RadioGroupRoot.cjs +143 -0
- package/dist/cjs/chunks/RovingFocusGroup.cjs +146 -0
- package/dist/cjs/chunks/RovingFocusItem.cjs +114 -0
- package/dist/cjs/chunks/SelectGroup.cjs +44 -0
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +593 -0
- package/dist/cjs/chunks/TabsRoot.cjs +114 -0
- package/dist/cjs/chunks/Teleport.cjs +51 -0
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +188 -0
- package/dist/cjs/chunks/TooltipProvider.cjs +87 -0
- package/dist/cjs/chunks/TooltipRoot.cjs +145 -0
- package/dist/cjs/chunks/VisuallyHidden.cjs +65 -0
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +146 -0
- package/dist/cjs/chunks/alert.cjs +2 -2
- package/dist/cjs/chunks/alpha-slider.cjs +1 -1
- package/dist/cjs/chunks/badge.cjs +2 -2
- package/dist/cjs/chunks/button.cjs +4 -3
- package/dist/cjs/chunks/checkbox-card.cjs +10 -8
- package/dist/cjs/chunks/checkbox-label.cjs +11 -9
- package/dist/cjs/chunks/checkbox.cjs +234 -9
- package/dist/cjs/chunks/chunk.cjs +50 -0
- package/dist/cjs/chunks/clamp.cjs +75 -0
- package/dist/cjs/chunks/collapsible-content.cjs +105 -2
- package/dist/cjs/chunks/collapsible-trigger.cjs +51 -2
- package/dist/cjs/chunks/collapsible.cjs +6 -3
- package/dist/cjs/chunks/color-area.cjs +4 -4
- package/dist/cjs/chunks/color-picker.cjs +14 -13
- package/dist/cjs/chunks/color-swatch.cjs +3 -3
- package/dist/cjs/chunks/combobox-anchor.cjs +45 -3
- package/dist/cjs/chunks/combobox-empty.cjs +31 -3
- package/dist/cjs/chunks/combobox-group.cjs +6 -4
- package/dist/cjs/chunks/combobox-input.cjs +7 -5
- package/dist/cjs/chunks/combobox-item.cjs +8 -6
- package/dist/cjs/chunks/combobox-list.cjs +105 -7
- package/dist/cjs/chunks/combobox-root.cjs +22 -18
- package/dist/cjs/chunks/combobox-separator.cjs +4 -3
- package/dist/cjs/chunks/combobox-trigger.cjs +64 -4
- package/dist/cjs/chunks/combobox.cjs +38 -30
- package/dist/cjs/chunks/compact-button.cjs +4 -3
- package/dist/cjs/chunks/components.cjs +47 -47
- package/dist/cjs/chunks/content-divider.cjs +87 -2
- package/dist/cjs/chunks/core.cjs +3 -3
- package/dist/cjs/chunks/counter-input.cjs +884 -8
- package/dist/cjs/chunks/createContext.cjs +38 -0
- package/dist/cjs/chunks/digit-input-group.cjs +6 -4
- package/dist/cjs/chunks/digit-input-slot.cjs +243 -4
- package/dist/cjs/chunks/digit-input.cjs +8 -6
- package/dist/cjs/chunks/dist.cjs +524 -12084
- package/dist/cjs/chunks/dropdown-menu-content.cjs +542 -5
- package/dist/cjs/chunks/dropdown-menu-group.cjs +30 -3
- package/dist/cjs/chunks/dropdown-menu-item.cjs +125 -4
- package/dist/cjs/chunks/dropdown-menu-label.cjs +59 -4
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +57 -3
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +295 -5
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +192 -4
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +39 -2
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +91 -4
- package/dist/cjs/chunks/dropdown-menu.cjs +6 -4
- package/dist/cjs/chunks/extra-settings.cjs +5 -5
- package/dist/cjs/chunks/fancy-button.cjs +4 -3
- package/dist/cjs/chunks/file-upload-area.cjs +2 -2
- package/dist/cjs/chunks/getActiveElement.cjs +14 -0
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +18 -0
- package/dist/cjs/chunks/hint-text.cjs +2 -2
- package/dist/cjs/chunks/hue-slider.cjs +1 -1
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +24 -0
- package/dist/cjs/chunks/{label.cjs → label2.cjs} +15 -8
- package/dist/cjs/chunks/link-bubble.cjs +7 -7
- package/dist/cjs/chunks/link-button.cjs +4 -3
- package/dist/cjs/chunks/menus.cjs +53 -52
- package/dist/cjs/chunks/modal-body.cjs +1 -1
- package/dist/cjs/chunks/modal-close.cjs +3 -2
- package/dist/cjs/chunks/modal-content.cjs +8 -7
- package/dist/cjs/chunks/modal-footer.cjs +1 -1
- package/dist/cjs/chunks/modal-header.cjs +8 -5
- package/dist/cjs/chunks/modal-trigger.cjs +3 -2
- package/dist/cjs/chunks/modal.cjs +7 -4
- package/dist/cjs/chunks/nullish.cjs +11 -0
- package/dist/cjs/chunks/ohash.D__AXeF1.cjs +114 -0
- package/dist/cjs/chunks/pagination-content.cjs +86 -3
- package/dist/cjs/chunks/pagination-ellipsis.cjs +30 -3
- package/dist/cjs/chunks/pagination-first.cjs +39 -3
- package/dist/cjs/chunks/pagination-item.cjs +51 -2
- package/dist/cjs/chunks/pagination-last.cjs +39 -3
- package/dist/cjs/chunks/pagination-next.cjs +39 -3
- package/dist/cjs/chunks/pagination-previous.cjs +39 -3
- package/dist/cjs/chunks/pagination.cjs +6 -4
- package/dist/cjs/chunks/popover-content.cjs +704 -7
- package/dist/cjs/chunks/popover-trigger.cjs +62 -3
- package/dist/cjs/chunks/popover.cjs +5 -3
- package/dist/cjs/chunks/progress-bar.cjs +7 -5
- package/dist/cjs/chunks/progress-circle.cjs +7 -5
- package/dist/cjs/chunks/radio-group-card.cjs +10 -8
- package/dist/cjs/chunks/radio-group-item.cjs +304 -6
- package/dist/cjs/chunks/radio-group-label.cjs +11 -9
- package/dist/cjs/chunks/radio-group.cjs +7 -5
- package/dist/cjs/chunks/rich-editor.cjs +162 -162
- package/dist/cjs/chunks/scroll-area.cjs +142 -6
- package/dist/cjs/chunks/scroll-bar.cjs +895 -4
- package/dist/cjs/chunks/segmented-control-item.cjs +163 -3
- package/dist/cjs/chunks/segmented-control.cjs +8 -4
- package/dist/cjs/chunks/select-content.cjs +320 -6
- package/dist/cjs/chunks/select-group.cjs +3 -2
- package/dist/cjs/chunks/select-icon.cjs +1 -1
- package/dist/cjs/chunks/select-item.cjs +227 -5
- package/dist/cjs/chunks/select-label.cjs +35 -3
- package/dist/cjs/chunks/select-separator.cjs +28 -3
- package/dist/cjs/chunks/select-trigger.cjs +165 -4
- package/dist/cjs/chunks/select-value.cjs +65 -3
- package/dist/cjs/chunks/select.cjs +9 -4
- package/dist/cjs/chunks/sheet-close.cjs +4 -3
- package/dist/cjs/chunks/sheet-content.cjs +9 -7
- package/dist/cjs/chunks/sheet-description.cjs +4 -3
- package/dist/cjs/chunks/sheet-footer.cjs +2 -2
- package/dist/cjs/chunks/sheet-header.cjs +2 -2
- package/dist/cjs/chunks/sheet-title.cjs +4 -3
- package/dist/cjs/chunks/sheet-trigger.cjs +3 -2
- package/dist/cjs/chunks/sheet.cjs +7 -4
- package/dist/cjs/chunks/sidebar-content.cjs +1 -1
- package/dist/cjs/chunks/sidebar-element.cjs +3 -2
- package/dist/cjs/chunks/sidebar-footer.cjs +1 -1
- package/dist/cjs/chunks/sidebar-group-content.cjs +1 -1
- package/dist/cjs/chunks/sidebar-group-label.cjs +3 -2
- package/dist/cjs/chunks/sidebar-group.cjs +1 -1
- package/dist/cjs/chunks/sidebar-header.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-action.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-badge.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-button.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-item.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-sub.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu.cjs +1 -1
- package/dist/cjs/chunks/sidebar-provider.cjs +1 -1
- package/dist/cjs/chunks/sidebar-trigger.cjs +1 -1
- package/dist/cjs/chunks/sidebar.cjs +1 -1
- package/dist/cjs/chunks/slider.cjs +751 -7
- package/dist/cjs/chunks/social-button.cjs +4 -3
- package/dist/cjs/chunks/sonner-alert.cjs +2 -2
- package/dist/cjs/chunks/sonner.cjs +1 -1
- package/dist/cjs/chunks/status-badge.cjs +2 -2
- package/dist/cjs/chunks/switch.cjs +192 -9
- package/dist/cjs/chunks/tab-menu-content.cjs +82 -3
- package/dist/cjs/chunks/tab-menu-item.cjs +89 -4
- package/dist/cjs/chunks/tab-menu-list.cjs +61 -3
- package/dist/cjs/chunks/tab-menu.cjs +7 -4
- package/dist/cjs/chunks/table-body.cjs +2 -2
- package/dist/cjs/chunks/table-caption.cjs +2 -2
- package/dist/cjs/chunks/table-cell.cjs +2 -2
- package/dist/cjs/chunks/table-footer.cjs +2 -2
- package/dist/cjs/chunks/table-head.cjs +2 -2
- package/dist/cjs/chunks/table-header.cjs +1 -1
- package/dist/cjs/chunks/table-row.cjs +2 -2
- package/dist/cjs/chunks/table.cjs +2 -2
- package/dist/cjs/chunks/table2.cjs +2 -2
- package/dist/cjs/chunks/tag.cjs +4 -3
- package/dist/cjs/chunks/text-input-affix.cjs +1 -1
- package/dist/cjs/chunks/text-input-button.cjs +12 -6
- package/dist/cjs/chunks/text-input.cjs +9 -8
- package/dist/cjs/chunks/textarea.cjs +2 -2
- package/dist/cjs/chunks/tooltip-content.cjs +589 -7
- package/dist/cjs/chunks/tooltip-provider.cjs +5 -3
- package/dist/cjs/chunks/tooltip-root.cjs +5 -3
- package/dist/cjs/chunks/tooltip-trigger.cjs +109 -3
- package/dist/cjs/chunks/tooltip.cjs +8 -5
- package/dist/cjs/chunks/use-color-model.cjs +1 -1
- package/dist/cjs/chunks/useArrowNavigation.cjs +65 -0
- package/dist/cjs/chunks/useComposing.cjs +27 -0
- package/dist/cjs/chunks/useDirection.cjs +20 -0
- package/dist/cjs/chunks/useEmitAsProps.cjs +34 -0
- package/dist/cjs/chunks/useFocusGuards.cjs +40 -0
- package/dist/cjs/chunks/useFormControl.cjs +14 -0
- package/dist/cjs/chunks/useForwardExpose.cjs +64 -0
- package/dist/cjs/chunks/useForwardProps.cjs +40 -0
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +20 -0
- package/dist/cjs/chunks/useForwardScopeId.cjs +31 -0
- package/dist/cjs/chunks/useHideOthers.cjs +138 -0
- package/dist/cjs/chunks/useId.cjs +30 -0
- package/dist/cjs/chunks/useKbd.cjs +46 -0
- package/dist/cjs/chunks/useNonce.cjs +15 -0
- package/dist/cjs/chunks/usePrimitiveElement.cjs +18 -0
- package/dist/cjs/chunks/useSize.cjs +55 -0
- package/dist/cjs/chunks/useTypeahead.cjs +69 -0
- package/dist/cjs/chunks/utils.cjs +117 -0
- package/dist/cjs/chunks/utils2.cjs +73 -0
- package/dist/cjs/chunks/utils3.cjs +20 -0
- package/dist/cjs/command-group.cjs +6 -4
- package/dist/cjs/command-input.cjs +9 -6
- package/dist/cjs/command-item.cjs +6 -3
- package/dist/cjs/command-list.cjs +14 -7
- package/dist/cjs/command-root.cjs +20 -16
- package/dist/cjs/command-separator.cjs +4 -3
- package/dist/cjs/config.cjs +2 -2
- package/dist/cjs/index.cjs +47 -47
- package/dist/cjs/label.cjs +1 -1
- package/dist/cjs/use-delegated-props.cjs +1 -1
- package/dist/cjs/use-sidebar.cjs +2 -2
- package/dist/cjs/use-user-select.cjs +1 -1
- package/dist/components/alert/alert.d.ts +17 -14
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/badge/status-badge.d.ts +2 -2
- package/dist/components/button/button.d.ts +11 -8
- package/dist/components/button/compact-button.d.ts +4 -4
- package/dist/components/button/fancy-button.d.ts +11 -8
- package/dist/components/button/link-button.d.ts +11 -8
- package/dist/components/button/social-button.d.ts +2 -2
- package/dist/components/checkbox/checkbox-card.d.ts +1 -1
- package/dist/components/checkbox/checkbox-label.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts +3 -3
- package/dist/components/collapsible/collapsible-content.d.ts +7 -4
- package/dist/components/collapsible/collapsible-trigger.d.ts +7 -4
- package/dist/components/collapsible/collapsible.d.ts +12 -9
- package/dist/components/color-picker/alpha-slider.d.ts +2 -2
- package/dist/components/color-picker/color-area.d.ts +1 -1
- package/dist/components/color-picker/color-picker.d.ts +11 -8
- package/dist/components/color-picker/color-swatch.d.ts +2 -2
- package/dist/components/color-picker/composable/use-color-model.d.ts +1 -1
- package/dist/components/combobox/combobox-anchor.d.ts +1 -1
- package/dist/components/combobox/combobox-empty.d.ts +1 -1
- package/dist/components/combobox/combobox-group.d.ts +1 -1
- package/dist/components/combobox/combobox-input.d.ts +1 -1
- package/dist/components/combobox/combobox-item.d.ts +13 -10
- package/dist/components/combobox/combobox-list.d.ts +8 -8
- package/dist/components/combobox/combobox-root.d.ts +11 -7
- package/dist/components/combobox/combobox-separator.d.ts +1 -1
- package/dist/components/combobox/combobox-trigger.d.ts +9 -6
- package/dist/components/combobox/combobox.d.ts +26 -19
- package/dist/components/content-divider/content-divider.d.ts +3 -3
- package/dist/components/counter-input/counter-input.d.ts +2 -2
- package/dist/components/digit-input/digit-input-group.d.ts +1 -1
- package/dist/components/digit-input/digit-input-slot.d.ts +1 -1
- package/dist/components/digit-input/digit-input.d.ts +25 -24
- package/dist/components/dropdown-menu/dropdown-menu-content.d.ts +7 -7
- package/dist/components/dropdown-menu/dropdown-menu-group.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-item.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-label.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-separator.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-sub-content.d.ts +7 -7
- package/dist/components/dropdown-menu/dropdown-menu-sub-trigger.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-sub.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/file-upload/file-upload-area.d.ts +8 -7
- package/dist/components/hint-text/hint-text.d.ts +2 -2
- package/dist/components/label/label.d.ts +3 -5
- package/dist/components/modal/modal-close.d.ts +1 -1
- package/dist/components/modal/modal-content.d.ts +7 -7
- package/dist/components/modal/modal-trigger.d.ts +1 -1
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/pagination/pagination-content.d.ts +14 -11
- package/dist/components/pagination/pagination-ellipsis.d.ts +7 -4
- package/dist/components/pagination/pagination-first.d.ts +7 -4
- package/dist/components/pagination/pagination-item.d.ts +7 -4
- package/dist/components/pagination/pagination-last.d.ts +7 -4
- package/dist/components/pagination/pagination-next.d.ts +7 -4
- package/dist/components/pagination/pagination-previous.d.ts +7 -4
- package/dist/components/pagination/pagination.d.ts +24 -21
- package/dist/components/popover/popover-content.d.ts +22 -19
- package/dist/components/popover/popover-trigger.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/progress/progress-bar.d.ts +1 -1
- package/dist/components/progress/progress-circle.d.ts +1 -1
- package/dist/components/radio-group/radio-group-card.d.ts +1 -1
- package/dist/components/radio-group/radio-group-item.d.ts +1 -1
- package/dist/components/radio-group/radio-group-label.d.ts +1 -1
- package/dist/components/radio-group/radio-group.d.ts +3 -3
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area/scroll-bar.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +3 -3
- package/dist/components/select/select-content.d.ts +3 -3
- package/dist/components/select/select-group.d.ts +1 -1
- package/dist/components/select/select-item.d.ts +1 -1
- package/dist/components/select/select-label.d.ts +1 -1
- package/dist/components/select/select-separator.d.ts +1 -1
- package/dist/components/select/select-trigger.d.ts +1 -1
- package/dist/components/select/select-value.d.ts +1 -1
- package/dist/components/select/select.d.ts +3 -3
- package/dist/components/sheet/sheet-close.d.ts +7 -4
- package/dist/components/sheet/sheet-content.d.ts +16 -13
- package/dist/components/sheet/sheet-description.d.ts +7 -4
- package/dist/components/sheet/sheet-footer.d.ts +6 -3
- package/dist/components/sheet/sheet-header.d.ts +6 -3
- package/dist/components/sheet/sheet-title.d.ts +7 -4
- package/dist/components/sheet/sheet-trigger.d.ts +7 -4
- package/dist/components/sheet/sheet.d.ts +1 -1
- package/dist/components/sidebar/sidebar-element.d.ts +9 -6
- package/dist/components/sidebar/sidebar-footer.d.ts +6 -3
- package/dist/components/sidebar/sidebar-group-label.d.ts +1 -1
- package/dist/components/sidebar/sidebar-header.d.ts +6 -3
- package/dist/components/sidebar/sidebar-menu-action.d.ts +9 -6
- package/dist/components/sidebar/sidebar-menu-badge.d.ts +2 -2
- package/dist/components/sidebar/sidebar-menu-button.d.ts +2 -2
- package/dist/components/sidebar/sidebar-menu-sub-button.d.ts +11 -8
- package/dist/components/sidebar/sidebar-separator.d.ts +1 -1
- package/dist/components/sidebar/sidebar.d.ts +11 -8
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/sonner/sonner.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/components/tab-menu/tab-menu-content.d.ts +1 -1
- package/dist/components/tab-menu/tab-menu-item.d.ts +1 -1
- package/dist/components/tab-menu/tab-menu-list.d.ts +1 -1
- package/dist/components/tab-menu/tab-menu.d.ts +3 -3
- package/dist/components/table/table-body.d.ts +6 -3
- package/dist/components/table/table-caption.d.ts +6 -3
- package/dist/components/table/table-cell.d.ts +8 -5
- package/dist/components/table/table-empty.d.ts +8 -5
- package/dist/components/table/table-footer.d.ts +6 -3
- package/dist/components/table/table-head.d.ts +8 -5
- package/dist/components/table/table-header.d.ts +6 -3
- package/dist/components/table/table-row.d.ts +8 -5
- package/dist/components/table/table.d.ts +6 -3
- package/dist/components/tag/tag.d.ts +11 -8
- package/dist/components/text-input/text-input-button.d.ts +1 -1
- package/dist/components/text-input/text-input.d.ts +24 -20
- package/dist/components/textarea/textarea.d.ts +9 -8
- package/dist/components/tooltip/tooltip-content.d.ts +10 -7
- package/dist/components/tooltip/tooltip-provider.d.ts +9 -6
- package/dist/components/tooltip/tooltip-root.d.ts +10 -7
- package/dist/components/tooltip/tooltip-trigger.d.ts +7 -4
- package/dist/components/tooltip/tooltip.d.ts +10 -7
- package/dist/es/chunks/BubbleSelect.js +290 -0
- package/dist/es/chunks/CollapsibleRoot.js +78 -0
- package/dist/es/chunks/Collection.js +73 -0
- package/dist/es/chunks/ComboboxContent.js +436 -0
- package/dist/es/chunks/ComboboxGroup.js +78 -0
- package/dist/es/chunks/ComboboxInput.js +260 -0
- package/dist/es/chunks/ComboboxItem.js +189 -0
- package/dist/es/chunks/ComboboxLabel.js +41 -0
- package/dist/es/chunks/ComboboxRoot.js +671 -0
- package/dist/es/chunks/ComboboxSeparator.js +29 -0
- package/dist/es/chunks/ConfigProvider.js +6 -0
- package/dist/es/chunks/DialogClose.js +35 -0
- package/dist/es/chunks/DialogDescription.js +32 -0
- package/dist/es/chunks/DialogPortal.js +503 -0
- package/dist/es/chunks/DialogRoot.js +69 -0
- package/dist/es/chunks/DialogTitle.js +32 -0
- package/dist/es/chunks/DialogTrigger.js +51 -0
- package/dist/es/chunks/DismissableLayer.js +280 -0
- package/dist/es/chunks/DropdownMenuPortal.js +67 -0
- package/dist/es/chunks/DropdownMenuRoot.js +75 -0
- package/dist/es/chunks/FocusScope.js +356 -0
- package/dist/es/chunks/Label.js +36 -0
- package/dist/es/chunks/MenuAnchor.js +31 -0
- package/dist/es/chunks/MenuContentImpl.js +359 -0
- package/dist/es/chunks/MenuGroup.js +32 -0
- package/dist/es/chunks/MenuItemImpl.js +94 -0
- package/dist/es/chunks/MenuRoot.js +84 -0
- package/dist/es/chunks/MenuSub.js +56 -0
- package/dist/es/chunks/PaginationRoot.js +89 -0
- package/dist/es/chunks/PinInputRoot.js +141 -0
- package/dist/es/chunks/PopoverRoot.js +61 -0
- package/dist/es/chunks/PopperAnchor.js +42 -0
- package/dist/es/chunks/PopperArrow.js +146 -0
- package/dist/es/chunks/PopperContent.js +2089 -0
- package/dist/es/chunks/PopperRoot.js +20 -0
- package/dist/es/chunks/Presence.js +182 -0
- package/dist/es/chunks/Primitive.js +62 -0
- package/dist/es/chunks/ProgressIndicator.js +149 -0
- package/dist/es/chunks/RadioGroupRoot.js +131 -0
- package/dist/es/chunks/RovingFocusGroup.js +134 -0
- package/dist/es/chunks/RovingFocusItem.js +108 -0
- package/dist/es/chunks/SelectGroup.js +32 -0
- package/dist/es/chunks/SelectItemAlignedPosition.js +563 -0
- package/dist/es/chunks/TabsRoot.js +102 -0
- package/dist/es/chunks/Teleport.js +45 -0
- package/dist/es/chunks/ToggleGroupRoot.js +176 -0
- package/dist/es/chunks/TooltipProvider.js +75 -0
- package/dist/es/chunks/TooltipRoot.js +127 -0
- package/dist/es/chunks/VisuallyHidden.js +59 -0
- package/dist/es/chunks/VisuallyHiddenInput.js +140 -0
- package/dist/es/chunks/alert.js +1 -1
- package/dist/es/chunks/badge.js +1 -1
- package/dist/es/chunks/button.js +3 -3
- package/dist/es/chunks/checkbox-card.js +9 -8
- package/dist/es/chunks/checkbox-label.js +10 -9
- package/dist/es/chunks/checkbox.js +234 -10
- package/dist/es/chunks/clamp.js +64 -0
- package/dist/es/chunks/collapsible-content.js +105 -3
- package/dist/es/chunks/collapsible-trigger.js +50 -2
- package/dist/es/chunks/collapsible.js +5 -3
- package/dist/es/chunks/color-area.js +3 -3
- package/dist/es/chunks/color-picker.js +13 -13
- package/dist/es/chunks/color-swatch.js +2 -2
- package/dist/es/chunks/combobox-anchor.js +45 -4
- package/dist/es/chunks/combobox-empty.js +30 -4
- package/dist/es/chunks/combobox-group.js +5 -4
- package/dist/es/chunks/combobox-input.js +6 -5
- package/dist/es/chunks/combobox-item.js +7 -6
- package/dist/es/chunks/combobox-list.js +104 -8
- package/dist/es/chunks/combobox-root.js +21 -18
- package/dist/es/chunks/combobox-separator.js +3 -3
- package/dist/es/chunks/combobox-trigger.js +63 -5
- package/dist/es/chunks/combobox.js +38 -31
- package/dist/es/chunks/compact-button.js +3 -3
- package/dist/es/chunks/components.js +46 -46
- package/dist/es/chunks/content-divider.js +87 -3
- package/dist/es/chunks/core.js +2 -2
- package/dist/es/chunks/counter-input.js +884 -9
- package/dist/es/chunks/createContext.js +32 -0
- package/dist/es/chunks/digit-input-group.js +5 -4
- package/dist/es/chunks/digit-input-slot.js +242 -5
- package/dist/es/chunks/digit-input.js +7 -6
- package/dist/es/chunks/dist.js +486 -11478
- package/dist/es/chunks/dropdown-menu-content.js +541 -6
- package/dist/es/chunks/dropdown-menu-group.js +29 -4
- package/dist/es/chunks/dropdown-menu-item.js +125 -5
- package/dist/es/chunks/dropdown-menu-label.js +58 -5
- package/dist/es/chunks/dropdown-menu-separator.js +56 -4
- package/dist/es/chunks/dropdown-menu-sub-content.js +294 -6
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +192 -5
- package/dist/es/chunks/dropdown-menu-sub.js +40 -4
- package/dist/es/chunks/dropdown-menu-trigger.js +90 -5
- package/dist/es/chunks/dropdown-menu.js +5 -4
- package/dist/es/chunks/extra-settings.js +4 -4
- package/dist/es/chunks/fancy-button.js +3 -3
- package/dist/es/chunks/file-upload-area.js +1 -1
- package/dist/es/chunks/getActiveElement.js +9 -0
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +13 -0
- package/dist/es/chunks/hint-text.js +1 -1
- package/dist/es/chunks/isValueEqualOrExist.js +19 -0
- package/dist/es/chunks/{label.js → label2.js} +15 -9
- package/dist/es/chunks/link-bubble.js +6 -6
- package/dist/es/chunks/link-button.js +3 -3
- package/dist/es/chunks/menus.js +2 -2
- package/dist/es/chunks/modal-close.js +2 -2
- package/dist/es/chunks/modal-content.js +7 -7
- package/dist/es/chunks/modal-header.js +7 -5
- package/dist/es/chunks/modal-trigger.js +2 -2
- package/dist/es/chunks/modal.js +6 -4
- package/dist/es/chunks/nullish.js +6 -0
- package/dist/es/chunks/ohash.D__AXeF1.js +109 -0
- package/dist/es/chunks/pagination-content.js +85 -4
- package/dist/es/chunks/pagination-ellipsis.js +29 -4
- package/dist/es/chunks/pagination-first.js +39 -4
- package/dist/es/chunks/pagination-item.js +51 -3
- package/dist/es/chunks/pagination-last.js +39 -4
- package/dist/es/chunks/pagination-next.js +39 -4
- package/dist/es/chunks/pagination-previous.js +39 -4
- package/dist/es/chunks/pagination.js +5 -4
- package/dist/es/chunks/popover-content.js +704 -8
- package/dist/es/chunks/popover-trigger.js +61 -4
- package/dist/es/chunks/popover.js +4 -3
- package/dist/es/chunks/progress-bar.js +6 -5
- package/dist/es/chunks/progress-circle.js +6 -5
- package/dist/es/chunks/radio-group-card.js +9 -8
- package/dist/es/chunks/radio-group-item.js +304 -7
- package/dist/es/chunks/radio-group-label.js +10 -9
- package/dist/es/chunks/radio-group.js +6 -5
- package/dist/es/chunks/rich-editor.js +5 -5
- package/dist/es/chunks/scroll-area.js +141 -7
- package/dist/es/chunks/scroll-bar.js +883 -6
- package/dist/es/chunks/segmented-control-item.js +162 -4
- package/dist/es/chunks/segmented-control.js +7 -4
- package/dist/es/chunks/select-content.js +319 -7
- package/dist/es/chunks/select-group.js +2 -2
- package/dist/es/chunks/select-item.js +226 -6
- package/dist/es/chunks/select-label.js +33 -3
- package/dist/es/chunks/select-separator.js +27 -4
- package/dist/es/chunks/select-trigger.js +164 -5
- package/dist/es/chunks/select-value.js +64 -4
- package/dist/es/chunks/select.js +8 -4
- package/dist/es/chunks/sheet-close.js +3 -3
- package/dist/es/chunks/sheet-content.js +8 -7
- package/dist/es/chunks/sheet-description.js +3 -3
- package/dist/es/chunks/sheet-footer.js +1 -1
- package/dist/es/chunks/sheet-header.js +1 -1
- package/dist/es/chunks/sheet-title.js +3 -3
- package/dist/es/chunks/sheet-trigger.js +2 -2
- package/dist/es/chunks/sheet.js +6 -4
- package/dist/es/chunks/sidebar-element.js +2 -2
- package/dist/es/chunks/sidebar-group-label.js +2 -2
- package/dist/es/chunks/sidebar-menu-action.js +2 -2
- package/dist/es/chunks/sidebar-menu-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
- package/dist/es/chunks/slider.js +751 -8
- package/dist/es/chunks/social-button.js +3 -3
- package/dist/es/chunks/sonner-alert.js +1 -1
- package/dist/es/chunks/status-badge.js +1 -1
- package/dist/es/chunks/switch.js +192 -10
- package/dist/es/chunks/tab-menu-content.js +81 -4
- package/dist/es/chunks/tab-menu-item.js +89 -5
- package/dist/es/chunks/tab-menu-list.js +60 -4
- package/dist/es/chunks/tab-menu.js +6 -4
- package/dist/es/chunks/table-body.js +1 -1
- package/dist/es/chunks/table-caption.js +1 -1
- package/dist/es/chunks/table-cell.js +1 -1
- package/dist/es/chunks/table-footer.js +1 -1
- package/dist/es/chunks/table-head.js +1 -1
- package/dist/es/chunks/table-row.js +1 -1
- package/dist/es/chunks/table.js +1 -1
- package/dist/es/chunks/table2.js +1 -1
- package/dist/es/chunks/tag.js +3 -3
- package/dist/es/chunks/text-input-button.js +11 -5
- package/dist/es/chunks/text-input.js +8 -8
- package/dist/es/chunks/textarea.js +1 -1
- package/dist/es/chunks/tooltip-content.js +589 -8
- package/dist/es/chunks/tooltip-provider.js +4 -3
- package/dist/es/chunks/tooltip-root.js +4 -3
- package/dist/es/chunks/tooltip-trigger.js +109 -4
- package/dist/es/chunks/tooltip.js +7 -5
- package/dist/es/chunks/useArrowNavigation.js +60 -0
- package/dist/es/chunks/useComposing.js +21 -0
- package/dist/es/chunks/useDirection.js +14 -0
- package/dist/es/chunks/useEmitAsProps.js +28 -0
- package/dist/es/chunks/useFocusGuards.js +34 -0
- package/dist/es/chunks/useFormControl.js +8 -0
- package/dist/es/chunks/useForwardExpose.js +58 -0
- package/dist/es/chunks/useForwardProps.js +34 -0
- package/dist/es/chunks/useForwardPropsEmits.js +14 -0
- package/dist/es/chunks/useForwardScopeId.js +25 -0
- package/dist/es/chunks/useHideOthers.js +132 -0
- package/dist/es/chunks/useId.js +23 -0
- package/dist/es/chunks/useKbd.js +41 -0
- package/dist/es/chunks/useNonce.js +9 -0
- package/dist/es/chunks/usePrimitiveElement.js +12 -0
- package/dist/es/chunks/useSize.js +49 -0
- package/dist/es/chunks/useTypeahead.js +64 -0
- package/dist/es/chunks/utils.js +58 -0
- package/dist/es/chunks/utils2.js +44 -0
- package/dist/es/chunks/utils3.js +9 -0
- package/dist/es/command-group.js +5 -4
- package/dist/es/command-input.js +8 -6
- package/dist/es/command-item.js +5 -3
- package/dist/es/command-list.js +13 -7
- package/dist/es/command-root.js +19 -16
- package/dist/es/command-separator.js +3 -3
- package/dist/es/config.js +1 -1
- package/dist/es/index.js +46 -46
- package/dist/es/label.js +1 -1
- package/dist/es/use-sidebar.js +2 -2
- package/dist/utils/sonner.d.ts +1 -1
- package/package.json +11 -11
- package/src/components/alert/alert.vue +8 -10
- package/src/components/badge/badge.vue +7 -9
- package/src/components/badge/status-badge.vue +10 -11
- package/src/components/button/button.vue +9 -10
- package/src/components/button/compact-button.vue +8 -9
- package/src/components/button/fancy-button.vue +10 -11
- package/src/components/button/link-button.vue +8 -9
- package/src/components/button/social-button.vue +5 -7
- package/src/components/checkbox/checkbox-card.vue +2 -2
- package/src/components/checkbox/checkbox-label.vue +2 -1
- package/src/components/checkbox/checkbox.vue +2 -2
- package/src/components/checkbox/stories/checkbox.stories.ts +4 -5
- package/src/components/collapsible/collapsible-content.vue +4 -6
- package/src/components/collapsible/collapsible-trigger.vue +4 -6
- package/src/components/collapsible/collapsible.vue +4 -6
- package/src/components/color-picker/alpha-slider.vue +8 -10
- package/src/components/color-picker/color-area.vue +8 -10
- package/src/components/color-picker/color-picker.vue +43 -43
- package/src/components/color-picker/color-swatch.vue +11 -13
- package/src/components/color-picker/composable/use-color-model.ts +2 -1
- package/src/components/color-picker/composable/use-user-select.ts +2 -1
- package/src/components/combobox/combobox-anchor.vue +4 -3
- package/src/components/combobox/combobox-empty.vue +4 -3
- package/src/components/combobox/combobox-group.vue +5 -4
- package/src/components/combobox/combobox-input.vue +6 -3
- package/src/components/combobox/combobox-item.vue +19 -20
- package/src/components/combobox/combobox-list.vue +7 -6
- package/src/components/combobox/combobox-root.vue +2 -1
- package/src/components/combobox/combobox-separator.vue +4 -3
- package/src/components/combobox/combobox-trigger.vue +25 -23
- package/src/components/combobox/combobox.vue +38 -32
- package/src/components/command/command-group.vue +4 -3
- package/src/components/command/command-input.vue +4 -2
- package/src/components/command/command-item.vue +4 -3
- package/src/components/command/command-list.vue +5 -6
- package/src/components/command/command-root.vue +4 -3
- package/src/components/command/command-separator.vue +4 -3
- package/src/components/content-divider/content-divider.vue +7 -9
- package/src/components/counter-input/counter-input.vue +2 -1
- package/src/components/digit-input/digit-input-group.vue +2 -1
- package/src/components/digit-input/digit-input-slot.vue +2 -1
- package/src/components/digit-input/digit-input.vue +8 -5
- package/src/components/digit-input/stories/digit-input.stories.ts +13 -3
- package/src/components/dropdown-menu/dropdown-menu-content.vue +4 -4
- package/src/components/dropdown-menu/dropdown-menu-group.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-item.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-label.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-separator.vue +3 -2
- package/src/components/dropdown-menu/dropdown-menu-sub-content.vue +4 -4
- package/src/components/dropdown-menu/dropdown-menu-sub-trigger.vue +3 -2
- package/src/components/dropdown-menu/dropdown-menu-sub.vue +3 -3
- package/src/components/dropdown-menu/dropdown-menu-trigger.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu.vue +2 -2
- package/src/components/file-upload/file-upload-area.vue +26 -27
- package/src/components/file-upload/stories/file-upload-area.stories.ts +2 -1
- package/src/components/hint-text/hint-text.vue +4 -6
- package/src/components/label/label.vue +9 -7
- package/src/components/modal/modal-close.vue +2 -1
- package/src/components/modal/modal-content.vue +2 -2
- package/src/components/modal/modal-header.vue +1 -1
- package/src/components/modal/modal-trigger.vue +2 -2
- package/src/components/modal/modal.vue +2 -2
- package/src/components/pagination/pagination-content.vue +6 -7
- package/src/components/pagination/pagination-ellipsis.vue +6 -7
- package/src/components/pagination/pagination-first.vue +6 -7
- package/src/components/pagination/pagination-item.vue +6 -7
- package/src/components/pagination/pagination-last.vue +6 -7
- package/src/components/pagination/pagination-next.vue +6 -7
- package/src/components/pagination/pagination-previous.vue +7 -8
- package/src/components/pagination/pagination.vue +7 -8
- package/src/components/popover/popover-content.vue +19 -20
- package/src/components/popover/popover-trigger.vue +2 -1
- package/src/components/popover/popover.vue +2 -2
- package/src/components/popover/stories/popover.stories.ts +1 -1
- package/src/components/progress/progress-bar.vue +5 -3
- package/src/components/progress/progress-circle.vue +3 -2
- package/src/components/radio-group/radio-group-card.vue +2 -2
- package/src/components/radio-group/radio-group-item.vue +2 -1
- package/src/components/radio-group/radio-group-label.vue +2 -1
- package/src/components/radio-group/radio-group.vue +2 -1
- package/src/components/rich-editor/config.ts +1 -1
- package/src/components/rich-editor/extra-settings.vue +1 -1
- package/src/components/rich-editor/link-bubble.vue +1 -1
- package/src/components/rich-editor/rich-editor.vue +3 -2
- package/src/components/scroll-area/scroll-area.vue +3 -2
- package/src/components/scroll-area/scroll-bar.vue +2 -1
- package/src/components/segmented-control/segmented-control-item.vue +2 -1
- package/src/components/segmented-control/segmented-control.vue +2 -1
- package/src/components/select/select-content.vue +4 -3
- package/src/components/select/select-group.vue +2 -1
- package/src/components/select/select-item.vue +2 -1
- package/src/components/select/select-label.vue +2 -1
- package/src/components/select/select-separator.vue +2 -1
- package/src/components/select/select-trigger.vue +2 -1
- package/src/components/select/select-value.vue +2 -1
- package/src/components/select/select.vue +2 -1
- package/src/components/sheet/sheet-close.vue +4 -6
- package/src/components/sheet/sheet-content.vue +7 -9
- package/src/components/sheet/sheet-description.vue +6 -8
- package/src/components/sheet/sheet-footer.vue +2 -4
- package/src/components/sheet/sheet-header.vue +2 -4
- package/src/components/sheet/sheet-title.vue +6 -8
- package/src/components/sheet/sheet-trigger.vue +4 -6
- package/src/components/sheet/sheet.vue +2 -2
- package/src/components/sidebar/sidebar-element.vue +6 -8
- package/src/components/sidebar/sidebar-footer.vue +2 -4
- package/src/components/sidebar/sidebar-group-label.vue +2 -2
- package/src/components/sidebar/sidebar-header.vue +2 -4
- package/src/components/sidebar/sidebar-menu-action.vue +6 -8
- package/src/components/sidebar/sidebar-menu-badge.vue +6 -8
- package/src/components/sidebar/sidebar-menu-button.vue +2 -2
- package/src/components/sidebar/sidebar-menu-sub-button.vue +8 -10
- package/src/components/sidebar/sidebar-separator.vue +2 -4
- package/src/components/sidebar/sidebar.vue +6 -8
- package/src/components/slider/slider.vue +2 -1
- package/src/components/sonner/sonner-alert.vue +2 -1
- package/src/components/sonner/sonner.vue +4 -5
- package/src/components/switch/stories/switch.stories.ts +3 -3
- package/src/components/switch/switch.vue +2 -1
- package/src/components/tab-menu/tab-menu-content.vue +2 -1
- package/src/components/tab-menu/tab-menu-item.vue +2 -1
- package/src/components/tab-menu/tab-menu-list.vue +2 -1
- package/src/components/tab-menu/tab-menu.vue +2 -2
- package/src/components/table/table-body.vue +2 -4
- package/src/components/table/table-caption.vue +2 -4
- package/src/components/table/table-cell.vue +5 -7
- package/src/components/table/table-empty.vue +5 -7
- package/src/components/table/table-footer.vue +2 -4
- package/src/components/table/table-head.vue +5 -7
- package/src/components/table/table-header.vue +2 -4
- package/src/components/table/table-row.vue +5 -7
- package/src/components/table/table.vue +2 -4
- package/src/components/tag/tag.vue +10 -11
- package/src/components/text-input/text-input-button.vue +3 -2
- package/src/components/text-input/text-input.vue +9 -10
- package/src/components/textarea/textarea.vue +8 -10
- package/src/components/tooltip/tooltip-content.vue +14 -15
- package/src/components/tooltip/tooltip-provider.vue +4 -5
- package/src/components/tooltip/tooltip-root.vue +4 -5
- package/src/components/tooltip/tooltip-trigger.vue +4 -5
- package/src/components/tooltip/tooltip.vue +12 -14
- package/src/composables/use-delegated-props.ts +2 -1
- package/src/composables/use-sidebar.ts +1 -1
- package/src/utils/sonner.ts +2 -1
|
@@ -1,9 +1,888 @@
|
|
|
1
|
-
|
|
1
|
+
require("./chunk.cjs");
|
|
2
2
|
const require_clsx = require("./clsx.cjs");
|
|
3
3
|
const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
|
|
4
|
+
const require_clamp = require("./clamp.cjs");
|
|
5
|
+
const require_createContext = require("./createContext.cjs");
|
|
6
|
+
const require_dist = require("./dist.cjs");
|
|
7
|
+
const require_Primitive = require("./Primitive.cjs");
|
|
8
|
+
const require_useDirection = require("./useDirection.cjs");
|
|
9
|
+
const require_useForwardExpose = require("./useForwardExpose.cjs");
|
|
10
|
+
const require_Presence = require("./Presence.cjs");
|
|
4
11
|
const require_use_delegated_props = require("../use-delegated-props.cjs");
|
|
5
12
|
require("../use-sidebar.cjs");
|
|
6
13
|
let vue = require("vue");
|
|
14
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaRoot.js
|
|
15
|
+
var [injectScrollAreaRootContext, provideScrollAreaRootContext] = /* @__PURE__ */ require_createContext.createContext("ScrollAreaRoot");
|
|
16
|
+
var ScrollAreaRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
17
|
+
__name: "ScrollAreaRoot",
|
|
18
|
+
props: {
|
|
19
|
+
type: {
|
|
20
|
+
type: String,
|
|
21
|
+
required: false,
|
|
22
|
+
default: "hover"
|
|
23
|
+
},
|
|
24
|
+
dir: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
scrollHideDelay: {
|
|
29
|
+
type: Number,
|
|
30
|
+
required: false,
|
|
31
|
+
default: 600
|
|
32
|
+
},
|
|
33
|
+
asChild: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
as: {
|
|
38
|
+
type: null,
|
|
39
|
+
required: false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(__props, { expose: __expose }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const cornerWidth = (0, vue.ref)(0);
|
|
45
|
+
const cornerHeight = (0, vue.ref)(0);
|
|
46
|
+
const viewport = (0, vue.ref)();
|
|
47
|
+
const content = (0, vue.ref)();
|
|
48
|
+
const scrollbarX = (0, vue.ref)();
|
|
49
|
+
const scrollbarY = (0, vue.ref)();
|
|
50
|
+
const scrollbarXEnabled = (0, vue.ref)(false);
|
|
51
|
+
const scrollbarYEnabled = (0, vue.ref)(false);
|
|
52
|
+
const { type, dir: propDir, scrollHideDelay } = (0, vue.toRefs)(props);
|
|
53
|
+
const dir = require_useDirection.useDirection(propDir);
|
|
54
|
+
function scrollTop() {
|
|
55
|
+
viewport.value?.scrollTo({ top: 0 });
|
|
56
|
+
}
|
|
57
|
+
function scrollTopLeft() {
|
|
58
|
+
viewport.value?.scrollTo({
|
|
59
|
+
top: 0,
|
|
60
|
+
left: 0
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
__expose({
|
|
64
|
+
viewport,
|
|
65
|
+
scrollTop,
|
|
66
|
+
scrollTopLeft
|
|
67
|
+
});
|
|
68
|
+
const { forwardRef, currentElement: scrollArea } = require_useForwardExpose.useForwardExpose();
|
|
69
|
+
provideScrollAreaRootContext({
|
|
70
|
+
type,
|
|
71
|
+
dir,
|
|
72
|
+
scrollHideDelay,
|
|
73
|
+
scrollArea,
|
|
74
|
+
viewport,
|
|
75
|
+
onViewportChange: (el) => {
|
|
76
|
+
viewport.value = el || void 0;
|
|
77
|
+
},
|
|
78
|
+
content,
|
|
79
|
+
onContentChange: (el) => {
|
|
80
|
+
content.value = el;
|
|
81
|
+
},
|
|
82
|
+
scrollbarX,
|
|
83
|
+
scrollbarXEnabled,
|
|
84
|
+
scrollbarY,
|
|
85
|
+
scrollbarYEnabled,
|
|
86
|
+
onScrollbarXChange: (scrollbar) => {
|
|
87
|
+
scrollbarX.value = scrollbar || void 0;
|
|
88
|
+
},
|
|
89
|
+
onScrollbarYChange: (scrollbar) => {
|
|
90
|
+
scrollbarY.value = scrollbar || void 0;
|
|
91
|
+
},
|
|
92
|
+
onScrollbarXEnabledChange: (rendered) => {
|
|
93
|
+
scrollbarXEnabled.value = rendered;
|
|
94
|
+
},
|
|
95
|
+
onScrollbarYEnabledChange: (rendered) => {
|
|
96
|
+
scrollbarYEnabled.value = rendered;
|
|
97
|
+
},
|
|
98
|
+
onCornerWidthChange: (width) => {
|
|
99
|
+
cornerWidth.value = width;
|
|
100
|
+
},
|
|
101
|
+
onCornerHeightChange: (height) => {
|
|
102
|
+
cornerHeight.value = height;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
return (_ctx, _cache) => {
|
|
106
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive.Primitive), {
|
|
107
|
+
ref: (0, vue.unref)(forwardRef),
|
|
108
|
+
"as-child": props.asChild,
|
|
109
|
+
as: _ctx.as,
|
|
110
|
+
dir: (0, vue.unref)(dir),
|
|
111
|
+
style: (0, vue.normalizeStyle)({
|
|
112
|
+
position: "relative",
|
|
113
|
+
["--reka-scroll-area-corner-width"]: `${cornerWidth.value}px`,
|
|
114
|
+
["--reka-scroll-area-corner-height"]: `${cornerHeight.value}px`
|
|
115
|
+
})
|
|
116
|
+
}, {
|
|
117
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
118
|
+
_: 3
|
|
119
|
+
}, 8, [
|
|
120
|
+
"as-child",
|
|
121
|
+
"as",
|
|
122
|
+
"dir",
|
|
123
|
+
"style"
|
|
124
|
+
]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/utils.js
|
|
130
|
+
function linearScale(input, output) {
|
|
131
|
+
return (value) => {
|
|
132
|
+
if (input[0] === input[1] || output[0] === output[1]) return output[0];
|
|
133
|
+
const ratio = (output[1] - output[0]) / (input[1] - input[0]);
|
|
134
|
+
return output[0] + ratio * (value - input[0]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
function getThumbSize(sizes) {
|
|
138
|
+
const ratio = getThumbRatio(sizes.viewport, sizes.content);
|
|
139
|
+
const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;
|
|
140
|
+
const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;
|
|
141
|
+
return Math.max(thumbSize, 18);
|
|
142
|
+
}
|
|
143
|
+
function getThumbRatio(viewportSize, contentSize) {
|
|
144
|
+
const ratio = viewportSize / contentSize;
|
|
145
|
+
return Number.isNaN(ratio) ? 0 : ratio;
|
|
146
|
+
}
|
|
147
|
+
function addUnlinkedScrollListener(node, handler = () => {}) {
|
|
148
|
+
let prevPosition = {
|
|
149
|
+
left: node.scrollLeft,
|
|
150
|
+
top: node.scrollTop
|
|
151
|
+
};
|
|
152
|
+
let rAF = 0;
|
|
153
|
+
(function loop() {
|
|
154
|
+
const position = {
|
|
155
|
+
left: node.scrollLeft,
|
|
156
|
+
top: node.scrollTop
|
|
157
|
+
};
|
|
158
|
+
const isHorizontalScroll = prevPosition.left !== position.left;
|
|
159
|
+
const isVerticalScroll = prevPosition.top !== position.top;
|
|
160
|
+
if (isHorizontalScroll || isVerticalScroll) handler();
|
|
161
|
+
prevPosition = position;
|
|
162
|
+
rAF = window.requestAnimationFrame(loop);
|
|
163
|
+
})();
|
|
164
|
+
return () => window.cancelAnimationFrame(rAF);
|
|
165
|
+
}
|
|
166
|
+
function getThumbOffsetFromScroll(scrollPos, sizes, dir = "ltr") {
|
|
167
|
+
const thumbSizePx = getThumbSize(sizes);
|
|
168
|
+
const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;
|
|
169
|
+
const scrollbar = sizes.scrollbar.size - scrollbarPadding;
|
|
170
|
+
const maxScrollPos = sizes.content - sizes.viewport;
|
|
171
|
+
const maxThumbPos = scrollbar - thumbSizePx;
|
|
172
|
+
const scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
173
|
+
const scrollWithoutMomentum = require_clamp.clamp(scrollPos, scrollClampRange[0], scrollClampRange[1]);
|
|
174
|
+
return linearScale([0, maxScrollPos], [0, maxThumbPos])(scrollWithoutMomentum);
|
|
175
|
+
}
|
|
176
|
+
function toInt(value) {
|
|
177
|
+
return value ? Number.parseInt(value, 10) : 0;
|
|
178
|
+
}
|
|
179
|
+
function getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = "ltr") {
|
|
180
|
+
const thumbSizePx = getThumbSize(sizes);
|
|
181
|
+
const thumbCenter = thumbSizePx / 2;
|
|
182
|
+
const offset = pointerOffset || thumbCenter;
|
|
183
|
+
const thumbOffsetFromEnd = thumbSizePx - offset;
|
|
184
|
+
const minPointerPos = sizes.scrollbar.paddingStart + offset;
|
|
185
|
+
const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;
|
|
186
|
+
const maxScrollPos = sizes.content - sizes.viewport;
|
|
187
|
+
const scrollRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
188
|
+
return linearScale([minPointerPos, maxPointerPos], scrollRange)(pointerPos);
|
|
189
|
+
}
|
|
190
|
+
function isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {
|
|
191
|
+
return scrollPos > 0 && scrollPos < maxScrollPos;
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarX.js
|
|
195
|
+
var ScrollAreaScrollbarX_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
196
|
+
__name: "ScrollAreaScrollbarX",
|
|
197
|
+
setup(__props) {
|
|
198
|
+
const rootContext = injectScrollAreaRootContext();
|
|
199
|
+
const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
|
|
200
|
+
const { forwardRef, currentElement: scrollbarElement } = require_useForwardExpose.useForwardExpose();
|
|
201
|
+
(0, vue.onMounted)(() => {
|
|
202
|
+
if (scrollbarElement.value) rootContext.onScrollbarXChange(scrollbarElement.value);
|
|
203
|
+
});
|
|
204
|
+
(0, vue.onUnmounted)(() => {
|
|
205
|
+
rootContext.onScrollbarXChange(null);
|
|
206
|
+
});
|
|
207
|
+
const sizes = (0, vue.computed)(() => scrollbarVisibleContext.sizes.value);
|
|
208
|
+
return (_ctx, _cache) => {
|
|
209
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarImpl_default, {
|
|
210
|
+
ref: (0, vue.unref)(forwardRef),
|
|
211
|
+
"is-horizontal": true,
|
|
212
|
+
"data-orientation": "horizontal",
|
|
213
|
+
style: (0, vue.normalizeStyle)({
|
|
214
|
+
bottom: 0,
|
|
215
|
+
left: (0, vue.unref)(rootContext).dir.value === "rtl" ? "var(--reka-scroll-area-corner-width)" : 0,
|
|
216
|
+
right: (0, vue.unref)(rootContext).dir.value === "ltr" ? "var(--reka-scroll-area-corner-width)" : 0,
|
|
217
|
+
["--reka-scroll-area-thumb-width"]: sizes.value ? `${(0, vue.unref)(getThumbSize)(sizes.value)}px` : void 0
|
|
218
|
+
}),
|
|
219
|
+
onOnDragScroll: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(scrollbarVisibleContext).onDragScroll($event.x))
|
|
220
|
+
}, {
|
|
221
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
222
|
+
_: 3
|
|
223
|
+
}, 8, ["style"]);
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarY.js
|
|
229
|
+
var ScrollAreaScrollbarY_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
230
|
+
__name: "ScrollAreaScrollbarY",
|
|
231
|
+
setup(__props) {
|
|
232
|
+
const rootContext = injectScrollAreaRootContext();
|
|
233
|
+
const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
|
|
234
|
+
const { forwardRef, currentElement: scrollbarElement } = require_useForwardExpose.useForwardExpose();
|
|
235
|
+
(0, vue.onMounted)(() => {
|
|
236
|
+
if (scrollbarElement.value) rootContext.onScrollbarYChange(scrollbarElement.value);
|
|
237
|
+
});
|
|
238
|
+
(0, vue.onUnmounted)(() => {
|
|
239
|
+
rootContext.onScrollbarYChange(null);
|
|
240
|
+
});
|
|
241
|
+
const sizes = (0, vue.computed)(() => scrollbarVisibleContext.sizes.value);
|
|
242
|
+
return (_ctx, _cache) => {
|
|
243
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarImpl_default, {
|
|
244
|
+
ref: (0, vue.unref)(forwardRef),
|
|
245
|
+
"is-horizontal": false,
|
|
246
|
+
"data-orientation": "vertical",
|
|
247
|
+
style: (0, vue.normalizeStyle)({
|
|
248
|
+
top: 0,
|
|
249
|
+
right: (0, vue.unref)(rootContext).dir.value === "ltr" ? 0 : void 0,
|
|
250
|
+
left: (0, vue.unref)(rootContext).dir.value === "rtl" ? 0 : void 0,
|
|
251
|
+
bottom: "var(--reka-scroll-area-corner-height)",
|
|
252
|
+
["--reka-scroll-area-thumb-height"]: sizes.value ? `${(0, vue.unref)(getThumbSize)(sizes.value)}px` : void 0
|
|
253
|
+
}),
|
|
254
|
+
onOnDragScroll: _cache[0] || (_cache[0] = ($event) => (0, vue.unref)(scrollbarVisibleContext).onDragScroll($event.y))
|
|
255
|
+
}, {
|
|
256
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
257
|
+
_: 3
|
|
258
|
+
}, 8, ["style"]);
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarAuto.js
|
|
264
|
+
var ScrollAreaScrollbarAuto_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
265
|
+
__name: "ScrollAreaScrollbarAuto",
|
|
266
|
+
props: { forceMount: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
required: false
|
|
269
|
+
} },
|
|
270
|
+
setup(__props) {
|
|
271
|
+
const rootContext = injectScrollAreaRootContext();
|
|
272
|
+
const scrollbarContext = injectScrollAreaScrollbarContext();
|
|
273
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
274
|
+
const visible = (0, vue.ref)(false);
|
|
275
|
+
const handleResize = require_dist.useDebounceFn(() => {
|
|
276
|
+
if (rootContext.viewport.value) {
|
|
277
|
+
const isOverflowX = rootContext.viewport.value.offsetWidth < rootContext.viewport.value.scrollWidth;
|
|
278
|
+
const isOverflowY = rootContext.viewport.value.offsetHeight < rootContext.viewport.value.scrollHeight;
|
|
279
|
+
visible.value = scrollbarContext.isHorizontal.value ? isOverflowX : isOverflowY;
|
|
280
|
+
}
|
|
281
|
+
}, 10);
|
|
282
|
+
(0, vue.onMounted)(() => handleResize());
|
|
283
|
+
require_dist.useResizeObserver(rootContext.viewport, handleResize);
|
|
284
|
+
require_dist.useResizeObserver(rootContext.content, handleResize);
|
|
285
|
+
return (_ctx, _cache) => {
|
|
286
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Presence.Presence_default), { present: _ctx.forceMount || visible.value }, {
|
|
287
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ScrollAreaScrollbarVisible_default, (0, vue.mergeProps)(_ctx.$attrs, {
|
|
288
|
+
ref: (0, vue.unref)(forwardRef),
|
|
289
|
+
"data-state": visible.value ? "visible" : "hidden"
|
|
290
|
+
}), {
|
|
291
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
292
|
+
_: 3
|
|
293
|
+
}, 16, ["data-state"])]),
|
|
294
|
+
_: 3
|
|
295
|
+
}, 8, ["present"]);
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarGlimpse.js
|
|
301
|
+
var ScrollAreaScrollbarGlimpse_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
302
|
+
inheritAttrs: false,
|
|
303
|
+
__name: "ScrollAreaScrollbarGlimpse",
|
|
304
|
+
props: { forceMount: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
required: false
|
|
307
|
+
} },
|
|
308
|
+
setup(__props) {
|
|
309
|
+
const rootContext = injectScrollAreaRootContext();
|
|
310
|
+
const scrollbarContext = injectScrollAreaScrollbarContext();
|
|
311
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
312
|
+
const { state, dispatch } = require_Presence.useStateMachine("hidden", {
|
|
313
|
+
hidden: {
|
|
314
|
+
POINTER_ENTER: "glimpse",
|
|
315
|
+
SCROLL: "scrolling"
|
|
316
|
+
},
|
|
317
|
+
glimpse: {
|
|
318
|
+
HIDE: "hidden",
|
|
319
|
+
POINTER_LEAVE: "hidden",
|
|
320
|
+
SCROLL: "scrolling",
|
|
321
|
+
POINTER_ENTER: "glimpse"
|
|
322
|
+
},
|
|
323
|
+
scrolling: {
|
|
324
|
+
SCROLL_END: "idle",
|
|
325
|
+
POINTER_ENTER: "interacting"
|
|
326
|
+
},
|
|
327
|
+
interacting: {
|
|
328
|
+
SCROLL: "interacting",
|
|
329
|
+
POINTER_LEAVE: "idle"
|
|
330
|
+
},
|
|
331
|
+
idle: {
|
|
332
|
+
HIDE: "hidden",
|
|
333
|
+
SCROLL: "scrolling",
|
|
334
|
+
POINTER_ENTER: "interacting"
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
const visible = (0, vue.computed)(() => state.value !== "hidden");
|
|
338
|
+
function handlePointerEnter() {
|
|
339
|
+
dispatch("POINTER_ENTER");
|
|
340
|
+
}
|
|
341
|
+
function handlePointerLeave() {
|
|
342
|
+
dispatch("POINTER_LEAVE");
|
|
343
|
+
}
|
|
344
|
+
const debounceScrollEnd = require_dist.useDebounceFn(() => dispatch("SCROLL_END"), 100);
|
|
345
|
+
(0, vue.watchEffect)((onCleanup) => {
|
|
346
|
+
if (state.value === "glimpse") {
|
|
347
|
+
const timeId = window.setTimeout(dispatch, rootContext.scrollHideDelay.value, "HIDE");
|
|
348
|
+
onCleanup(() => {
|
|
349
|
+
window.clearTimeout(timeId);
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
(0, vue.watchEffect)((onCleanup) => {
|
|
354
|
+
if (state.value === "idle") {
|
|
355
|
+
const timeId = window.setTimeout(dispatch, rootContext.scrollHideDelay.value, "HIDE");
|
|
356
|
+
onCleanup(() => {
|
|
357
|
+
window.clearTimeout(timeId);
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
(0, vue.watchEffect)((onCleanup) => {
|
|
362
|
+
const viewport = rootContext.viewport.value;
|
|
363
|
+
const scrollDirection = scrollbarContext.isHorizontal.value ? "scrollLeft" : "scrollTop";
|
|
364
|
+
if (viewport) {
|
|
365
|
+
let prevScrollPos = viewport[scrollDirection];
|
|
366
|
+
const handleScroll = () => {
|
|
367
|
+
const scrollPos = viewport[scrollDirection];
|
|
368
|
+
if (prevScrollPos !== scrollPos) {
|
|
369
|
+
dispatch("SCROLL");
|
|
370
|
+
debounceScrollEnd();
|
|
371
|
+
}
|
|
372
|
+
prevScrollPos = scrollPos;
|
|
373
|
+
};
|
|
374
|
+
viewport.addEventListener("scroll", handleScroll);
|
|
375
|
+
onCleanup(() => {
|
|
376
|
+
viewport.removeEventListener("scroll", handleScroll);
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
(0, vue.onMounted)(() => {
|
|
381
|
+
const scrollArea = rootContext.scrollArea.value;
|
|
382
|
+
if (scrollArea) {
|
|
383
|
+
scrollArea.addEventListener("pointerenter", handlePointerEnter);
|
|
384
|
+
scrollArea.addEventListener("pointerleave", handlePointerLeave);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
(0, vue.onUnmounted)(() => {
|
|
388
|
+
const scrollArea = rootContext.scrollArea.value;
|
|
389
|
+
if (scrollArea) {
|
|
390
|
+
scrollArea.removeEventListener("pointerenter", handlePointerEnter);
|
|
391
|
+
scrollArea.removeEventListener("pointerleave", handlePointerLeave);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
return (_ctx, _cache) => {
|
|
395
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Presence.Presence_default), { present: _ctx.forceMount || visible.value }, {
|
|
396
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ScrollAreaScrollbarAuto_default, (0, vue.mergeProps)(_ctx.$attrs, {
|
|
397
|
+
ref: (0, vue.unref)(forwardRef),
|
|
398
|
+
"data-state": visible.value ? "visible" : "hidden"
|
|
399
|
+
}), {
|
|
400
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
401
|
+
_: 3
|
|
402
|
+
}, 16, ["data-state"])]),
|
|
403
|
+
_: 3
|
|
404
|
+
}, 8, ["present"]);
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarHover.js
|
|
410
|
+
var ScrollAreaScrollbarHover_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
411
|
+
inheritAttrs: false,
|
|
412
|
+
__name: "ScrollAreaScrollbarHover",
|
|
413
|
+
props: { forceMount: {
|
|
414
|
+
type: Boolean,
|
|
415
|
+
required: false
|
|
416
|
+
} },
|
|
417
|
+
setup(__props) {
|
|
418
|
+
const rootContext = injectScrollAreaRootContext();
|
|
419
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
420
|
+
let timeout;
|
|
421
|
+
const visible = (0, vue.ref)(false);
|
|
422
|
+
function handlePointerEnter() {
|
|
423
|
+
window.clearTimeout(timeout);
|
|
424
|
+
visible.value = true;
|
|
425
|
+
}
|
|
426
|
+
function handlePointerLeave() {
|
|
427
|
+
timeout = window.setTimeout(() => {
|
|
428
|
+
visible.value = false;
|
|
429
|
+
}, rootContext.scrollHideDelay.value);
|
|
430
|
+
}
|
|
431
|
+
(0, vue.onMounted)(() => {
|
|
432
|
+
const scrollArea = rootContext.scrollArea.value;
|
|
433
|
+
if (scrollArea) {
|
|
434
|
+
scrollArea.addEventListener("pointerenter", handlePointerEnter);
|
|
435
|
+
scrollArea.addEventListener("pointerleave", handlePointerLeave);
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
(0, vue.onUnmounted)(() => {
|
|
439
|
+
const scrollArea = rootContext.scrollArea.value;
|
|
440
|
+
if (scrollArea) {
|
|
441
|
+
window.clearTimeout(timeout);
|
|
442
|
+
scrollArea.removeEventListener("pointerenter", handlePointerEnter);
|
|
443
|
+
scrollArea.removeEventListener("pointerleave", handlePointerLeave);
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
return (_ctx, _cache) => {
|
|
447
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Presence.Presence_default), { present: _ctx.forceMount || visible.value }, {
|
|
448
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ScrollAreaScrollbarAuto_default, (0, vue.mergeProps)(_ctx.$attrs, {
|
|
449
|
+
ref: (0, vue.unref)(forwardRef),
|
|
450
|
+
"data-state": visible.value ? "visible" : "hidden"
|
|
451
|
+
}), {
|
|
452
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
453
|
+
_: 3
|
|
454
|
+
}, 16, ["data-state"])]),
|
|
455
|
+
_: 3
|
|
456
|
+
}, 8, ["present"]);
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarScroll.js
|
|
462
|
+
var ScrollAreaScrollbarScroll_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
463
|
+
__name: "ScrollAreaScrollbarScroll",
|
|
464
|
+
props: { forceMount: {
|
|
465
|
+
type: Boolean,
|
|
466
|
+
required: false
|
|
467
|
+
} },
|
|
468
|
+
setup(__props) {
|
|
469
|
+
const rootContext = injectScrollAreaRootContext();
|
|
470
|
+
const scrollbarContext = injectScrollAreaScrollbarContext();
|
|
471
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
472
|
+
const { state, dispatch } = require_Presence.useStateMachine("hidden", {
|
|
473
|
+
hidden: { SCROLL: "scrolling" },
|
|
474
|
+
scrolling: {
|
|
475
|
+
SCROLL_END: "idle",
|
|
476
|
+
POINTER_ENTER: "interacting"
|
|
477
|
+
},
|
|
478
|
+
interacting: {
|
|
479
|
+
SCROLL: "interacting",
|
|
480
|
+
POINTER_LEAVE: "idle"
|
|
481
|
+
},
|
|
482
|
+
idle: {
|
|
483
|
+
HIDE: "hidden",
|
|
484
|
+
SCROLL: "scrolling",
|
|
485
|
+
POINTER_ENTER: "interacting"
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
const visible = (0, vue.computed)(() => state.value !== "hidden");
|
|
489
|
+
(0, vue.watchEffect)((onCleanup) => {
|
|
490
|
+
if (state.value === "idle") {
|
|
491
|
+
const timeId = window.setTimeout(dispatch, rootContext.scrollHideDelay.value, "HIDE");
|
|
492
|
+
onCleanup(() => {
|
|
493
|
+
window.clearTimeout(timeId);
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
const debounceScrollEnd = require_dist.useDebounceFn(() => dispatch("SCROLL_END"), 100);
|
|
498
|
+
(0, vue.watchEffect)((onCleanup) => {
|
|
499
|
+
const viewport = rootContext.viewport.value;
|
|
500
|
+
const scrollDirection = scrollbarContext.isHorizontal.value ? "scrollLeft" : "scrollTop";
|
|
501
|
+
if (viewport) {
|
|
502
|
+
let prevScrollPos = viewport[scrollDirection];
|
|
503
|
+
const handleScroll = () => {
|
|
504
|
+
const scrollPos = viewport[scrollDirection];
|
|
505
|
+
if (prevScrollPos !== scrollPos) {
|
|
506
|
+
dispatch("SCROLL");
|
|
507
|
+
debounceScrollEnd();
|
|
508
|
+
}
|
|
509
|
+
prevScrollPos = scrollPos;
|
|
510
|
+
};
|
|
511
|
+
viewport.addEventListener("scroll", handleScroll);
|
|
512
|
+
onCleanup(() => {
|
|
513
|
+
viewport.removeEventListener("scroll", handleScroll);
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
return (_ctx, _cache) => {
|
|
518
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Presence.Presence_default), { present: _ctx.forceMount || visible.value }, {
|
|
519
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(ScrollAreaScrollbarVisible_default, (0, vue.mergeProps)(_ctx.$attrs, {
|
|
520
|
+
ref: (0, vue.unref)(forwardRef),
|
|
521
|
+
"data-state": visible.value ? "visible" : "hidden"
|
|
522
|
+
}), {
|
|
523
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
524
|
+
_: 3
|
|
525
|
+
}, 16, ["data-state"])]),
|
|
526
|
+
_: 3
|
|
527
|
+
}, 8, ["present"]);
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbar.js
|
|
533
|
+
var [injectScrollAreaScrollbarContext, provideScrollAreaScrollbarContext] = /* @__PURE__ */ require_createContext.createContext("ScrollAreaScrollbar");
|
|
534
|
+
var ScrollAreaScrollbar_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
535
|
+
inheritAttrs: false,
|
|
536
|
+
__name: "ScrollAreaScrollbar",
|
|
537
|
+
props: {
|
|
538
|
+
orientation: {
|
|
539
|
+
type: String,
|
|
540
|
+
required: false,
|
|
541
|
+
default: "vertical"
|
|
542
|
+
},
|
|
543
|
+
forceMount: {
|
|
544
|
+
type: Boolean,
|
|
545
|
+
required: false
|
|
546
|
+
},
|
|
547
|
+
asChild: {
|
|
548
|
+
type: Boolean,
|
|
549
|
+
required: false
|
|
550
|
+
},
|
|
551
|
+
as: {
|
|
552
|
+
type: null,
|
|
553
|
+
required: false,
|
|
554
|
+
default: "div"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
setup(__props) {
|
|
558
|
+
const props = __props;
|
|
559
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
560
|
+
const rootContext = injectScrollAreaRootContext();
|
|
561
|
+
const isHorizontal = (0, vue.computed)(() => props.orientation === "horizontal");
|
|
562
|
+
(0, vue.watch)(isHorizontal, () => {
|
|
563
|
+
if (isHorizontal.value) rootContext.onScrollbarXEnabledChange(true);
|
|
564
|
+
else rootContext.onScrollbarYEnabledChange(true);
|
|
565
|
+
}, { immediate: true });
|
|
566
|
+
(0, vue.onUnmounted)(() => {
|
|
567
|
+
rootContext.onScrollbarXEnabledChange(false);
|
|
568
|
+
rootContext.onScrollbarYEnabledChange(false);
|
|
569
|
+
});
|
|
570
|
+
const { orientation, forceMount, asChild, as } = (0, vue.toRefs)(props);
|
|
571
|
+
provideScrollAreaScrollbarContext({
|
|
572
|
+
orientation,
|
|
573
|
+
forceMount,
|
|
574
|
+
isHorizontal,
|
|
575
|
+
as,
|
|
576
|
+
asChild
|
|
577
|
+
});
|
|
578
|
+
return (_ctx, _cache) => {
|
|
579
|
+
return (0, vue.unref)(rootContext).type.value === "hover" ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarHover_default, (0, vue.mergeProps)({ key: 0 }, _ctx.$attrs, {
|
|
580
|
+
ref: (0, vue.unref)(forwardRef),
|
|
581
|
+
"force-mount": (0, vue.unref)(forceMount)
|
|
582
|
+
}), {
|
|
583
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
584
|
+
_: 3
|
|
585
|
+
}, 16, ["force-mount"])) : (0, vue.unref)(rootContext).type.value === "scroll" ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarScroll_default, (0, vue.mergeProps)({ key: 1 }, _ctx.$attrs, {
|
|
586
|
+
ref: (0, vue.unref)(forwardRef),
|
|
587
|
+
"force-mount": (0, vue.unref)(forceMount)
|
|
588
|
+
}), {
|
|
589
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
590
|
+
_: 3
|
|
591
|
+
}, 16, ["force-mount"])) : (0, vue.unref)(rootContext).type.value === "glimpse" ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarGlimpse_default, (0, vue.mergeProps)({ key: 2 }, _ctx.$attrs, {
|
|
592
|
+
ref: (0, vue.unref)(forwardRef),
|
|
593
|
+
"force-mount": (0, vue.unref)(forceMount)
|
|
594
|
+
}), {
|
|
595
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
596
|
+
_: 3
|
|
597
|
+
}, 16, ["force-mount"])) : (0, vue.unref)(rootContext).type.value === "auto" ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarAuto_default, (0, vue.mergeProps)({ key: 3 }, _ctx.$attrs, {
|
|
598
|
+
ref: (0, vue.unref)(forwardRef),
|
|
599
|
+
"force-mount": (0, vue.unref)(forceMount)
|
|
600
|
+
}), {
|
|
601
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
602
|
+
_: 3
|
|
603
|
+
}, 16, ["force-mount"])) : (0, vue.unref)(rootContext).type.value === "always" ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarVisible_default, (0, vue.mergeProps)({ key: 4 }, _ctx.$attrs, {
|
|
604
|
+
ref: (0, vue.unref)(forwardRef),
|
|
605
|
+
"data-state": "visible"
|
|
606
|
+
}), {
|
|
607
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
608
|
+
_: 3
|
|
609
|
+
}, 16)) : (0, vue.createCommentVNode)("v-if", true);
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarVisible.js
|
|
615
|
+
var [injectScrollAreaScrollbarVisibleContext, provideScrollAreaScrollbarVisibleContext] = /* @__PURE__ */ require_createContext.createContext("ScrollAreaScrollbarVisible");
|
|
616
|
+
var ScrollAreaScrollbarVisible_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
617
|
+
__name: "ScrollAreaScrollbarVisible",
|
|
618
|
+
setup(__props) {
|
|
619
|
+
const rootContext = injectScrollAreaRootContext();
|
|
620
|
+
const scrollbarContext = injectScrollAreaScrollbarContext();
|
|
621
|
+
const { forwardRef } = require_useForwardExpose.useForwardExpose();
|
|
622
|
+
const sizes = (0, vue.ref)({
|
|
623
|
+
content: 0,
|
|
624
|
+
viewport: 0,
|
|
625
|
+
scrollbar: {
|
|
626
|
+
size: 0,
|
|
627
|
+
paddingStart: 0,
|
|
628
|
+
paddingEnd: 0
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
const hasThumb = (0, vue.computed)(() => {
|
|
632
|
+
const thumbRatio = getThumbRatio(sizes.value.viewport, sizes.value.content);
|
|
633
|
+
return Boolean(thumbRatio > 0 && thumbRatio < 1);
|
|
634
|
+
});
|
|
635
|
+
const thumbRef = (0, vue.ref)();
|
|
636
|
+
const pointerOffset = (0, vue.ref)(0);
|
|
637
|
+
function handleWheelScroll(event, payload) {
|
|
638
|
+
if (isShowingScrollbarX.value) {
|
|
639
|
+
const scrollPos = rootContext.viewport.value.scrollLeft + event.deltaY;
|
|
640
|
+
rootContext.viewport.value.scrollLeft = scrollPos;
|
|
641
|
+
if (isScrollingWithinScrollbarBounds(scrollPos, payload)) event.preventDefault();
|
|
642
|
+
} else {
|
|
643
|
+
const scrollPos = rootContext.viewport.value.scrollTop + event.deltaY;
|
|
644
|
+
rootContext.viewport.value.scrollTop = scrollPos;
|
|
645
|
+
if (isScrollingWithinScrollbarBounds(scrollPos, payload)) event.preventDefault();
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
function handleThumbDown(event, payload) {
|
|
649
|
+
if (isShowingScrollbarX.value) pointerOffset.value = payload.x;
|
|
650
|
+
else pointerOffset.value = payload.y;
|
|
651
|
+
}
|
|
652
|
+
function handleThumbUp(event) {
|
|
653
|
+
pointerOffset.value = 0;
|
|
654
|
+
}
|
|
655
|
+
function handleSizeChange(payload) {
|
|
656
|
+
sizes.value = payload;
|
|
657
|
+
}
|
|
658
|
+
function getScrollPosition(pointerPos, dir) {
|
|
659
|
+
return getScrollPositionFromPointer(pointerPos, pointerOffset.value, sizes.value, dir);
|
|
660
|
+
}
|
|
661
|
+
const isShowingScrollbarX = (0, vue.computed)(() => scrollbarContext.isHorizontal.value);
|
|
662
|
+
function onDragScroll(payload) {
|
|
663
|
+
if (isShowingScrollbarX.value) rootContext.viewport.value.scrollLeft = getScrollPosition(payload, rootContext.dir.value);
|
|
664
|
+
else rootContext.viewport.value.scrollTop = getScrollPosition(payload);
|
|
665
|
+
}
|
|
666
|
+
function onThumbPositionChange() {
|
|
667
|
+
if (isShowingScrollbarX.value) {
|
|
668
|
+
if (rootContext.viewport.value && thumbRef.value) {
|
|
669
|
+
const scrollPos = rootContext.viewport.value.scrollLeft;
|
|
670
|
+
const offset = getThumbOffsetFromScroll(scrollPos, sizes.value, rootContext.dir.value);
|
|
671
|
+
thumbRef.value.style.transform = `translate3d(${offset}px, 0, 0)`;
|
|
672
|
+
}
|
|
673
|
+
} else if (rootContext.viewport.value && thumbRef.value) {
|
|
674
|
+
const scrollPos = rootContext.viewport.value.scrollTop;
|
|
675
|
+
const offset = getThumbOffsetFromScroll(scrollPos, sizes.value);
|
|
676
|
+
thumbRef.value.style.transform = `translate3d(0, ${offset}px, 0)`;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function onThumbChange(element) {
|
|
680
|
+
thumbRef.value = element;
|
|
681
|
+
}
|
|
682
|
+
provideScrollAreaScrollbarVisibleContext({
|
|
683
|
+
sizes,
|
|
684
|
+
hasThumb,
|
|
685
|
+
handleWheelScroll,
|
|
686
|
+
handleThumbDown,
|
|
687
|
+
handleThumbUp,
|
|
688
|
+
handleSizeChange,
|
|
689
|
+
onThumbPositionChange,
|
|
690
|
+
onThumbChange,
|
|
691
|
+
onDragScroll
|
|
692
|
+
});
|
|
693
|
+
return (_ctx, _cache) => {
|
|
694
|
+
return isShowingScrollbarX.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarX_default, (0, vue.mergeProps)({ key: 0 }, _ctx.$attrs, { ref: (0, vue.unref)(forwardRef) }), {
|
|
695
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
696
|
+
_: 3
|
|
697
|
+
}, 16)) : ((0, vue.openBlock)(), (0, vue.createBlock)(ScrollAreaScrollbarY_default, (0, vue.mergeProps)({ key: 1 }, _ctx.$attrs, { ref: (0, vue.unref)(forwardRef) }), {
|
|
698
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
699
|
+
_: 3
|
|
700
|
+
}, 16));
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
//#endregion
|
|
705
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaScrollbarImpl.js
|
|
706
|
+
var ScrollAreaScrollbarImpl_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
707
|
+
__name: "ScrollAreaScrollbarImpl",
|
|
708
|
+
props: { isHorizontal: {
|
|
709
|
+
type: Boolean,
|
|
710
|
+
required: true
|
|
711
|
+
} },
|
|
712
|
+
emits: [
|
|
713
|
+
"onDragScroll",
|
|
714
|
+
"onWheelScroll",
|
|
715
|
+
"onThumbPointerDown"
|
|
716
|
+
],
|
|
717
|
+
setup(__props, { emit: __emit }) {
|
|
718
|
+
const props = __props;
|
|
719
|
+
const emit = __emit;
|
|
720
|
+
const rootContext = injectScrollAreaRootContext();
|
|
721
|
+
const scrollbarVisibleContext = injectScrollAreaScrollbarVisibleContext();
|
|
722
|
+
const scrollbarContext = injectScrollAreaScrollbarContext();
|
|
723
|
+
const { forwardRef, currentElement: scrollbar } = require_useForwardExpose.useForwardExpose();
|
|
724
|
+
const prevWebkitUserSelectRef = (0, vue.ref)("");
|
|
725
|
+
const rectRef = (0, vue.ref)();
|
|
726
|
+
function handleDragScroll(event) {
|
|
727
|
+
if (rectRef.value) emit("onDragScroll", {
|
|
728
|
+
x: event.clientX - rectRef.value?.left,
|
|
729
|
+
y: event.clientY - rectRef.value?.top
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
function handlePointerDown(event) {
|
|
733
|
+
if (event.button === 0) {
|
|
734
|
+
event.target.setPointerCapture(event.pointerId);
|
|
735
|
+
rectRef.value = scrollbar.value.getBoundingClientRect();
|
|
736
|
+
prevWebkitUserSelectRef.value = document.body.style.webkitUserSelect;
|
|
737
|
+
document.body.style.webkitUserSelect = "none";
|
|
738
|
+
if (rootContext.viewport) rootContext.viewport.value.style.scrollBehavior = "auto";
|
|
739
|
+
handleDragScroll(event);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function handlePointerMove(event) {
|
|
743
|
+
handleDragScroll(event);
|
|
744
|
+
}
|
|
745
|
+
function handlePointerUp(event) {
|
|
746
|
+
const element = event.target;
|
|
747
|
+
if (element.hasPointerCapture(event.pointerId)) element.releasePointerCapture(event.pointerId);
|
|
748
|
+
document.body.style.webkitUserSelect = prevWebkitUserSelectRef.value;
|
|
749
|
+
if (rootContext.viewport) rootContext.viewport.value.style.scrollBehavior = "";
|
|
750
|
+
rectRef.value = void 0;
|
|
751
|
+
}
|
|
752
|
+
function handleWheel(event) {
|
|
753
|
+
const element = event.target;
|
|
754
|
+
const isScrollbarWheel = scrollbar.value?.contains(element);
|
|
755
|
+
const maxScrollPos = scrollbarVisibleContext.sizes.value.content - scrollbarVisibleContext.sizes.value.viewport;
|
|
756
|
+
if (isScrollbarWheel) scrollbarVisibleContext.handleWheelScroll(event, maxScrollPos);
|
|
757
|
+
}
|
|
758
|
+
(0, vue.onMounted)(() => {
|
|
759
|
+
document.addEventListener("wheel", handleWheel, { passive: false });
|
|
760
|
+
});
|
|
761
|
+
(0, vue.onUnmounted)(() => {
|
|
762
|
+
document.removeEventListener("wheel", handleWheel);
|
|
763
|
+
});
|
|
764
|
+
function handleSizeChange() {
|
|
765
|
+
if (!scrollbar.value) return;
|
|
766
|
+
if (props.isHorizontal) scrollbarVisibleContext.handleSizeChange({
|
|
767
|
+
content: rootContext.viewport.value?.scrollWidth ?? 0,
|
|
768
|
+
viewport: rootContext.viewport.value?.offsetWidth ?? 0,
|
|
769
|
+
scrollbar: {
|
|
770
|
+
size: scrollbar.value.clientWidth ?? 0,
|
|
771
|
+
paddingStart: toInt(getComputedStyle(scrollbar.value).paddingLeft),
|
|
772
|
+
paddingEnd: toInt(getComputedStyle(scrollbar.value).paddingRight)
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
else scrollbarVisibleContext.handleSizeChange({
|
|
776
|
+
content: rootContext.viewport.value?.scrollHeight ?? 0,
|
|
777
|
+
viewport: rootContext.viewport.value?.offsetHeight ?? 0,
|
|
778
|
+
scrollbar: {
|
|
779
|
+
size: scrollbar.value?.clientHeight ?? 0,
|
|
780
|
+
paddingStart: toInt(getComputedStyle(scrollbar.value).paddingTop),
|
|
781
|
+
paddingEnd: toInt(getComputedStyle(scrollbar.value).paddingBottom)
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
scrollbarVisibleContext.onThumbPositionChange();
|
|
785
|
+
}
|
|
786
|
+
require_dist.useResizeObserver(scrollbar, handleSizeChange);
|
|
787
|
+
require_dist.useResizeObserver(rootContext.content, handleSizeChange);
|
|
788
|
+
return (_ctx, _cache) => {
|
|
789
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive.Primitive), {
|
|
790
|
+
ref: (0, vue.unref)(forwardRef),
|
|
791
|
+
style: { "position": "absolute" },
|
|
792
|
+
"data-scrollbarimpl": "",
|
|
793
|
+
as: (0, vue.unref)(scrollbarContext).as.value,
|
|
794
|
+
"as-child": (0, vue.unref)(scrollbarContext).asChild.value,
|
|
795
|
+
onPointerdown: handlePointerDown,
|
|
796
|
+
onPointermove: handlePointerMove,
|
|
797
|
+
onPointerup: handlePointerUp
|
|
798
|
+
}, {
|
|
799
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
800
|
+
_: 3
|
|
801
|
+
}, 8, ["as", "as-child"]);
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
//#endregion
|
|
806
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.13_typescript@5.9.3_/node_modules/reka-ui/dist/ScrollArea/ScrollAreaThumb.js
|
|
807
|
+
var ScrollAreaThumb_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
808
|
+
__name: "ScrollAreaThumb",
|
|
809
|
+
props: {
|
|
810
|
+
asChild: {
|
|
811
|
+
type: Boolean,
|
|
812
|
+
required: false
|
|
813
|
+
},
|
|
814
|
+
as: {
|
|
815
|
+
type: null,
|
|
816
|
+
required: false
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
setup(__props) {
|
|
820
|
+
const props = __props;
|
|
821
|
+
const rootContext = injectScrollAreaRootContext();
|
|
822
|
+
const scrollbarContextVisible = injectScrollAreaScrollbarVisibleContext();
|
|
823
|
+
function handlePointerDown(event) {
|
|
824
|
+
const thumbRect = event.target.getBoundingClientRect();
|
|
825
|
+
const x = event.clientX - thumbRect.left;
|
|
826
|
+
const y = event.clientY - thumbRect.top;
|
|
827
|
+
scrollbarContextVisible.handleThumbDown(event, {
|
|
828
|
+
x,
|
|
829
|
+
y
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
function handlePointerUp(event) {
|
|
833
|
+
scrollbarContextVisible.handleThumbUp(event);
|
|
834
|
+
}
|
|
835
|
+
const { forwardRef, currentElement: thumbElement } = require_useForwardExpose.useForwardExpose();
|
|
836
|
+
const removeUnlinkedScrollListenerRef = (0, vue.ref)();
|
|
837
|
+
const viewport = (0, vue.computed)(() => rootContext.viewport.value);
|
|
838
|
+
function handleScroll() {
|
|
839
|
+
if (!removeUnlinkedScrollListenerRef.value) {
|
|
840
|
+
removeUnlinkedScrollListenerRef.value = addUnlinkedScrollListener(viewport.value, scrollbarContextVisible.onThumbPositionChange);
|
|
841
|
+
scrollbarContextVisible.onThumbPositionChange();
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
require_dist.watchOnce((0, vue.computed)(() => scrollbarContextVisible.sizes.value), () => {
|
|
845
|
+
scrollbarContextVisible.onThumbChange(thumbElement.value);
|
|
846
|
+
if (viewport.value) {
|
|
847
|
+
/**
|
|
848
|
+
* We only bind to native scroll event so we know when scroll starts and ends.
|
|
849
|
+
* When scroll starts we start a requestAnimationFrame loop that checks for
|
|
850
|
+
* changes to scroll position. That rAF loop triggers our thumb position change
|
|
851
|
+
* when relevant to avoid scroll-linked effects. We cancel the loop when scroll ends.
|
|
852
|
+
* https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Scroll-linked_effects
|
|
853
|
+
*/
|
|
854
|
+
scrollbarContextVisible.onThumbPositionChange();
|
|
855
|
+
viewport.value.addEventListener("scroll", handleScroll);
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
(0, vue.onUnmounted)(() => {
|
|
859
|
+
viewport.value?.removeEventListener("scroll", handleScroll);
|
|
860
|
+
removeUnlinkedScrollListenerRef.value?.();
|
|
861
|
+
});
|
|
862
|
+
return (_ctx, _cache) => {
|
|
863
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_Primitive.Primitive), {
|
|
864
|
+
ref: (0, vue.unref)(forwardRef),
|
|
865
|
+
"data-state": (0, vue.unref)(scrollbarContextVisible).hasThumb ? "visible" : "hidden",
|
|
866
|
+
style: {
|
|
867
|
+
width: "var(--reka-scroll-area-thumb-width)",
|
|
868
|
+
height: "var(--reka-scroll-area-thumb-height)"
|
|
869
|
+
},
|
|
870
|
+
"as-child": props.asChild,
|
|
871
|
+
as: _ctx.as,
|
|
872
|
+
onPointerdown: handlePointerDown,
|
|
873
|
+
onPointerup: handlePointerUp
|
|
874
|
+
}, {
|
|
875
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
876
|
+
_: 3
|
|
877
|
+
}, 8, [
|
|
878
|
+
"data-state",
|
|
879
|
+
"as-child",
|
|
880
|
+
"as"
|
|
881
|
+
]);
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
//#endregion
|
|
7
886
|
//#region src/components/scroll-area/scroll-bar.vue?vue&type=script&setup=true&lang.ts
|
|
8
887
|
var scroll_bar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
9
888
|
__name: "scroll-bar",
|
|
@@ -18,8 +897,8 @@ var scroll_bar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
|
|
|
18
897
|
const props = __props;
|
|
19
898
|
const delegatedProps = require_use_delegated_props.useDelegatedProps(props, "class");
|
|
20
899
|
return (_ctx, _cache) => {
|
|
21
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(
|
|
22
|
-
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(
|
|
900
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(ScrollAreaScrollbar_default), (0, vue.mergeProps)((0, vue.unref)(delegatedProps), { class: (0, vue.unref)(require_clsx.clsx)("celeste-scroll-bar", props.class) }), {
|
|
901
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(ScrollAreaThumb_default), { class: "celeste-scroll-bar-thumb" })]),
|
|
23
902
|
_: 1
|
|
24
903
|
}, 16, ["class"]);
|
|
25
904
|
};
|
|
@@ -27,8 +906,20 @@ var scroll_bar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0,
|
|
|
27
906
|
});
|
|
28
907
|
//#endregion
|
|
29
908
|
//#region src/components/scroll-area/scroll-bar.vue
|
|
30
|
-
var scroll_bar_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(scroll_bar_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
909
|
+
var scroll_bar_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(scroll_bar_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4c845c7c"]]);
|
|
31
910
|
//#endregion
|
|
911
|
+
Object.defineProperty(exports, "ScrollAreaRoot_default", {
|
|
912
|
+
enumerable: true,
|
|
913
|
+
get: function() {
|
|
914
|
+
return ScrollAreaRoot_default;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
Object.defineProperty(exports, "injectScrollAreaRootContext", {
|
|
918
|
+
enumerable: true,
|
|
919
|
+
get: function() {
|
|
920
|
+
return injectScrollAreaRootContext;
|
|
921
|
+
}
|
|
922
|
+
});
|
|
32
923
|
Object.defineProperty(exports, "scroll_bar_default", {
|
|
33
924
|
enumerable: true,
|
|
34
925
|
get: function() {
|