@youcan/celeste 0.15.0 → 0.17.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/ai/README.md +1 -1
- package/ai/component-registry.json +922 -78
- package/ai/icons.json +2 -2
- package/ai/tokens.json +2 -2
- package/dist/celeste.css +406 -121
- package/dist/cjs/chunks/BubbleSelect.cjs +3 -3
- package/dist/cjs/chunks/CollapsibleRoot.cjs +1 -1
- package/dist/cjs/chunks/Collection.cjs +7 -1
- package/dist/cjs/chunks/ComboboxContent.cjs +9 -5
- package/dist/cjs/chunks/ComboboxGroup.cjs +2 -2
- package/dist/cjs/chunks/ComboboxInput.cjs +10 -6
- package/dist/cjs/chunks/ComboboxItem.cjs +4 -3
- package/dist/cjs/chunks/ComboboxLabel.cjs +1 -1
- package/dist/cjs/chunks/ComboboxRoot.cjs +69 -14
- package/dist/cjs/chunks/ComboboxSeparator.cjs +1 -1
- package/dist/cjs/chunks/ConfigProvider.cjs +1 -1
- package/dist/cjs/chunks/DialogClose.cjs +1 -1
- package/dist/cjs/chunks/DialogDescription.cjs +1 -1
- package/dist/cjs/chunks/DialogPortal.cjs +22 -19
- package/dist/cjs/chunks/DialogRoot.cjs +1 -1
- package/dist/cjs/chunks/DialogTitle.cjs +1 -1
- package/dist/cjs/chunks/DialogTrigger.cjs +1 -1
- package/dist/cjs/chunks/DismissableLayer.cjs +19 -9
- package/dist/cjs/chunks/DrawerClose.cjs +40 -0
- package/dist/cjs/chunks/DrawerDescription.cjs +37 -0
- package/dist/cjs/chunks/DrawerRoot.cjs +366 -0
- package/dist/cjs/chunks/DrawerTitle.cjs +37 -0
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +2 -2
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +1 -1
- package/dist/cjs/chunks/FocusScope.cjs +18 -9
- package/dist/cjs/chunks/Label.cjs +1 -1
- package/dist/cjs/chunks/MenuAnchor.cjs +1 -1
- package/dist/cjs/chunks/MenuContentImpl.cjs +2 -2
- package/dist/cjs/chunks/MenuGroup.cjs +1 -1
- package/dist/cjs/chunks/MenuItemImpl.cjs +3 -2
- package/dist/cjs/chunks/MenuRoot.cjs +2 -2
- package/dist/cjs/chunks/MenuSub.cjs +1 -1
- package/dist/cjs/chunks/PaginationRoot.cjs +1 -1
- package/dist/cjs/chunks/PinInputRoot.cjs +1 -1
- package/dist/cjs/chunks/PopoverRoot.cjs +1 -1
- package/dist/cjs/chunks/PopperAnchor.cjs +1 -1
- package/dist/cjs/chunks/PopperArrow.cjs +2 -2
- package/dist/cjs/chunks/PopperContent.cjs +2 -2
- package/dist/cjs/chunks/PopperRoot.cjs +1 -1
- package/dist/cjs/chunks/Presence.cjs +6 -5
- package/dist/cjs/chunks/Primitive.cjs +3 -3
- package/dist/cjs/chunks/ProgressIndicator.cjs +2 -2
- package/dist/cjs/chunks/RadioGroupRoot.cjs +1 -1
- package/dist/cjs/chunks/RovingFocusGroup.cjs +1 -1
- package/dist/cjs/chunks/RovingFocusItem.cjs +1 -1
- package/dist/cjs/chunks/SelectGroup.cjs +1 -1
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +8 -4
- package/dist/cjs/chunks/TabsRoot.cjs +1 -1
- package/dist/cjs/chunks/Teleport.cjs +1 -1
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +2 -2
- package/dist/cjs/chunks/TooltipProvider.cjs +1 -1
- package/dist/cjs/chunks/TooltipRoot.cjs +2 -2
- package/dist/cjs/chunks/VisuallyHidden.cjs +1 -1
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +2 -2
- package/dist/cjs/chunks/calendar.cjs +11 -11
- package/dist/cjs/chunks/checkbox.cjs +4 -4
- package/dist/cjs/chunks/clamp.cjs +1 -1
- package/dist/cjs/chunks/collapsible-content.cjs +1 -1
- package/dist/cjs/chunks/collapsible-trigger.cjs +1 -1
- package/dist/cjs/chunks/combobox-anchor.cjs +1 -1
- package/dist/cjs/chunks/combobox-empty.cjs +1 -1
- package/dist/cjs/chunks/combobox-list.cjs +2 -2
- package/dist/cjs/chunks/combobox-trigger.cjs +1 -1
- package/dist/cjs/chunks/components.cjs +43 -7
- package/dist/cjs/chunks/content-divider.cjs +2 -2
- package/dist/cjs/chunks/counter-input.cjs +67 -23
- package/dist/cjs/chunks/createContext.cjs +1 -1
- package/dist/cjs/chunks/dialog-body.cjs +46 -0
- package/dist/cjs/chunks/dialog-close.cjs +31 -0
- package/dist/cjs/chunks/dialog-content.cjs +39 -0
- package/dist/cjs/chunks/dialog-description.cjs +37 -0
- package/dist/cjs/chunks/dialog-footer.cjs +46 -0
- package/dist/cjs/chunks/dialog-header.cjs +39 -0
- package/dist/cjs/chunks/dialog-title.cjs +37 -0
- package/dist/cjs/chunks/dialog-trigger.cjs +31 -0
- package/dist/cjs/chunks/dialog.cjs +76 -0
- package/dist/cjs/chunks/digit-input-slot.cjs +28 -7
- package/dist/cjs/chunks/drawer-body.cjs +73 -0
- package/dist/cjs/chunks/drawer-close.cjs +27 -0
- package/dist/cjs/chunks/drawer-content.cjs +1201 -0
- package/dist/cjs/chunks/drawer-description.cjs +40 -0
- package/dist/cjs/chunks/drawer-footer.cjs +30 -0
- package/dist/cjs/chunks/drawer-header.cjs +75 -0
- package/dist/cjs/chunks/drawer-title.cjs +40 -0
- package/dist/cjs/chunks/drawer-trigger.cjs +75 -0
- package/dist/cjs/chunks/drawer.cjs +54 -0
- package/dist/cjs/chunks/dropdown-menu-content.cjs +4 -4
- package/dist/cjs/chunks/dropdown-menu-group.cjs +1 -1
- package/dist/cjs/chunks/dropdown-menu-item.cjs +2 -2
- package/dist/cjs/chunks/dropdown-menu-label.cjs +2 -2
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +2 -2
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +2 -2
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +2 -2
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +1 -1
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +1 -1
- package/dist/cjs/chunks/getActiveElement.cjs +1 -1
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +1 -1
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +1 -1
- package/dist/cjs/chunks/modal-content.cjs +11 -6
- package/dist/cjs/chunks/nullish.cjs +1 -1
- package/dist/cjs/chunks/pagination-content.cjs +2 -2
- package/dist/cjs/chunks/pagination-ellipsis.cjs +1 -1
- package/dist/cjs/chunks/pagination-first.cjs +1 -1
- package/dist/cjs/chunks/pagination-item.cjs +1 -1
- package/dist/cjs/chunks/pagination-last.cjs +1 -1
- package/dist/cjs/chunks/pagination-next.cjs +1 -1
- package/dist/cjs/chunks/pagination-previous.cjs +1 -1
- package/dist/cjs/chunks/popover-content.cjs +8 -8
- package/dist/cjs/chunks/popover-trigger.cjs +3 -2
- package/dist/cjs/chunks/radio-group-item.cjs +5 -5
- package/dist/cjs/chunks/range-calendar.cjs +11 -11
- package/dist/cjs/chunks/scroll-area.cjs +3 -3
- package/dist/cjs/chunks/scroll-bar.cjs +12 -12
- package/dist/cjs/chunks/segmented-control-item.cjs +2 -2
- package/dist/cjs/chunks/select-content.cjs +4 -4
- package/dist/cjs/chunks/select-item.cjs +3 -3
- package/dist/cjs/chunks/select-label.cjs +1 -1
- package/dist/cjs/chunks/select-separator.cjs +1 -1
- package/dist/cjs/chunks/select-trigger.cjs +3 -3
- package/dist/cjs/chunks/select-value.cjs +1 -1
- package/dist/cjs/chunks/slider.cjs +9 -9
- package/dist/cjs/chunks/switch.cjs +2 -2
- package/dist/cjs/chunks/tab-menu-content.cjs +1 -1
- package/dist/cjs/chunks/tab-menu-item.cjs +1 -1
- package/dist/cjs/chunks/tab-menu-list.cjs +1 -1
- package/dist/cjs/chunks/tooltip-content.cjs +28 -16
- package/dist/cjs/chunks/tooltip-trigger.cjs +5 -5
- package/dist/cjs/chunks/useArrowNavigation.cjs +1 -1
- package/dist/cjs/chunks/useCalendar.cjs +34 -11
- package/dist/cjs/chunks/useComposing.cjs +20 -1
- package/dist/cjs/chunks/useDirection.cjs +1 -1
- package/dist/cjs/chunks/useEmitAsProps.cjs +1 -1
- package/dist/cjs/chunks/useFocusGuards.cjs +1 -1
- package/dist/cjs/chunks/useFormControl.cjs +1 -1
- package/dist/cjs/chunks/useForwardExpose.cjs +1 -1
- package/dist/cjs/chunks/useForwardProps.cjs +1 -1
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +1 -1
- package/dist/cjs/chunks/useForwardScopeId.cjs +1 -1
- package/dist/cjs/chunks/useHideOthers.cjs +1 -1
- package/dist/cjs/chunks/useId.cjs +1 -1
- package/dist/cjs/chunks/useKbd.cjs +1 -1
- package/dist/cjs/chunks/useLocale.cjs +1 -1
- package/dist/cjs/chunks/useNonce.cjs +1 -1
- package/dist/cjs/chunks/usePrimitiveElement.cjs +1 -1
- package/dist/cjs/chunks/useSize.cjs +1 -1
- package/dist/cjs/chunks/useTypeahead.cjs +1 -1
- package/dist/cjs/chunks/utils.cjs +1 -1
- package/dist/cjs/chunks/utils2.cjs +1 -1
- package/dist/cjs/chunks/utils3.cjs +1 -1
- package/dist/cjs/context.cjs +6 -0
- package/dist/cjs/dialog-body.cjs +2 -0
- package/dist/cjs/dialog-close.cjs +2 -0
- package/dist/cjs/dialog-content.cjs +2 -0
- package/dist/cjs/dialog-description.cjs +2 -0
- package/dist/cjs/dialog-footer.cjs +2 -0
- package/dist/cjs/dialog-header.cjs +2 -0
- package/dist/cjs/dialog-title.cjs +2 -0
- package/dist/cjs/dialog-trigger.cjs +2 -0
- package/dist/cjs/dialog.cjs +2 -0
- package/dist/cjs/drawer-body.cjs +2 -0
- package/dist/cjs/drawer-close.cjs +2 -0
- package/dist/cjs/drawer-content.cjs +2 -0
- package/dist/cjs/drawer-description.cjs +2 -0
- package/dist/cjs/drawer-footer.cjs +2 -0
- package/dist/cjs/drawer-header.cjs +2 -0
- package/dist/cjs/drawer-title.cjs +2 -0
- package/dist/cjs/drawer-trigger.cjs +2 -0
- package/dist/cjs/drawer.cjs +2 -0
- package/dist/cjs/index.cjs +43 -7
- package/dist/components/dialog/context.d.ts +14 -0
- package/dist/components/dialog/dialog-body.d.ts +19 -0
- package/dist/components/dialog/dialog-close.d.ts +15 -0
- package/dist/components/dialog/dialog-content.d.ts +19 -0
- package/dist/components/dialog/dialog-description.d.ts +17 -0
- package/dist/components/dialog/dialog-footer.d.ts +19 -0
- package/dist/components/dialog/dialog-header.d.ts +13 -0
- package/dist/components/dialog/dialog-title.d.ts +17 -0
- package/dist/components/dialog/dialog-trigger.d.ts +15 -0
- package/dist/components/dialog/dialog.d.ts +28 -0
- package/dist/components/dialog/index.d.ts +18 -0
- package/dist/components/digit-input/digit-input.d.ts +3 -3
- package/dist/components/drawer/drawer-body.d.ts +18 -0
- package/dist/components/drawer/drawer-close.d.ts +16 -0
- package/dist/components/drawer/drawer-content.d.ts +32 -0
- package/dist/components/drawer/drawer-description.d.ts +18 -0
- package/dist/components/drawer/drawer-footer.d.ts +17 -0
- package/dist/components/drawer/drawer-header.d.ts +24 -0
- package/dist/components/drawer/drawer-title.d.ts +18 -0
- package/dist/components/drawer/drawer-trigger.d.ts +16 -0
- package/dist/components/drawer/drawer.d.ts +30 -0
- package/dist/components/drawer/index.d.ts +18 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/modal/modal-content.d.ts +2 -2
- package/dist/es/chunks/BubbleSelect.js +3 -3
- package/dist/es/chunks/CollapsibleRoot.js +1 -1
- package/dist/es/chunks/Collection.js +7 -1
- package/dist/es/chunks/ComboboxContent.js +11 -7
- package/dist/es/chunks/ComboboxGroup.js +2 -2
- package/dist/es/chunks/ComboboxInput.js +10 -6
- package/dist/es/chunks/ComboboxItem.js +4 -3
- package/dist/es/chunks/ComboboxLabel.js +1 -1
- package/dist/es/chunks/ComboboxRoot.js +69 -14
- package/dist/es/chunks/ComboboxSeparator.js +1 -1
- package/dist/es/chunks/ConfigProvider.js +1 -1
- package/dist/es/chunks/DialogClose.js +1 -1
- package/dist/es/chunks/DialogDescription.js +1 -1
- package/dist/es/chunks/DialogPortal.js +23 -20
- package/dist/es/chunks/DialogRoot.js +1 -1
- package/dist/es/chunks/DialogTitle.js +1 -1
- package/dist/es/chunks/DialogTrigger.js +1 -1
- package/dist/es/chunks/DismissableLayer.js +14 -10
- package/dist/es/chunks/DrawerClose.js +35 -0
- package/dist/es/chunks/DrawerDescription.js +32 -0
- package/dist/es/chunks/DrawerRoot.js +325 -0
- package/dist/es/chunks/DrawerTitle.js +32 -0
- package/dist/es/chunks/DropdownMenuPortal.js +2 -2
- package/dist/es/chunks/DropdownMenuRoot.js +1 -1
- package/dist/es/chunks/FocusScope.js +13 -10
- package/dist/es/chunks/Label.js +1 -1
- package/dist/es/chunks/MenuAnchor.js +1 -1
- package/dist/es/chunks/MenuContentImpl.js +3 -3
- package/dist/es/chunks/MenuGroup.js +1 -1
- package/dist/es/chunks/MenuItemImpl.js +3 -2
- package/dist/es/chunks/MenuRoot.js +2 -2
- package/dist/es/chunks/MenuSub.js +1 -1
- package/dist/es/chunks/PaginationRoot.js +1 -1
- package/dist/es/chunks/PinInputRoot.js +1 -1
- package/dist/es/chunks/PopoverRoot.js +1 -1
- package/dist/es/chunks/PopperAnchor.js +1 -1
- package/dist/es/chunks/PopperArrow.js +2 -2
- package/dist/es/chunks/PopperContent.js +2 -2
- package/dist/es/chunks/PopperRoot.js +1 -1
- package/dist/es/chunks/Presence.js +6 -5
- package/dist/es/chunks/Primitive.js +3 -3
- package/dist/es/chunks/ProgressIndicator.js +2 -2
- package/dist/es/chunks/RadioGroupRoot.js +1 -1
- package/dist/es/chunks/RovingFocusGroup.js +1 -1
- package/dist/es/chunks/RovingFocusItem.js +1 -1
- package/dist/es/chunks/SelectGroup.js +1 -1
- package/dist/es/chunks/SelectItemAlignedPosition.js +9 -5
- package/dist/es/chunks/TabsRoot.js +1 -1
- package/dist/es/chunks/Teleport.js +1 -1
- package/dist/es/chunks/ToggleGroupRoot.js +2 -2
- package/dist/es/chunks/TooltipProvider.js +1 -1
- package/dist/es/chunks/TooltipRoot.js +2 -2
- package/dist/es/chunks/VisuallyHidden.js +1 -1
- package/dist/es/chunks/VisuallyHiddenInput.js +2 -2
- package/dist/es/chunks/calendar.js +11 -11
- package/dist/es/chunks/checkbox.js +4 -4
- package/dist/es/chunks/clamp.js +1 -1
- package/dist/es/chunks/collapsible-content.js +1 -1
- package/dist/es/chunks/collapsible-trigger.js +1 -1
- package/dist/es/chunks/combobox-anchor.js +1 -1
- package/dist/es/chunks/combobox-empty.js +1 -1
- package/dist/es/chunks/combobox-list.js +2 -2
- package/dist/es/chunks/combobox-trigger.js +1 -1
- package/dist/es/chunks/components.js +43 -7
- package/dist/es/chunks/content-divider.js +2 -2
- package/dist/es/chunks/counter-input.js +68 -24
- package/dist/es/chunks/createContext.js +1 -1
- package/dist/es/chunks/dialog-body.js +39 -0
- package/dist/es/chunks/dialog-close.js +26 -0
- package/dist/es/chunks/dialog-content.js +34 -0
- package/dist/es/chunks/dialog-description.js +30 -0
- package/dist/es/chunks/dialog-footer.js +39 -0
- package/dist/es/chunks/dialog-header.js +34 -0
- package/dist/es/chunks/dialog-title.js +30 -0
- package/dist/es/chunks/dialog-trigger.js +26 -0
- package/dist/es/chunks/dialog.js +71 -0
- package/dist/es/chunks/digit-input-slot.js +28 -7
- package/dist/es/chunks/drawer-body.js +65 -0
- package/dist/es/chunks/drawer-close.js +22 -0
- package/dist/es/chunks/drawer-content.js +1193 -0
- package/dist/es/chunks/drawer-description.js +33 -0
- package/dist/es/chunks/drawer-footer.js +23 -0
- package/dist/es/chunks/drawer-header.js +69 -0
- package/dist/es/chunks/drawer-title.js +33 -0
- package/dist/es/chunks/drawer-trigger.js +70 -0
- package/dist/es/chunks/drawer.js +49 -0
- package/dist/es/chunks/dropdown-menu-content.js +4 -4
- package/dist/es/chunks/dropdown-menu-group.js +1 -1
- package/dist/es/chunks/dropdown-menu-item.js +2 -2
- package/dist/es/chunks/dropdown-menu-label.js +2 -2
- package/dist/es/chunks/dropdown-menu-separator.js +2 -2
- package/dist/es/chunks/dropdown-menu-sub-content.js +2 -2
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +2 -2
- package/dist/es/chunks/dropdown-menu-sub.js +1 -1
- package/dist/es/chunks/dropdown-menu-trigger.js +1 -1
- package/dist/es/chunks/getActiveElement.js +1 -1
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +1 -1
- package/dist/es/chunks/isValueEqualOrExist.js +1 -1
- package/dist/es/chunks/modal-content.js +12 -7
- package/dist/es/chunks/nullish.js +1 -1
- package/dist/es/chunks/pagination-content.js +2 -2
- package/dist/es/chunks/pagination-ellipsis.js +1 -1
- package/dist/es/chunks/pagination-first.js +1 -1
- package/dist/es/chunks/pagination-item.js +1 -1
- package/dist/es/chunks/pagination-last.js +1 -1
- package/dist/es/chunks/pagination-next.js +1 -1
- package/dist/es/chunks/pagination-previous.js +1 -1
- package/dist/es/chunks/popover-content.js +9 -9
- package/dist/es/chunks/popover-trigger.js +3 -2
- package/dist/es/chunks/radio-group-item.js +5 -5
- package/dist/es/chunks/range-calendar.js +11 -11
- package/dist/es/chunks/scroll-area.js +3 -3
- package/dist/es/chunks/scroll-bar.js +12 -12
- package/dist/es/chunks/segmented-control-item.js +2 -2
- package/dist/es/chunks/select-content.js +4 -4
- package/dist/es/chunks/select-item.js +3 -3
- package/dist/es/chunks/select-label.js +1 -1
- package/dist/es/chunks/select-separator.js +1 -1
- package/dist/es/chunks/select-trigger.js +3 -3
- package/dist/es/chunks/select-value.js +1 -1
- package/dist/es/chunks/slider.js +9 -9
- package/dist/es/chunks/switch.js +2 -2
- package/dist/es/chunks/tab-menu-content.js +1 -1
- package/dist/es/chunks/tab-menu-item.js +1 -1
- package/dist/es/chunks/tab-menu-list.js +1 -1
- package/dist/es/chunks/tooltip-content.js +28 -16
- package/dist/es/chunks/tooltip-trigger.js +6 -6
- package/dist/es/chunks/useArrowNavigation.js +1 -1
- package/dist/es/chunks/useCalendar.js +34 -11
- package/dist/es/chunks/useComposing.js +21 -2
- package/dist/es/chunks/useDirection.js +1 -1
- package/dist/es/chunks/useEmitAsProps.js +1 -1
- package/dist/es/chunks/useFocusGuards.js +1 -1
- package/dist/es/chunks/useFormControl.js +1 -1
- package/dist/es/chunks/useForwardExpose.js +1 -1
- package/dist/es/chunks/useForwardProps.js +1 -1
- package/dist/es/chunks/useForwardPropsEmits.js +1 -1
- package/dist/es/chunks/useForwardScopeId.js +1 -1
- package/dist/es/chunks/useHideOthers.js +1 -1
- package/dist/es/chunks/useId.js +1 -1
- package/dist/es/chunks/useKbd.js +1 -1
- package/dist/es/chunks/useLocale.js +1 -1
- package/dist/es/chunks/useNonce.js +1 -1
- package/dist/es/chunks/usePrimitiveElement.js +1 -1
- package/dist/es/chunks/useSize.js +1 -1
- package/dist/es/chunks/useTypeahead.js +1 -1
- package/dist/es/chunks/utils.js +1 -1
- package/dist/es/chunks/utils2.js +1 -1
- package/dist/es/chunks/utils3.js +1 -1
- package/dist/es/context.js +5 -0
- package/dist/es/dialog-body.js +2 -0
- package/dist/es/dialog-close.js +2 -0
- package/dist/es/dialog-content.js +2 -0
- package/dist/es/dialog-description.js +2 -0
- package/dist/es/dialog-footer.js +2 -0
- package/dist/es/dialog-header.js +2 -0
- package/dist/es/dialog-title.js +2 -0
- package/dist/es/dialog-trigger.js +2 -0
- package/dist/es/dialog.js +2 -0
- package/dist/es/drawer-body.js +2 -0
- package/dist/es/drawer-close.js +2 -0
- package/dist/es/drawer-content.js +2 -0
- package/dist/es/drawer-description.js +2 -0
- package/dist/es/drawer-footer.js +2 -0
- package/dist/es/drawer-header.js +2 -0
- package/dist/es/drawer-title.js +2 -0
- package/dist/es/drawer-trigger.js +2 -0
- package/dist/es/drawer.js +2 -0
- package/dist/es/index.js +26 -8
- package/package.json +4 -4
- package/src/components/dialog/context.ts +4 -0
- package/src/components/dialog/dialog-body.vue +30 -0
- package/src/components/dialog/dialog-close.vue +16 -0
- package/src/components/dialog/dialog-content.vue +23 -0
- package/src/components/dialog/dialog-description.vue +28 -0
- package/src/components/dialog/dialog-footer.vue +32 -0
- package/src/components/dialog/dialog-header.vue +29 -0
- package/src/components/dialog/dialog-title.vue +28 -0
- package/src/components/dialog/dialog-trigger.vue +16 -0
- package/src/components/dialog/dialog.vue +38 -0
- package/src/components/dialog/index.ts +18 -0
- package/src/components/dialog/stories/dialog.stories.ts +74 -0
- package/src/components/drawer/drawer-body.vue +30 -0
- package/src/components/drawer/drawer-close.vue +14 -0
- package/src/components/drawer/drawer-content.vue +259 -0
- package/src/components/drawer/drawer-description.vue +29 -0
- package/src/components/drawer/drawer-footer.vue +27 -0
- package/src/components/drawer/drawer-header.vue +95 -0
- package/src/components/drawer/drawer-title.vue +29 -0
- package/src/components/drawer/drawer-trigger.vue +14 -0
- package/src/components/drawer/drawer.vue +29 -0
- package/src/components/drawer/index.ts +18 -0
- package/src/components/drawer/stories/drawer.stories.ts +78 -0
- package/src/components/index.ts +2 -0
- package/src/components/modal/modal-content.vue +41 -17
|
@@ -5,11 +5,20 @@ import { r as onKeyStroke } from "./dist2.js";
|
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
6
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
7
7
|
import { computed, createBlock, defineComponent, nextTick, normalizeStyle, openBlock, reactive, ref, renderSlot, toValue, unref, watch, watchEffect, withCtx } from "vue";
|
|
8
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
8
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/context.js
|
|
9
|
+
var context = /*#__PURE__*/ reactive({
|
|
10
|
+
layersRoot: /* @__PURE__ */ new Set(),
|
|
11
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
12
|
+
originalBodyPointerEvents: void 0,
|
|
13
|
+
branches: /* @__PURE__ */ new Set()
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/utils.js
|
|
9
17
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
10
18
|
var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
|
|
11
19
|
function isLayerExist(layerElement, targetElement) {
|
|
12
20
|
if (!(targetElement instanceof Element)) return false;
|
|
21
|
+
if (layerElement.contains(targetElement)) return true;
|
|
13
22
|
const targetLayer = targetElement.closest("[data-dismissable-layer]");
|
|
14
23
|
const mainLayer = layerElement.dataset.dismissableLayer === "" ? layerElement : layerElement.querySelector("[data-dismissable-layer]");
|
|
15
24
|
const nodeList = Array.from(layerElement.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
@@ -31,6 +40,7 @@ function usePointerDownOutside(onPointerDownOutside, element, enabled = true) {
|
|
|
31
40
|
const target = event.target;
|
|
32
41
|
if (!element?.value || !target) return;
|
|
33
42
|
if (isLayerExist(element.value, target)) {
|
|
43
|
+
ownerDocument.removeEventListener("click", handleClickRef.value);
|
|
34
44
|
isPointerInsideDOMTree.value = false;
|
|
35
45
|
return;
|
|
36
46
|
}
|
|
@@ -118,13 +128,7 @@ function useFocusOutside(onFocusOutside, element, enabled = true) {
|
|
|
118
128
|
};
|
|
119
129
|
}
|
|
120
130
|
//#endregion
|
|
121
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
122
|
-
var context = /*#__PURE__*/ reactive({
|
|
123
|
-
layersRoot: /* @__PURE__ */ new Set(),
|
|
124
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
125
|
-
originalBodyPointerEvents: void 0,
|
|
126
|
-
branches: /* @__PURE__ */ new Set()
|
|
127
|
-
});
|
|
131
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
128
132
|
var DismissableLayer_default = /* @__PURE__ */ defineComponent({
|
|
129
133
|
__name: "DismissableLayer",
|
|
130
134
|
props: {
|
|
@@ -179,7 +183,7 @@ var DismissableLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
179
183
|
emits("interactOutside", event);
|
|
180
184
|
await nextTick();
|
|
181
185
|
if (!event.defaultPrevented) emits("dismiss");
|
|
182
|
-
}, layerElement);
|
|
186
|
+
}, layerElement, () => props.present);
|
|
183
187
|
const focusOutside = useFocusOutside((event) => {
|
|
184
188
|
const isFocusInBranch = [...context.branches].some((branch) => branch?.contains(event.target));
|
|
185
189
|
if (!props.present || isFocusInBranch) return;
|
|
@@ -250,4 +254,4 @@ var DismissableLayer_default = /* @__PURE__ */ defineComponent({
|
|
|
250
254
|
}
|
|
251
255
|
});
|
|
252
256
|
//#endregion
|
|
253
|
-
export { DismissableLayer_default as t };
|
|
257
|
+
export { context as n, DismissableLayer_default as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as Primitive } from "./Primitive.js";
|
|
2
|
+
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
|
+
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerClose.js
|
|
6
|
+
var DrawerClose_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerClose",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "button"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
useForwardExpose();
|
|
22
|
+
const rootContext = injectDrawerRootContext();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, {
|
|
25
|
+
type: _ctx.as === "button" ? "button" : void 0,
|
|
26
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(rootContext).onOpenChange(false, "close-press"))
|
|
27
|
+
}), {
|
|
28
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["type"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DrawerClose_default as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as Primitive } from "./Primitive.js";
|
|
2
|
+
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
|
+
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerDescription.js
|
|
6
|
+
var DrawerDescription_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerDescription",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "p"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
useForwardExpose();
|
|
22
|
+
const rootContext = injectDrawerRootContext();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).descriptionId }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["id"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DrawerDescription_default as t };
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import { t as createContext } from "./createContext.js";
|
|
2
|
+
import { p as useVModel } from "./dist2.js";
|
|
3
|
+
import { t as useId } from "./useId.js";
|
|
4
|
+
import { computed, defineComponent, onUnmounted, ref, renderSlot, toRefs, watch } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerProvider.js
|
|
6
|
+
var [injectDrawerProviderContext, provideDrawerProviderContext] = /*#__PURE__*/ createContext("DrawerProvider");
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/utils.js
|
|
9
|
+
var DRAWER_CSS_VARS = {
|
|
10
|
+
swipeMovementX: "--drawer-swipe-movement-x",
|
|
11
|
+
swipeMovementY: "--drawer-swipe-movement-y",
|
|
12
|
+
snapPointOffset: "--drawer-snap-point-offset",
|
|
13
|
+
height: "--drawer-height",
|
|
14
|
+
frontmostHeight: "--drawer-frontmost-height",
|
|
15
|
+
swipeProgress: "--drawer-swipe-progress",
|
|
16
|
+
swipeStrength: "--drawer-swipe-strength",
|
|
17
|
+
nestedDrawers: "--nested-drawers"
|
|
18
|
+
};
|
|
19
|
+
function createNestedSwipeProgressStore() {
|
|
20
|
+
let progress = 0;
|
|
21
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
22
|
+
return {
|
|
23
|
+
getSnapshot: () => progress,
|
|
24
|
+
subscribe(listener) {
|
|
25
|
+
listeners.add(listener);
|
|
26
|
+
return () => listeners.delete(listener);
|
|
27
|
+
},
|
|
28
|
+
set(next) {
|
|
29
|
+
if (next !== progress) {
|
|
30
|
+
progress = next;
|
|
31
|
+
listeners.forEach((l) => l());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function getDisplacement(direction, deltaX, deltaY) {
|
|
37
|
+
switch (direction) {
|
|
38
|
+
case "up": return -deltaY;
|
|
39
|
+
case "down": return deltaY;
|
|
40
|
+
case "left": return -deltaX;
|
|
41
|
+
case "right": return deltaX;
|
|
42
|
+
default: return 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var MIN_SWIPE_RELEASE_VELOCITY = .2;
|
|
46
|
+
var MAX_SWIPE_RELEASE_VELOCITY = 4;
|
|
47
|
+
var MIN_SWIPE_RELEASE_DURATION_MS = 80;
|
|
48
|
+
var MAX_SWIPE_RELEASE_DURATION_MS = 360;
|
|
49
|
+
var MIN_SWIPE_RELEASE_SCALAR = .1;
|
|
50
|
+
var MAX_SWIPE_RELEASE_SCALAR = 1;
|
|
51
|
+
function clamp(v, lo, hi) {
|
|
52
|
+
return Math.max(lo, Math.min(hi, v));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Computes a 0.1 - 1.0 scalar for the `--drawer-swipe-strength` CSS var.
|
|
56
|
+
* Ported from BaseUI `DrawerViewport.tsx:resolveSwipeRelease` (lines 243-337).
|
|
57
|
+
*
|
|
58
|
+
* The scalar is derived from how much further the drawer still has to travel
|
|
59
|
+
* vs how fast the user flung it. A short remaining distance with high velocity
|
|
60
|
+
* → near-zero scalar (fast release). A long distance / low velocity → near-1
|
|
61
|
+
* (default release).
|
|
62
|
+
*
|
|
63
|
+
* Returns `null` when the formula is degenerate (no velocity, no distance, or
|
|
64
|
+
* moving in the wrong direction).
|
|
65
|
+
*/
|
|
66
|
+
function computeSwipeReleaseScalar(params) {
|
|
67
|
+
const { direction, size, axisDelta, snapPointOffset, releaseVelocity } = params;
|
|
68
|
+
if (!Number.isFinite(size) || size <= 0) return null;
|
|
69
|
+
let baseOffset = 0;
|
|
70
|
+
if (direction === "down" || direction === "right") baseOffset = snapPointOffset;
|
|
71
|
+
else if (direction === "up" || direction === "left") baseOffset = -snapPointOffset;
|
|
72
|
+
const translation = baseOffset + axisDelta;
|
|
73
|
+
const translationAlongDirection = direction === "left" || direction === "up" ? -translation : translation;
|
|
74
|
+
const remainingDistance = Math.max(0, size - translationAlongDirection);
|
|
75
|
+
if (!Number.isFinite(remainingDistance) || remainingDistance <= 0) return null;
|
|
76
|
+
const directionalVelocity = direction === "left" || direction === "up" ? -releaseVelocity : releaseVelocity;
|
|
77
|
+
if (!Number.isFinite(directionalVelocity) || directionalVelocity <= MIN_SWIPE_RELEASE_VELOCITY) return null;
|
|
78
|
+
const durationMs = clamp(remainingDistance / clamp(directionalVelocity, MIN_SWIPE_RELEASE_VELOCITY, MAX_SWIPE_RELEASE_VELOCITY), MIN_SWIPE_RELEASE_DURATION_MS, MAX_SWIPE_RELEASE_DURATION_MS);
|
|
79
|
+
if (!Number.isFinite(durationMs)) return null;
|
|
80
|
+
const scalar = clamp(MIN_SWIPE_RELEASE_SCALAR + (durationMs - MIN_SWIPE_RELEASE_DURATION_MS) / 280 * .9, MIN_SWIPE_RELEASE_SCALAR, MAX_SWIPE_RELEASE_SCALAR);
|
|
81
|
+
if (!Number.isFinite(scalar) || scalar <= 0) return null;
|
|
82
|
+
return scalar;
|
|
83
|
+
}
|
|
84
|
+
var MATRIX_RE = /matrix(?:3d)?\(([^)]+)\)/;
|
|
85
|
+
function getElementTransform(element) {
|
|
86
|
+
const transform = window.getComputedStyle(element).transform;
|
|
87
|
+
let x = 0;
|
|
88
|
+
let y = 0;
|
|
89
|
+
let scale = 1;
|
|
90
|
+
if (transform && transform !== "none") {
|
|
91
|
+
const matrix = transform.match(MATRIX_RE);
|
|
92
|
+
if (matrix) {
|
|
93
|
+
const v = matrix[1].split(", ").map(Number);
|
|
94
|
+
if (v.length === 6) {
|
|
95
|
+
x = v[4];
|
|
96
|
+
y = v[5];
|
|
97
|
+
scale = Math.sqrt(v[0] * v[0] + v[1] * v[1]);
|
|
98
|
+
} else if (v.length === 16) {
|
|
99
|
+
x = v[12];
|
|
100
|
+
y = v[13];
|
|
101
|
+
scale = v[0];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
x,
|
|
107
|
+
y,
|
|
108
|
+
scale
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
var drawerCssVarsRegistered = false;
|
|
112
|
+
/**
|
|
113
|
+
* Removes CSS variable inheritance for high-frequency drawer swipe vars.
|
|
114
|
+
* Uses proper syntax types matching BaseUI:
|
|
115
|
+
* - Length vars (<length>) with initialValue '0px' for use in calc()/translateY()
|
|
116
|
+
* - Number vars (<number>) for opacity/strength scalars
|
|
117
|
+
*/
|
|
118
|
+
function registerDrawerCssProperties() {
|
|
119
|
+
if (drawerCssVarsRegistered || typeof CSS === "undefined" || !CSS.registerProperty) return;
|
|
120
|
+
const lengthVars = [
|
|
121
|
+
DRAWER_CSS_VARS.swipeMovementX,
|
|
122
|
+
DRAWER_CSS_VARS.swipeMovementY,
|
|
123
|
+
DRAWER_CSS_VARS.snapPointOffset
|
|
124
|
+
];
|
|
125
|
+
for (const name of lengthVars) try {
|
|
126
|
+
CSS.registerProperty({
|
|
127
|
+
name,
|
|
128
|
+
syntax: "<length>",
|
|
129
|
+
inherits: false,
|
|
130
|
+
initialValue: "0px"
|
|
131
|
+
});
|
|
132
|
+
} catch {}
|
|
133
|
+
const numberVars = [{
|
|
134
|
+
name: DRAWER_CSS_VARS.swipeProgress,
|
|
135
|
+
initialValue: "0"
|
|
136
|
+
}, {
|
|
137
|
+
name: DRAWER_CSS_VARS.swipeStrength,
|
|
138
|
+
initialValue: "1"
|
|
139
|
+
}];
|
|
140
|
+
for (const { name, initialValue } of numberVars) try {
|
|
141
|
+
CSS.registerProperty({
|
|
142
|
+
name,
|
|
143
|
+
syntax: "<number>",
|
|
144
|
+
inherits: false,
|
|
145
|
+
initialValue
|
|
146
|
+
});
|
|
147
|
+
} catch {}
|
|
148
|
+
drawerCssVarsRegistered = true;
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerRoot.js
|
|
152
|
+
var [injectDrawerRootContext, provideDrawerRootContext] = /*#__PURE__*/ createContext("DrawerRoot");
|
|
153
|
+
var DrawerRoot_default = /* @__PURE__ */ defineComponent({
|
|
154
|
+
__name: "DrawerRoot",
|
|
155
|
+
props: {
|
|
156
|
+
open: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
required: false,
|
|
159
|
+
default: void 0
|
|
160
|
+
},
|
|
161
|
+
defaultOpen: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
required: false,
|
|
164
|
+
default: false
|
|
165
|
+
},
|
|
166
|
+
modal: {
|
|
167
|
+
type: [Boolean, String],
|
|
168
|
+
required: false,
|
|
169
|
+
default: true
|
|
170
|
+
},
|
|
171
|
+
swipeDirection: {
|
|
172
|
+
type: String,
|
|
173
|
+
required: false,
|
|
174
|
+
default: "down"
|
|
175
|
+
},
|
|
176
|
+
snapPoints: {
|
|
177
|
+
type: Array,
|
|
178
|
+
required: false,
|
|
179
|
+
default: void 0
|
|
180
|
+
},
|
|
181
|
+
snapPoint: {
|
|
182
|
+
type: [
|
|
183
|
+
Number,
|
|
184
|
+
String,
|
|
185
|
+
null
|
|
186
|
+
],
|
|
187
|
+
required: false,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
190
|
+
defaultSnapPoint: {
|
|
191
|
+
type: [
|
|
192
|
+
Number,
|
|
193
|
+
String,
|
|
194
|
+
null
|
|
195
|
+
],
|
|
196
|
+
required: false,
|
|
197
|
+
default: void 0
|
|
198
|
+
},
|
|
199
|
+
snapToSequentialPoints: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
required: false,
|
|
202
|
+
default: false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
emits: [
|
|
206
|
+
"update:open",
|
|
207
|
+
"update:openComplete",
|
|
208
|
+
"update:snapPoint"
|
|
209
|
+
],
|
|
210
|
+
setup(__props, { emit: __emit }) {
|
|
211
|
+
const props = __props;
|
|
212
|
+
const emit = __emit;
|
|
213
|
+
const uncontrolledOpen = ref(props.defaultOpen);
|
|
214
|
+
const open = computed({
|
|
215
|
+
get: () => props.open ?? uncontrolledOpen.value,
|
|
216
|
+
set: (value) => {
|
|
217
|
+
uncontrolledOpen.value = value;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
const activeSnapPoint = useVModel(props, "snapPoint", emit, {
|
|
221
|
+
defaultValue: props.defaultSnapPoint ?? null,
|
|
222
|
+
passive: props.snapPoint === void 0,
|
|
223
|
+
eventName: "update:snapPoint"
|
|
224
|
+
});
|
|
225
|
+
const { modal, swipeDirection, snapPoints, snapToSequentialPoints } = toRefs(props);
|
|
226
|
+
const triggerElement = ref();
|
|
227
|
+
const contentElement = ref();
|
|
228
|
+
const popupHeight = ref(0);
|
|
229
|
+
const frontmostHeight = ref(0);
|
|
230
|
+
const hasNestedDrawer = ref(false);
|
|
231
|
+
const nestedOpenDrawerCount = ref(0);
|
|
232
|
+
const nestedSwiping = ref(false);
|
|
233
|
+
const isSwiping = ref(false);
|
|
234
|
+
const nestedSwipeProgressStore = createNestedSwipeProgressStore();
|
|
235
|
+
const parentContext = injectDrawerRootContext(null);
|
|
236
|
+
const providerContext = injectDrawerProviderContext(null);
|
|
237
|
+
const contentId = useId(void 0, "reka-drawer-content");
|
|
238
|
+
const titleId = useId(void 0, "reka-drawer-title");
|
|
239
|
+
const descriptionId = useId(void 0, "reka-drawer-description");
|
|
240
|
+
provideDrawerRootContext({
|
|
241
|
+
open,
|
|
242
|
+
modal,
|
|
243
|
+
swipeDirection,
|
|
244
|
+
snapPoints,
|
|
245
|
+
activeSnapPoint,
|
|
246
|
+
snapToSequentialPoints,
|
|
247
|
+
popupHeight,
|
|
248
|
+
frontmostHeight,
|
|
249
|
+
hasNestedDrawer,
|
|
250
|
+
nestedOpenDrawerCount,
|
|
251
|
+
nestedSwiping,
|
|
252
|
+
isSwiping,
|
|
253
|
+
nestedSwipeProgressStore,
|
|
254
|
+
onOpenChange: handleOpenChange,
|
|
255
|
+
onOpenToggle: handleOpenToggle,
|
|
256
|
+
notifyOpenComplete(value) {
|
|
257
|
+
emit("update:openComplete", value);
|
|
258
|
+
},
|
|
259
|
+
setActiveSnapPoint(point) {
|
|
260
|
+
activeSnapPoint.value = point;
|
|
261
|
+
},
|
|
262
|
+
onPopupHeightChange(h$1) {
|
|
263
|
+
popupHeight.value = h$1;
|
|
264
|
+
providerContext?.visualStateStore.set({ frontmostHeight: h$1 });
|
|
265
|
+
},
|
|
266
|
+
onNestedFrontmostHeightChange(h$1) {
|
|
267
|
+
frontmostHeight.value = h$1;
|
|
268
|
+
},
|
|
269
|
+
onNestedDrawerPresenceChange(present) {
|
|
270
|
+
if (present) nestedOpenDrawerCount.value++;
|
|
271
|
+
else nestedOpenDrawerCount.value = Math.max(0, nestedOpenDrawerCount.value - 1);
|
|
272
|
+
hasNestedDrawer.value = nestedOpenDrawerCount.value > 0;
|
|
273
|
+
parentContext?.notifyParentHasNestedDrawer?.(present);
|
|
274
|
+
},
|
|
275
|
+
onNestedSwipingChange(swiping) {
|
|
276
|
+
nestedSwiping.value = swiping;
|
|
277
|
+
parentContext?.notifyParentSwipingChange?.(swiping);
|
|
278
|
+
},
|
|
279
|
+
onNestedSwipeProgressChange(progress) {
|
|
280
|
+
nestedSwipeProgressStore.set(progress);
|
|
281
|
+
parentContext?.notifyParentSwipeProgressChange?.(progress);
|
|
282
|
+
providerContext?.visualStateStore.set({ swipeProgress: progress });
|
|
283
|
+
},
|
|
284
|
+
onSwipingChange(swiping) {
|
|
285
|
+
isSwiping.value = swiping;
|
|
286
|
+
},
|
|
287
|
+
notifyParentFrontmostHeight: parentContext?.onNestedFrontmostHeightChange,
|
|
288
|
+
notifyParentSwipingChange: parentContext?.onNestedSwipingChange,
|
|
289
|
+
notifyParentSwipeProgressChange: parentContext?.onNestedSwipeProgressChange,
|
|
290
|
+
notifyParentHasNestedDrawer: parentContext?.onNestedDrawerPresenceChange,
|
|
291
|
+
triggerElement,
|
|
292
|
+
contentElement,
|
|
293
|
+
contentId,
|
|
294
|
+
titleId,
|
|
295
|
+
descriptionId
|
|
296
|
+
});
|
|
297
|
+
function handleClose() {
|
|
298
|
+
handleOpenChange(false, "close-press");
|
|
299
|
+
}
|
|
300
|
+
function handleOpenChange(value, reason) {
|
|
301
|
+
if (open.value === value) return;
|
|
302
|
+
const details = reason ? { reason } : void 0;
|
|
303
|
+
uncontrolledOpen.value = value;
|
|
304
|
+
emit("update:open", value, details);
|
|
305
|
+
}
|
|
306
|
+
function handleOpenToggle() {
|
|
307
|
+
handleOpenChange(!open.value, "trigger-press");
|
|
308
|
+
}
|
|
309
|
+
watch(open, (isOpen) => {
|
|
310
|
+
if (isOpen) providerContext?.setDrawerOpen(contentId, true);
|
|
311
|
+
else providerContext?.setDrawerOpen(contentId, false);
|
|
312
|
+
}, { immediate: true });
|
|
313
|
+
onUnmounted(() => {
|
|
314
|
+
providerContext?.removeDrawer(contentId);
|
|
315
|
+
});
|
|
316
|
+
return (_ctx, _cache) => {
|
|
317
|
+
return renderSlot(_ctx.$slots, "default", {
|
|
318
|
+
open: open.value,
|
|
319
|
+
close: handleClose
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
//#endregion
|
|
325
|
+
export { getDisplacement as a, computeSwipeReleaseScalar as i, injectDrawerRootContext as n, getElementTransform as o, DRAWER_CSS_VARS as r, registerDrawerCssProperties as s, DrawerRoot_default as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as Primitive } from "./Primitive.js";
|
|
2
|
+
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
|
+
import { n as injectDrawerRootContext } from "./DrawerRoot.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Drawer/DrawerTitle.js
|
|
6
|
+
var DrawerTitle_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "DrawerTitle",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
as: {
|
|
14
|
+
type: null,
|
|
15
|
+
required: false,
|
|
16
|
+
default: "h2"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const rootContext = injectDrawerRootContext();
|
|
22
|
+
useForwardExpose();
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(props, { id: unref(rootContext).titleId }), {
|
|
25
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["id"]);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DrawerTitle_default as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Teleport_default } from "./Teleport.js";
|
|
2
2
|
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
3
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Menu/MenuPortal.js
|
|
4
4
|
var MenuPortal_default = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MenuPortal",
|
|
6
6
|
props: {
|
|
@@ -32,7 +32,7 @@ var MenuPortal_default = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
35
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuPortal.js
|
|
36
36
|
var DropdownMenuPortal_default = /* @__PURE__ */ defineComponent({
|
|
37
37
|
__name: "DropdownMenuPortal",
|
|
38
38
|
props: {
|
|
@@ -4,7 +4,7 @@ import { t as useDirection } from "./useDirection.js";
|
|
|
4
4
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
5
|
import { t as MenuRoot_default } from "./MenuRoot.js";
|
|
6
6
|
import { createBlock, defineComponent, isRef, openBlock, ref, renderSlot, toRefs, unref, withCtx } from "vue";
|
|
7
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
7
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuRoot.js
|
|
8
8
|
var [injectDropdownMenuRootContext, provideDropdownMenuRootContext] = /*#__PURE__*/ createContext("DropdownMenuRoot");
|
|
9
9
|
var DropdownMenuRoot_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "DropdownMenuRoot",
|
|
@@ -3,10 +3,11 @@ import { a as isClient, h as tryOnBeforeUnmount, n as createGlobalState, r as cr
|
|
|
3
3
|
import { s as useEventListener } from "./dist2.js";
|
|
4
4
|
import { t as Primitive } from "./Primitive.js";
|
|
5
5
|
import { n as injectConfigProviderContext } from "./ConfigProvider.js";
|
|
6
|
+
import { n as context } from "./DismissableLayer.js";
|
|
6
7
|
import { t as defu } from "./defu.js";
|
|
7
8
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
8
9
|
import { computed, createBlock, defineComponent, nextTick, openBlock, reactive, ref, renderSlot, unref, watch, watchEffect, withCtx } from "vue";
|
|
9
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
10
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useBodyScrollLock.js
|
|
10
11
|
var useBodyLockStackCount = createSharedComposable(() => {
|
|
11
12
|
const map = ref(/* @__PURE__ */ new Map());
|
|
12
13
|
const initialOverflow = ref();
|
|
@@ -14,12 +15,12 @@ var useBodyLockStackCount = createSharedComposable(() => {
|
|
|
14
15
|
for (const value of map.value.values()) if (value) return true;
|
|
15
16
|
return false;
|
|
16
17
|
});
|
|
17
|
-
const context = injectConfigProviderContext({ scrollBody: ref(true) });
|
|
18
|
+
const context$1 = injectConfigProviderContext({ scrollBody: ref(true) });
|
|
18
19
|
let stopTouchMoveListener = null;
|
|
19
20
|
const resetBodyStyle = () => {
|
|
20
21
|
document.body.style.paddingRight = "";
|
|
21
22
|
document.body.style.marginRight = "";
|
|
22
|
-
document.body.style.pointerEvents = "";
|
|
23
|
+
if (context.layersWithOutsidePointerEventsDisabled.size === 0) document.body.style.pointerEvents = "";
|
|
23
24
|
document.documentElement.style.removeProperty("--scrollbar-width");
|
|
24
25
|
document.body.style.overflow = initialOverflow.value ?? "";
|
|
25
26
|
isIOS && stopTouchMoveListener?.();
|
|
@@ -37,9 +38,9 @@ var useBodyLockStackCount = createSharedComposable(() => {
|
|
|
37
38
|
padding: verticalScrollbarWidth,
|
|
38
39
|
margin: 0
|
|
39
40
|
};
|
|
40
|
-
const config = context.scrollBody?.value ? typeof context.scrollBody.value === "object" ? defu({
|
|
41
|
-
padding: context.scrollBody.value.padding === true ? verticalScrollbarWidth : context.scrollBody.value.padding,
|
|
42
|
-
margin: context.scrollBody.value.margin === true ? verticalScrollbarWidth : context.scrollBody.value.margin
|
|
41
|
+
const config = context$1.scrollBody?.value ? typeof context$1.scrollBody.value === "object" ? defu({
|
|
42
|
+
padding: context$1.scrollBody.value.padding === true ? verticalScrollbarWidth : context$1.scrollBody.value.padding,
|
|
43
|
+
margin: context$1.scrollBody.value.margin === true ? verticalScrollbarWidth : context$1.scrollBody.value.margin
|
|
43
44
|
}, defaultConfig) : defaultConfig : {
|
|
44
45
|
padding: 0,
|
|
45
46
|
margin: 0
|
|
@@ -93,7 +94,7 @@ function preventDefault(rawEvent) {
|
|
|
93
94
|
return false;
|
|
94
95
|
}
|
|
95
96
|
//#endregion
|
|
96
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
97
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/FocusScope/stack.js
|
|
97
98
|
var useFocusStackState = createGlobalState(() => {
|
|
98
99
|
return ref([]);
|
|
99
100
|
});
|
|
@@ -120,7 +121,7 @@ function arrayRemove(array, item) {
|
|
|
120
121
|
return updatedArray;
|
|
121
122
|
}
|
|
122
123
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
124
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/FocusScope/utils.js
|
|
124
125
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
125
126
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
126
127
|
var EVENT_OPTIONS = {
|
|
@@ -192,7 +193,7 @@ function focus(element, { select = false } = {}) {
|
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
//#endregion
|
|
195
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
196
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/FocusScope/FocusScope.js
|
|
196
197
|
var FocusScope_default = /* @__PURE__ */ defineComponent({
|
|
197
198
|
__name: "FocusScope",
|
|
198
199
|
props: {
|
|
@@ -256,6 +257,8 @@ var FocusScope_default = /* @__PURE__ */ defineComponent({
|
|
|
256
257
|
const lastFocusedElement = lastFocusedElementRef.value;
|
|
257
258
|
if (lastFocusedElement === null) return;
|
|
258
259
|
if (!mutations.some((m) => m.removedNodes.length > 0)) return;
|
|
260
|
+
const activeElement = getActiveElement();
|
|
261
|
+
if (activeElement && container.contains(activeElement)) return;
|
|
259
262
|
if (!container.contains(lastFocusedElement)) focus(container);
|
|
260
263
|
}
|
|
261
264
|
document.addEventListener("focusin", handleFocusIn);
|
|
@@ -354,4 +357,4 @@ var FocusScope_default = /* @__PURE__ */ defineComponent({
|
|
|
354
357
|
}
|
|
355
358
|
});
|
|
356
359
|
//#endregion
|
|
357
|
-
export {
|
|
360
|
+
export { focus as n, useBodyScrollLock as r, FocusScope_default as t };
|
package/dist/es/chunks/Label.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Primitive } from "./Primitive.js";
|
|
2
2
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
3
3
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
4
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Label/Label.js
|
|
5
5
|
var Label_default = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "Label",
|
|
7
7
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as PopperAnchor_default } from "./PopperAnchor.js";
|
|
2
2
|
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
3
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Menu/MenuAnchor.js
|
|
4
4
|
var MenuAnchor_default = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MenuAnchor",
|
|
6
6
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as createContext } from "./createContext.js";
|
|
2
2
|
import { t as getActiveElement } from "./getActiveElement.js";
|
|
3
3
|
import { t as useArrowNavigation } from "./useArrowNavigation.js";
|
|
4
|
-
import {
|
|
4
|
+
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
5
|
+
import { r as useBodyScrollLock, t as FocusScope_default } from "./FocusScope.js";
|
|
5
6
|
import { t as useFocusGuards } from "./useFocusGuards.js";
|
|
6
7
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
7
8
|
import { t as useTypeahead } from "./useTypeahead.js";
|
|
8
|
-
import { t as DismissableLayer_default } from "./DismissableLayer.js";
|
|
9
9
|
import { c as getOpenState, l as isMouseEvent, r as LAST_KEYS, s as focusFirst, t as FIRST_LAST_KEYS, u as isPointerInGraceArea } from "./utils.js";
|
|
10
10
|
import { n as PopperContent_default, t as PopperContentPropsDefaultValue } from "./PopperContent.js";
|
|
11
11
|
import { t as RovingFocusGroup_default } from "./RovingFocusGroup.js";
|
|
12
12
|
import { n as injectMenuContext, r as injectMenuRootContext } from "./MenuRoot.js";
|
|
13
13
|
import { createBlock, createVNode, defineComponent, mergeDefaults, onUnmounted, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx } from "vue";
|
|
14
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
14
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Menu/MenuContentImpl.js
|
|
15
15
|
var [injectMenuContentContext, provideMenuContentContext] = /*#__PURE__*/ createContext("MenuContent");
|
|
16
16
|
var MenuContentImpl_default = /* @__PURE__ */ defineComponent({
|
|
17
17
|
__name: "MenuContentImpl",
|
|
@@ -2,7 +2,7 @@ import { t as createContext } from "./createContext.js";
|
|
|
2
2
|
import { t as Primitive } from "./Primitive.js";
|
|
3
3
|
import { t as useId } from "./useId.js";
|
|
4
4
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
5
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Menu/MenuGroup.js
|
|
6
6
|
var [injectMenuGroupContext, provideMenuGroupContext] = /*#__PURE__*/ createContext("MenuGroup");
|
|
7
7
|
var MenuGroup_default = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "MenuGroup",
|
|
@@ -5,7 +5,7 @@ import { l as isMouseEvent } from "./utils.js";
|
|
|
5
5
|
import { t as useCollection } from "./Collection.js";
|
|
6
6
|
import { n as injectMenuContentContext } from "./MenuContentImpl.js";
|
|
7
7
|
import { computed, createBlock, createVNode, defineComponent, mergeProps, nextTick, openBlock, ref, renderSlot, unref, withCtx } from "vue";
|
|
8
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
8
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Menu/MenuItemImpl.js
|
|
9
9
|
var MenuItemImpl_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
inheritAttrs: false,
|
|
11
11
|
__name: "MenuItemImpl",
|
|
@@ -65,10 +65,11 @@ var MenuItemImpl_default = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
onPointermove: handlePointerMove,
|
|
66
66
|
onPointerleave: handlePointerLeave,
|
|
67
67
|
onFocus: _cache[0] || (_cache[0] = async (event) => {
|
|
68
|
+
const item = event.currentTarget;
|
|
68
69
|
await nextTick();
|
|
69
70
|
if (event.defaultPrevented || _ctx.disabled) return;
|
|
70
71
|
isFocused.value = true;
|
|
71
|
-
unref(contentContext).highlightedElement.value =
|
|
72
|
+
unref(contentContext).highlightedElement.value = item;
|
|
72
73
|
}),
|
|
73
74
|
onBlur: _cache[1] || (_cache[1] = async (event) => {
|
|
74
75
|
await nextTick();
|