@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,7 +5,7 @@ import { t as Primitive } from "./Primitive.js";
|
|
|
5
5
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
6
6
|
import { t as useForwardProps } from "./useForwardProps.js";
|
|
7
7
|
import { computed, createBlock, defineComponent, mergeProps, onMounted, openBlock, 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/Combobox/ComboboxTrigger.js
|
|
9
9
|
var ComboboxTrigger_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "ComboboxTrigger",
|
|
11
11
|
props: {
|
|
@@ -23,6 +23,9 @@ import { t as dropdown_menu_sub_trigger_default } from "./dropdown-menu-sub-trig
|
|
|
23
23
|
import { t as popover_content_default } from "./popover-content.js";
|
|
24
24
|
import { t as popover_trigger_default } from "./popover-trigger.js";
|
|
25
25
|
import { t as range_calendar_default } from "./range-calendar.js";
|
|
26
|
+
import { t as drawer_content_default } from "./drawer-content.js";
|
|
27
|
+
import { t as drawer_trigger_default } from "./drawer-trigger.js";
|
|
28
|
+
import { t as drawer_body_default } from "./drawer-body.js";
|
|
26
29
|
import { t as dropdown_menu_group_default } from "./dropdown-menu-group.js";
|
|
27
30
|
import { t as dropdown_menu_sub_default } from "./dropdown-menu-sub.js";
|
|
28
31
|
import { t as dropdown_menu_trigger_default } from "./dropdown-menu-trigger.js";
|
|
@@ -82,6 +85,28 @@ import { t as combobox_root_default } from "./combobox-root.js";
|
|
|
82
85
|
import { t as combobox_separator_default } from "./combobox-separator.js";
|
|
83
86
|
import { t as combobox_default } from "./combobox.js";
|
|
84
87
|
import { t as date_picker_default } from "./date-picker.js";
|
|
88
|
+
import { t as modal_body_default } from "./modal-body.js";
|
|
89
|
+
import { t as dialog_body_default } from "./dialog-body.js";
|
|
90
|
+
import { t as drawer_close_default } from "./drawer-close.js";
|
|
91
|
+
import { t as modal_close_default } from "./modal-close.js";
|
|
92
|
+
import { t as dialog_close_default } from "./dialog-close.js";
|
|
93
|
+
import { t as modal_content_default } from "./modal-content.js";
|
|
94
|
+
import { t as dialog_content_default } from "./dialog-content.js";
|
|
95
|
+
import { t as dialog_description_default } from "./dialog-description.js";
|
|
96
|
+
import { t as drawer_footer_default } from "./drawer-footer.js";
|
|
97
|
+
import { t as modal_footer_default } from "./modal-footer.js";
|
|
98
|
+
import { t as dialog_footer_default } from "./dialog-footer.js";
|
|
99
|
+
import { t as drawer_description_default } from "./drawer-description.js";
|
|
100
|
+
import { t as drawer_title_default } from "./drawer-title.js";
|
|
101
|
+
import { t as drawer_header_default } from "./drawer-header.js";
|
|
102
|
+
import { t as modal_header_default } from "./modal-header.js";
|
|
103
|
+
import { t as dialog_header_default } from "./dialog-header.js";
|
|
104
|
+
import { t as dialog_title_default } from "./dialog-title.js";
|
|
105
|
+
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
106
|
+
import { t as dialog_trigger_default } from "./dialog-trigger.js";
|
|
107
|
+
import { t as dialog_default } from "./dialog.js";
|
|
108
|
+
import { t as drawer_default } from "./drawer.js";
|
|
109
|
+
import { t as modal_default } from "./modal.js";
|
|
85
110
|
import { t as digit_input_group_default } from "./digit-input-group.js";
|
|
86
111
|
import { t as digit_input_default } from "./digit-input.js";
|
|
87
112
|
import { t as dropdown_menu_default } from "./dropdown-menu.js";
|
|
@@ -92,13 +117,6 @@ import { t as tooltip_root_default } from "./tooltip-root.js";
|
|
|
92
117
|
import { t as tooltip_default } from "./tooltip.js";
|
|
93
118
|
import { t as label_default } from "./label2.js";
|
|
94
119
|
import { t as mochi_default } from "./mochi.js";
|
|
95
|
-
import { t as modal_body_default } from "./modal-body.js";
|
|
96
|
-
import { t as modal_close_default } from "./modal-close.js";
|
|
97
|
-
import { t as modal_content_default } from "./modal-content.js";
|
|
98
|
-
import { t as modal_footer_default } from "./modal-footer.js";
|
|
99
|
-
import { t as modal_header_default } from "./modal-header.js";
|
|
100
|
-
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
101
|
-
import { t as modal_default } from "./modal.js";
|
|
102
120
|
import { t as pagination_default } from "./pagination.js";
|
|
103
121
|
import { t as progress_bar_default } from "./progress-bar.js";
|
|
104
122
|
import { t as progress_circle_default } from "./progress-circle.js";
|
|
@@ -204,9 +222,27 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
204
222
|
ContentDivider: () => content_divider_default,
|
|
205
223
|
CounterInput: () => counter_input_default,
|
|
206
224
|
DatePicker: () => date_picker_default,
|
|
225
|
+
Dialog: () => dialog_default,
|
|
226
|
+
DialogBody: () => dialog_body_default,
|
|
227
|
+
DialogClose: () => dialog_close_default,
|
|
228
|
+
DialogContent: () => dialog_content_default,
|
|
229
|
+
DialogDescription: () => dialog_description_default,
|
|
230
|
+
DialogFooter: () => dialog_footer_default,
|
|
231
|
+
DialogHeader: () => dialog_header_default,
|
|
232
|
+
DialogTitle: () => dialog_title_default,
|
|
233
|
+
DialogTrigger: () => dialog_trigger_default,
|
|
207
234
|
DigitInput: () => digit_input_default,
|
|
208
235
|
DigitInputGroup: () => digit_input_group_default,
|
|
209
236
|
DigitInputSlot: () => digit_input_slot_default,
|
|
237
|
+
Drawer: () => drawer_default,
|
|
238
|
+
DrawerBody: () => drawer_body_default,
|
|
239
|
+
DrawerClose: () => drawer_close_default,
|
|
240
|
+
DrawerContent: () => drawer_content_default,
|
|
241
|
+
DrawerDescription: () => drawer_description_default,
|
|
242
|
+
DrawerFooter: () => drawer_footer_default,
|
|
243
|
+
DrawerHeader: () => drawer_header_default,
|
|
244
|
+
DrawerTitle: () => drawer_title_default,
|
|
245
|
+
DrawerTrigger: () => drawer_trigger_default,
|
|
210
246
|
DropdownMenu: () => dropdown_menu_default,
|
|
211
247
|
DropdownMenuContent: () => dropdown_menu_content_default,
|
|
212
248
|
DropdownMenuGroup: () => dropdown_menu_group_default,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
2
|
import { t as Primitive } from "./Primitive.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, toDisplayString, 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/component/BaseSeparator.js
|
|
5
5
|
var BaseSeparator_default = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "BaseSeparator",
|
|
7
7
|
props: {
|
|
@@ -52,7 +52,7 @@ var BaseSeparator_default = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
55
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Separator/Separator.js
|
|
56
56
|
var Separator_default = /* @__PURE__ */ defineComponent({
|
|
57
57
|
__name: "Separator",
|
|
58
58
|
props: {
|
|
@@ -15,7 +15,7 @@ import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
|
15
15
|
import { t as VisuallyHiddenInput_default } from "./VisuallyHiddenInput.js";
|
|
16
16
|
import { t as compact_button_default } from "./compact-button.js";
|
|
17
17
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
18
|
-
import { computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, onMounted, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx, withModifiers } from "vue";
|
|
18
|
+
import { computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx, withModifiers } from "vue";
|
|
19
19
|
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.7/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
20
20
|
var $1dfb119a85e764e5$var$formatterCache = /* @__PURE__ */ new Map();
|
|
21
21
|
var $1dfb119a85e764e5$var$supportsSignDisplay = false;
|
|
@@ -357,43 +357,86 @@ function $eb76cf4feb040f77$var$escapeRegex(string) {
|
|
|
357
357
|
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
358
358
|
}
|
|
359
359
|
//#endregion
|
|
360
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
360
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/utils.js
|
|
361
|
+
var HOLD_DELAY = 400;
|
|
362
|
+
var REPEAT_INTERVAL = 60;
|
|
363
|
+
var TOUCH_MOVE_TOLERANCE = 10;
|
|
361
364
|
function usePressedHold(options) {
|
|
362
365
|
const { disabled } = options;
|
|
363
366
|
const timeout = ref();
|
|
364
367
|
const triggerHook = createEventHook();
|
|
365
|
-
const
|
|
366
|
-
const
|
|
368
|
+
const isPressed = ref(false);
|
|
369
|
+
const target = computed(() => unrefElement(options.target));
|
|
370
|
+
let activePointerId;
|
|
371
|
+
let activePointerType = "";
|
|
372
|
+
let startX = 0;
|
|
373
|
+
let startY = 0;
|
|
374
|
+
let holdTriggered = false;
|
|
375
|
+
const resetTimeout = () => {
|
|
376
|
+
if (timeout.value === void 0) return;
|
|
377
|
+
window.clearTimeout(timeout.value);
|
|
378
|
+
timeout.value = void 0;
|
|
379
|
+
};
|
|
380
|
+
const resetPress = () => {
|
|
367
381
|
resetTimeout();
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}, delay);
|
|
382
|
+
activePointerId = void 0;
|
|
383
|
+
activePointerType = "";
|
|
384
|
+
holdTriggered = false;
|
|
385
|
+
isPressed.value = false;
|
|
373
386
|
};
|
|
374
|
-
const
|
|
375
|
-
|
|
387
|
+
const trigger = () => {
|
|
388
|
+
if (disabled.value) {
|
|
389
|
+
resetPress();
|
|
390
|
+
return false;
|
|
391
|
+
}
|
|
392
|
+
triggerHook.trigger();
|
|
393
|
+
return true;
|
|
376
394
|
};
|
|
377
|
-
const
|
|
395
|
+
const scheduleRepeat = (delay) => {
|
|
378
396
|
resetTimeout();
|
|
397
|
+
timeout.value = window.setTimeout(() => {
|
|
398
|
+
holdTriggered = true;
|
|
399
|
+
if (trigger()) scheduleRepeat(REPEAT_INTERVAL);
|
|
400
|
+
}, delay);
|
|
379
401
|
};
|
|
380
|
-
const isPressed = ref(false);
|
|
381
|
-
const target = computed(() => unrefElement(options.target));
|
|
382
402
|
const onPressStart = (event) => {
|
|
383
|
-
if (event.button !== 0 || isPressed.value) return;
|
|
403
|
+
if (event.button !== 0 || isPressed.value || disabled.value) return;
|
|
384
404
|
event.preventDefault();
|
|
405
|
+
activePointerId = event.pointerId;
|
|
406
|
+
activePointerType = event.pointerType;
|
|
407
|
+
startX = event.clientX;
|
|
408
|
+
startY = event.clientY;
|
|
409
|
+
holdTriggered = false;
|
|
385
410
|
isPressed.value = true;
|
|
386
|
-
|
|
411
|
+
if (event.pointerType === "mouse") {
|
|
412
|
+
holdTriggered = true;
|
|
413
|
+
if (trigger()) scheduleRepeat(HOLD_DELAY);
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
scheduleRepeat(HOLD_DELAY);
|
|
387
417
|
};
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
|
|
418
|
+
const onPressMove = (event) => {
|
|
419
|
+
if (event.pointerId !== activePointerId || activePointerType === "mouse") return;
|
|
420
|
+
const distanceX = event.clientX - startX;
|
|
421
|
+
const distanceY = event.clientY - startY;
|
|
422
|
+
if (distanceX * distanceX + distanceY * distanceY > TOUCH_MOVE_TOLERANCE ** 2) resetPress();
|
|
423
|
+
};
|
|
424
|
+
const onPressRelease = (event) => {
|
|
425
|
+
if (event.pointerId !== activePointerId) return;
|
|
426
|
+
const shouldTriggerTap = activePointerType !== "mouse" && !holdTriggered;
|
|
427
|
+
resetPress();
|
|
428
|
+
if (shouldTriggerTap) trigger();
|
|
429
|
+
};
|
|
430
|
+
const onPressCancel = (event) => {
|
|
431
|
+
if (event.pointerId === activePointerId) resetPress();
|
|
391
432
|
};
|
|
392
433
|
if (isClient) {
|
|
393
434
|
useEventListener(target || window, "pointerdown", onPressStart);
|
|
435
|
+
useEventListener(window, "pointermove", onPressMove);
|
|
394
436
|
useEventListener(window, "pointerup", onPressRelease);
|
|
395
|
-
useEventListener(window, "pointercancel",
|
|
437
|
+
useEventListener(window, "pointercancel", onPressCancel);
|
|
396
438
|
}
|
|
439
|
+
onScopeDispose(resetPress);
|
|
397
440
|
return {
|
|
398
441
|
isPressed,
|
|
399
442
|
onTrigger: triggerHook.on
|
|
@@ -421,7 +464,7 @@ function handleDecimalOperation(operator, value1, value2) {
|
|
|
421
464
|
return result;
|
|
422
465
|
}
|
|
423
466
|
//#endregion
|
|
424
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
467
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldRoot.js
|
|
425
468
|
var [injectNumberFieldRootContext, provideNumberFieldRootContext] = /*#__PURE__*/ createContext("NumberFieldRoot");
|
|
426
469
|
var NumberFieldRoot_default = /* @__PURE__ */ defineComponent({
|
|
427
470
|
inheritAttrs: false,
|
|
@@ -648,7 +691,7 @@ var NumberFieldRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
648
691
|
}
|
|
649
692
|
});
|
|
650
693
|
//#endregion
|
|
651
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
694
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldDecrement.js
|
|
652
695
|
var NumberFieldDecrement_default = /* @__PURE__ */ defineComponent({
|
|
653
696
|
__name: "NumberFieldDecrement",
|
|
654
697
|
props: {
|
|
@@ -704,7 +747,7 @@ var NumberFieldDecrement_default = /* @__PURE__ */ defineComponent({
|
|
|
704
747
|
}
|
|
705
748
|
});
|
|
706
749
|
//#endregion
|
|
707
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
750
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldIncrement.js
|
|
708
751
|
var NumberFieldIncrement_default = /* @__PURE__ */ defineComponent({
|
|
709
752
|
__name: "NumberFieldIncrement",
|
|
710
753
|
props: {
|
|
@@ -760,7 +803,7 @@ var NumberFieldIncrement_default = /* @__PURE__ */ defineComponent({
|
|
|
760
803
|
}
|
|
761
804
|
});
|
|
762
805
|
//#endregion
|
|
763
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
806
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldInput.js
|
|
764
807
|
var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
|
|
765
808
|
__name: "NumberFieldInput",
|
|
766
809
|
props: {
|
|
@@ -858,6 +901,7 @@ var NumberFieldInput_default = /* @__PURE__ */ defineComponent({
|
|
|
858
901
|
onWheel: handleWheelEvent,
|
|
859
902
|
onBeforeinput: _cache[0] || (_cache[0] = (event) => {
|
|
860
903
|
if (event.isComposing) return;
|
|
904
|
+
if (event.inputType.startsWith("delete") || event.inputType.startsWith("history")) return;
|
|
861
905
|
const target = event.target;
|
|
862
906
|
let nextValue = target.value.slice(0, target.selectionStart ?? void 0) + (event.data ?? "") + target.value.slice(target.selectionEnd ?? void 0);
|
|
863
907
|
if (!unref(rootContext).validate(nextValue)) event.preventDefault();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.
|
|
2
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
3
3
|
/**
|
|
4
4
|
* @param providerComponentName - The name(s) of the component(s) providing the context.
|
|
5
5
|
*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as drawer_body_default } from "./drawer-body.js";
|
|
4
|
+
import { t as modal_body_default } from "./modal-body.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-body.vue
|
|
9
|
+
var dialog_body_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-body",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_body_default, {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(unref(clsx)("celeste-dialog-body", props.class))
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 8, ["class"])) : (openBlock(), createBlock(modal_body_default, {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: normalizeClass(props.class)
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}), [["__scopeId", "data-v-5b25c361"]]);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { dialog_body_default as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { injectDialogContext } from "../context.js";
|
|
2
|
+
import { t as drawer_close_default } from "./drawer-close.js";
|
|
3
|
+
import { t as modal_close_default } from "./modal-close.js";
|
|
4
|
+
import { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-close.vue
|
|
7
|
+
var dialog_close_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-close",
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const { drawer } = injectDialogContext();
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_close_default, {
|
|
13
|
+
key: 0,
|
|
14
|
+
"as-child": ""
|
|
15
|
+
}, {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
})) : (openBlock(), createBlock(modal_close_default, { key: 1 }, {
|
|
19
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { dialog_close_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as drawer_content_default } from "./drawer-content.js";
|
|
2
|
+
import { injectDialogContext } from "../context.js";
|
|
3
|
+
import { t as modal_content_default } from "./modal-content.js";
|
|
4
|
+
import { createBlock, defineComponent, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-content.vue
|
|
7
|
+
var dialog_content_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-content",
|
|
9
|
+
props: { style: { type: [
|
|
10
|
+
Boolean,
|
|
11
|
+
null,
|
|
12
|
+
String,
|
|
13
|
+
Object,
|
|
14
|
+
Array
|
|
15
|
+
] } },
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { drawer } = injectDialogContext();
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_content_default, { key: 0 }, {
|
|
21
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
22
|
+
_: 3
|
|
23
|
+
})) : (openBlock(), createBlock(modal_content_default, {
|
|
24
|
+
key: 1,
|
|
25
|
+
style: normalizeStyle(props.style)
|
|
26
|
+
}, {
|
|
27
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
28
|
+
_: 3
|
|
29
|
+
}, 8, ["style"]));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { dialog_content_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as DialogDescription_default } from "./DialogDescription.js";
|
|
4
|
+
import { t as DrawerDescription_default } from "./DrawerDescription.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-description.vue
|
|
9
|
+
var dialog_description_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-description",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(drawer) ? unref(DrawerDescription_default) : unref(DialogDescription_default)), { class: normalizeClass(unref(clsx)("celeste-dialog-description", props.class)) }, {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}), [["__scopeId", "data-v-fd5ff31d"]]);
|
|
29
|
+
//#endregion
|
|
30
|
+
export { dialog_description_default as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { injectDialogContext } from "../context.js";
|
|
4
|
+
import { t as drawer_footer_default } from "./drawer-footer.js";
|
|
5
|
+
import { t as modal_footer_default } from "./modal-footer.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-footer.vue
|
|
9
|
+
var dialog_footer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-footer",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_footer_default, {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: normalizeClass(props.class)
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
27
|
+
_: 3
|
|
28
|
+
}, 8, ["class"])) : (openBlock(), createBlock(modal_footer_default, {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: normalizeClass(unref(clsx)("celeste-dialog-footer", props.class))
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
33
|
+
_: 3
|
|
34
|
+
}, 8, ["class"]));
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}), [["__scopeId", "data-v-d868b08a"]]);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { dialog_footer_default as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { injectDialogContext } from "../context.js";
|
|
2
|
+
import { t as drawer_header_default } from "./drawer-header.js";
|
|
3
|
+
import { t as modal_header_default } from "./modal-header.js";
|
|
4
|
+
import { createBlock, defineComponent, mergeProps, normalizeProps, openBlock, unref } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-header.vue
|
|
7
|
+
var dialog_header_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-header",
|
|
9
|
+
props: {
|
|
10
|
+
title: {},
|
|
11
|
+
description: {},
|
|
12
|
+
icon: {},
|
|
13
|
+
dismissible: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: true
|
|
16
|
+
},
|
|
17
|
+
class: { type: [
|
|
18
|
+
Boolean,
|
|
19
|
+
null,
|
|
20
|
+
String,
|
|
21
|
+
Object,
|
|
22
|
+
Array
|
|
23
|
+
] }
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const { drawer } = injectDialogContext();
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_header_default, mergeProps({ key: 0 }, props, { divider: "" }), null, 16)) : (openBlock(), createBlock(modal_header_default, normalizeProps(mergeProps({ key: 1 }, props)), null, 16));
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { dialog_header_default as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx.js";
|
|
2
|
+
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { t as DialogTitle_default } from "./DialogTitle.js";
|
|
4
|
+
import { t as DrawerTitle_default } from "./DrawerTitle.js";
|
|
5
|
+
import { injectDialogContext } from "../context.js";
|
|
6
|
+
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/dialog/dialog-title.vue
|
|
9
|
+
var dialog_title_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "dialog-title",
|
|
11
|
+
props: { class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] } },
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props;
|
|
20
|
+
const { drawer } = injectDialogContext();
|
|
21
|
+
return (_ctx, _cache) => {
|
|
22
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(drawer) ? unref(DrawerTitle_default) : unref(DialogTitle_default)), { class: normalizeClass(unref(clsx)("celeste-dialog-title", props.class)) }, {
|
|
23
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
24
|
+
_: 3
|
|
25
|
+
}, 8, ["class"]);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}), [["__scopeId", "data-v-b3eb21b2"]]);
|
|
29
|
+
//#endregion
|
|
30
|
+
export { dialog_title_default as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as drawer_trigger_default } from "./drawer-trigger.js";
|
|
2
|
+
import { injectDialogContext } from "../context.js";
|
|
3
|
+
import { t as modal_trigger_default } from "./modal-trigger.js";
|
|
4
|
+
import { createBlock, defineComponent, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/components/dialog/dialog-trigger.vue
|
|
7
|
+
var dialog_trigger_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dialog-trigger",
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const { drawer } = injectDialogContext();
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_trigger_default, {
|
|
13
|
+
key: 0,
|
|
14
|
+
"as-child": ""
|
|
15
|
+
}, {
|
|
16
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
17
|
+
_: 3
|
|
18
|
+
})) : (openBlock(), createBlock(modal_trigger_default, { key: 1 }, {
|
|
19
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { dialog_trigger_default as t };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { c as useMediaQuery, p as useVModel } from "./dist2.js";
|
|
2
|
+
import { provideDialogContext } from "../context.js";
|
|
3
|
+
import { t as drawer_default } from "./drawer.js";
|
|
4
|
+
import { t as modal_default } from "./modal.js";
|
|
5
|
+
import { createBlock, defineComponent, isRef, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
|
+
//#region ../celeste-tokens/dist/json/breakpoint.json
|
|
7
|
+
var breakpoint = {
|
|
8
|
+
"sm": {
|
|
9
|
+
"$value": 640,
|
|
10
|
+
"$type": "dimension"
|
|
11
|
+
},
|
|
12
|
+
"md": {
|
|
13
|
+
"$value": 768,
|
|
14
|
+
"$type": "dimension"
|
|
15
|
+
},
|
|
16
|
+
"lg": {
|
|
17
|
+
"$value": 1024,
|
|
18
|
+
"$type": "dimension"
|
|
19
|
+
},
|
|
20
|
+
"xl": {
|
|
21
|
+
"$value": 1280,
|
|
22
|
+
"$type": "dimension"
|
|
23
|
+
},
|
|
24
|
+
"2xl": {
|
|
25
|
+
"$value": 1536,
|
|
26
|
+
"$type": "dimension"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/components/dialog/dialog.vue
|
|
31
|
+
var dialog_default = /* @__PURE__ */ defineComponent({
|
|
32
|
+
__name: "dialog",
|
|
33
|
+
props: {
|
|
34
|
+
open: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: void 0
|
|
37
|
+
},
|
|
38
|
+
defaultOpen: { type: Boolean },
|
|
39
|
+
breakpoint: { default: "sm" }
|
|
40
|
+
},
|
|
41
|
+
emits: ["update:open"],
|
|
42
|
+
setup(__props, { emit: __emit }) {
|
|
43
|
+
const props = __props;
|
|
44
|
+
const open = useVModel(props, "open", __emit, {
|
|
45
|
+
passive: true,
|
|
46
|
+
defaultValue: props.defaultOpen
|
|
47
|
+
});
|
|
48
|
+
const drawer = useMediaQuery(() => `(width < ${breakpoint[props.breakpoint].$value}px)`);
|
|
49
|
+
provideDialogContext({ drawer });
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return unref(drawer) ? (openBlock(), createBlock(drawer_default, {
|
|
52
|
+
key: 0,
|
|
53
|
+
open: unref(open),
|
|
54
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isRef(open) ? open.value = $event : null),
|
|
55
|
+
side: "bottom"
|
|
56
|
+
}, {
|
|
57
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 8, ["open"])) : (openBlock(), createBlock(modal_default, {
|
|
60
|
+
key: 1,
|
|
61
|
+
open: unref(open),
|
|
62
|
+
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => isRef(open) ? open.value = $event : null)
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 8, ["open"]));
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { dialog_default as t };
|