@youcan/celeste 0.9.3 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/celeste.css +1030 -634
- package/dist/cjs/bar-chart.cjs +2 -0
- package/dist/cjs/chart-card.cjs +2 -0
- package/dist/cjs/chart-legend.cjs +2 -0
- package/dist/cjs/chart-plot.cjs +2 -0
- package/dist/cjs/chart-tooltip.cjs +25 -0
- package/dist/cjs/chart.cjs +38 -0
- package/dist/cjs/chunks/BubbleSelect.cjs +5 -6
- package/dist/cjs/chunks/CollapsibleRoot.cjs +3 -4
- package/dist/cjs/chunks/Collection.cjs +3 -4
- package/dist/cjs/chunks/ComboboxContent.cjs +7 -7
- package/dist/cjs/chunks/ComboboxGroup.cjs +4 -5
- package/dist/cjs/chunks/ComboboxInput.cjs +3 -4
- package/dist/cjs/chunks/ComboboxItem.cjs +7 -7
- package/dist/cjs/chunks/ComboboxLabel.cjs +1 -2
- package/dist/cjs/chunks/ComboboxRoot.cjs +17 -14
- package/dist/cjs/chunks/ComboboxSeparator.cjs +1 -2
- package/dist/cjs/chunks/ConfigProvider.cjs +2 -2
- package/dist/cjs/chunks/DialogClose.cjs +1 -2
- package/dist/cjs/chunks/DialogDescription.cjs +1 -2
- package/dist/cjs/chunks/DialogPortal.cjs +10 -10
- package/dist/cjs/chunks/DialogRoot.cjs +3 -4
- package/dist/cjs/chunks/DialogTitle.cjs +1 -2
- package/dist/cjs/chunks/DialogTrigger.cjs +1 -2
- package/dist/cjs/chunks/DismissableLayer.cjs +5 -5
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +2 -3
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +3 -4
- package/dist/cjs/chunks/FocusScope.cjs +7 -7
- package/dist/cjs/chunks/Label.cjs +1 -2
- package/dist/cjs/chunks/MenuAnchor.cjs +1 -2
- package/dist/cjs/chunks/MenuContentImpl.cjs +4 -4
- package/dist/cjs/chunks/MenuGroup.cjs +2 -3
- package/dist/cjs/chunks/MenuItemImpl.cjs +1 -2
- package/dist/cjs/chunks/MenuRoot.cjs +8 -8
- package/dist/cjs/chunks/MenuSub.cjs +3 -4
- package/dist/cjs/chunks/PaginationRoot.cjs +3 -4
- package/dist/cjs/chunks/PinInputRoot.cjs +3 -4
- package/dist/cjs/chunks/PopoverRoot.cjs +3 -4
- package/dist/cjs/chunks/PopperAnchor.cjs +1 -2
- package/dist/cjs/chunks/PopperArrow.cjs +2 -3
- package/dist/cjs/chunks/PopperContent.cjs +263 -298
- package/dist/cjs/chunks/PopperRoot.cjs +2 -3
- package/dist/cjs/chunks/Presence.cjs +7 -7
- package/dist/cjs/chunks/Primitive.cjs +5 -6
- package/dist/cjs/chunks/ProgressIndicator.cjs +4 -5
- package/dist/cjs/chunks/RadioGroupRoot.cjs +3 -4
- package/dist/cjs/chunks/RovingFocusGroup.cjs +6 -6
- package/dist/cjs/chunks/RovingFocusItem.cjs +1 -2
- package/dist/cjs/chunks/SelectGroup.cjs +2 -3
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +9 -9
- package/dist/cjs/chunks/TabsRoot.cjs +4 -5
- package/dist/cjs/chunks/Teleport.cjs +2 -3
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +4 -5
- package/dist/cjs/chunks/TooltipProvider.cjs +2 -3
- package/dist/cjs/chunks/TooltipRoot.cjs +5 -5
- package/dist/cjs/chunks/VisuallyHidden.cjs +1 -2
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +4 -4
- package/dist/cjs/chunks/alert.cjs +17 -12
- package/dist/cjs/chunks/alpha-slider.cjs +1 -4
- package/dist/cjs/chunks/badge.cjs +18 -13
- package/dist/cjs/chunks/bar-chart.cjs +10322 -0
- package/dist/cjs/chunks/button.cjs +12 -7
- package/dist/cjs/chunks/calendar.cjs +39 -33
- package/dist/cjs/chunks/chart-card.cjs +69 -0
- package/dist/cjs/chunks/chart-legend.cjs +88 -0
- package/dist/cjs/chunks/chart-plot.cjs +92 -0
- package/dist/cjs/chunks/checkbox-card.cjs +15 -10
- package/dist/cjs/chunks/checkbox-label.cjs +11 -6
- package/dist/cjs/chunks/checkbox.cjs +18 -12
- package/dist/cjs/chunks/clamp.cjs +1 -1
- package/dist/cjs/chunks/collapsible-content.cjs +9 -4
- package/dist/cjs/chunks/collapsible-trigger.cjs +1 -2
- package/dist/cjs/chunks/collapsible.cjs +0 -1
- package/dist/cjs/chunks/color-area.cjs +3 -4
- package/dist/cjs/chunks/color-picker.cjs +69 -42
- package/dist/cjs/chunks/color-swatch.cjs +4 -5
- package/dist/cjs/chunks/combobox-anchor.cjs +11 -5
- package/dist/cjs/chunks/combobox-empty.cjs +10 -5
- package/dist/cjs/chunks/combobox-group.cjs +11 -6
- package/dist/cjs/chunks/combobox-input.cjs +11 -6
- package/dist/cjs/chunks/combobox-item.cjs +23 -17
- package/dist/cjs/chunks/combobox-list.cjs +14 -8
- package/dist/cjs/chunks/combobox-root.cjs +2 -3
- package/dist/cjs/chunks/combobox-separator.cjs +9 -4
- package/dist/cjs/chunks/combobox-trigger.cjs +14 -8
- package/dist/cjs/chunks/combobox.cjs +14 -14
- package/dist/cjs/chunks/compact-button.cjs +13 -8
- package/dist/cjs/chunks/components.cjs +20 -4
- package/dist/cjs/chunks/content-divider.cjs +14 -9
- package/dist/cjs/chunks/counter-input.cjs +145 -111
- package/dist/cjs/chunks/createContext.cjs +1 -2
- package/dist/cjs/chunks/date-picker.cjs +14 -9
- package/dist/cjs/chunks/digit-input-group.cjs +12 -6
- package/dist/cjs/chunks/digit-input-slot.cjs +13 -7
- package/dist/cjs/chunks/digit-input.cjs +13 -7
- package/dist/cjs/chunks/dist.cjs +120 -230
- package/dist/cjs/chunks/dist2.cjs +459 -15492
- package/dist/cjs/chunks/dist3.cjs +16177 -0
- package/dist/cjs/chunks/dropdown-menu-content.cjs +15 -9
- package/dist/cjs/chunks/dropdown-menu-group.cjs +3 -4
- package/dist/cjs/chunks/dropdown-menu-item.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-label.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +11 -6
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +13 -7
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +2 -3
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +3 -4
- package/dist/cjs/chunks/dropdown-menu.cjs +11 -5
- package/dist/cjs/chunks/extra-settings.cjs +3 -7
- package/dist/cjs/chunks/fancy-button.cjs +12 -7
- package/dist/cjs/chunks/file-upload-area.cjs +24 -17
- package/dist/cjs/chunks/getActiveElement.cjs +1 -1
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +1 -1
- package/dist/cjs/chunks/hint-text.cjs +13 -8
- package/dist/cjs/chunks/hue-slider.cjs +3 -6
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +1 -1
- package/dist/cjs/chunks/label2.cjs +15 -10
- package/dist/cjs/chunks/link-bubble.cjs +12 -15
- package/dist/cjs/chunks/link-button.cjs +14 -9
- package/dist/cjs/chunks/menus.cjs +236 -42
- package/dist/cjs/chunks/modal-body.cjs +9 -4
- package/dist/cjs/chunks/modal-close.cjs +0 -1
- package/dist/cjs/chunks/modal-content.cjs +18 -6
- package/dist/cjs/chunks/modal-footer.cjs +9 -4
- package/dist/cjs/chunks/modal-header.cjs +18 -13
- package/dist/cjs/chunks/modal-trigger.cjs +0 -1
- package/dist/cjs/chunks/modal.cjs +0 -1
- package/dist/cjs/chunks/nullish.cjs +1 -1
- package/dist/cjs/chunks/ohash.D__AXeF1.cjs +1 -1
- package/dist/cjs/chunks/pagination-content.cjs +14 -9
- package/dist/cjs/chunks/pagination-ellipsis.cjs +12 -7
- package/dist/cjs/chunks/pagination-first.cjs +11 -5
- package/dist/cjs/chunks/pagination-item.cjs +10 -5
- package/dist/cjs/chunks/pagination-last.cjs +11 -5
- package/dist/cjs/chunks/pagination-next.cjs +11 -5
- package/dist/cjs/chunks/pagination-previous.cjs +11 -5
- package/dist/cjs/chunks/pagination.cjs +12 -6
- package/dist/cjs/chunks/popover-content.cjs +27 -21
- package/dist/cjs/chunks/popover-trigger.cjs +3 -4
- package/dist/cjs/chunks/popover.cjs +0 -1
- package/dist/cjs/chunks/progress-bar.cjs +14 -9
- package/dist/cjs/chunks/progress-circle.cjs +10 -5
- package/dist/cjs/chunks/radio-group-card.cjs +15 -10
- package/dist/cjs/chunks/radio-group-item.cjs +15 -9
- package/dist/cjs/chunks/radio-group-label.cjs +11 -6
- package/dist/cjs/chunks/radio-group.cjs +9 -3
- package/dist/cjs/chunks/range-calendar.cjs +56 -47
- package/dist/cjs/chunks/range-picker.cjs +19 -14
- package/dist/cjs/chunks/rich-editor.cjs +1130 -262
- package/dist/cjs/chunks/{chunk.cjs → rolldown-runtime.cjs} +8 -1
- package/dist/cjs/chunks/scroll-area.cjs +13 -8
- package/dist/cjs/chunks/scroll-bar.cjs +43 -29
- package/dist/cjs/chunks/segmented-control-item.cjs +12 -7
- package/dist/cjs/chunks/segmented-control.cjs +11 -5
- package/dist/cjs/chunks/select-content.cjs +16 -10
- package/dist/cjs/chunks/select-group.cjs +0 -1
- package/dist/cjs/chunks/select-icon.cjs +9 -4
- package/dist/cjs/chunks/select-item.cjs +17 -11
- package/dist/cjs/chunks/select-label.cjs +10 -5
- package/dist/cjs/chunks/select-separator.cjs +10 -5
- package/dist/cjs/chunks/select-trigger.cjs +12 -7
- package/dist/cjs/chunks/select-value.cjs +10 -5
- package/dist/cjs/chunks/select.cjs +9 -3
- package/dist/cjs/chunks/sheet-close.cjs +9 -4
- package/dist/cjs/chunks/sheet-content.cjs +13 -7
- package/dist/cjs/chunks/sheet-description.cjs +11 -6
- package/dist/cjs/chunks/sheet-footer.cjs +9 -4
- package/dist/cjs/chunks/sheet-header.cjs +9 -4
- package/dist/cjs/chunks/sheet-title.cjs +11 -6
- package/dist/cjs/chunks/sheet-trigger.cjs +0 -1
- package/dist/cjs/chunks/sheet.cjs +0 -1
- package/dist/cjs/chunks/sidebar-content.cjs +7 -2
- package/dist/cjs/chunks/sidebar-element.cjs +8 -3
- package/dist/cjs/chunks/sidebar-footer.cjs +7 -2
- package/dist/cjs/chunks/sidebar-group-content.cjs +9 -4
- package/dist/cjs/chunks/sidebar-group-label.cjs +9 -4
- package/dist/cjs/chunks/sidebar-group.cjs +7 -2
- package/dist/cjs/chunks/sidebar-header.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-action.cjs +10 -5
- package/dist/cjs/chunks/sidebar-menu-badge.cjs +11 -6
- package/dist/cjs/chunks/sidebar-menu-button.cjs +11 -6
- package/dist/cjs/chunks/sidebar-menu-item.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +12 -7
- package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu-sub.cjs +7 -2
- package/dist/cjs/chunks/sidebar-menu.cjs +7 -2
- package/dist/cjs/chunks/sidebar-provider.cjs +14 -8
- package/dist/cjs/chunks/sidebar-trigger.cjs +10 -5
- package/dist/cjs/chunks/sidebar.cjs +11 -6
- package/dist/cjs/chunks/slider.cjs +38 -24
- package/dist/cjs/chunks/social-button.cjs +5 -6
- package/dist/cjs/chunks/sonner-alert.cjs +2 -3
- package/dist/cjs/chunks/sonner.cjs +4 -4
- package/dist/cjs/chunks/status-badge.cjs +13 -8
- package/dist/cjs/chunks/switch.cjs +13 -7
- package/dist/cjs/chunks/tab-menu-content.cjs +10 -5
- package/dist/cjs/chunks/tab-menu-item.cjs +12 -6
- package/dist/cjs/chunks/tab-menu-list.cjs +10 -5
- package/dist/cjs/chunks/tab-menu.cjs +2 -3
- package/dist/cjs/chunks/table-body.cjs +9 -4
- package/dist/cjs/chunks/table-caption.cjs +9 -4
- package/dist/cjs/chunks/table-cell.cjs +9 -4
- package/dist/cjs/chunks/table-footer.cjs +9 -4
- package/dist/cjs/chunks/table-head.cjs +9 -4
- package/dist/cjs/chunks/table-header.cjs +7 -2
- package/dist/cjs/chunks/table-row.cjs +9 -4
- package/dist/cjs/chunks/table.cjs +9 -4
- package/dist/cjs/chunks/table2.cjs +9 -4
- package/dist/cjs/chunks/tag.cjs +16 -11
- package/dist/cjs/chunks/text-input-affix.cjs +9 -4
- package/dist/cjs/chunks/text-input-button.cjs +9 -4
- package/dist/cjs/chunks/text-input.cjs +10 -10
- package/dist/cjs/chunks/textarea.cjs +15 -10
- package/dist/cjs/chunks/tooltip-content.cjs +38 -32
- package/dist/cjs/chunks/tooltip-provider.cjs +0 -1
- package/dist/cjs/chunks/tooltip-root.cjs +2 -2
- package/dist/cjs/chunks/tooltip-trigger.cjs +1 -2
- package/dist/cjs/chunks/tooltip.cjs +17 -11
- package/dist/cjs/chunks/use-color-model.cjs +7 -12
- package/dist/cjs/chunks/useArrowNavigation.cjs +1 -1
- package/dist/cjs/chunks/useCalendar.cjs +669 -598
- package/dist/cjs/chunks/useComposing.cjs +1 -2
- package/dist/cjs/chunks/useDirection.cjs +1 -2
- package/dist/cjs/chunks/useEmitAsProps.cjs +1 -2
- package/dist/cjs/chunks/useFocusGuards.cjs +1 -2
- package/dist/cjs/chunks/useFormControl.cjs +2 -3
- package/dist/cjs/chunks/useForwardExpose.cjs +2 -3
- package/dist/cjs/chunks/useForwardProps.cjs +1 -2
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +1 -2
- package/dist/cjs/chunks/useForwardScopeId.cjs +1 -2
- package/dist/cjs/chunks/useHideOthers.cjs +4 -5
- package/dist/cjs/chunks/useId.cjs +3 -3
- package/dist/cjs/chunks/useKbd.cjs +1 -1
- package/dist/cjs/chunks/useLocale.cjs +1 -2
- package/dist/cjs/chunks/useNonce.cjs +1 -2
- package/dist/cjs/chunks/usePrimitiveElement.cjs +2 -3
- package/dist/cjs/chunks/useSize.cjs +2 -3
- 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/color.cjs +1 -3
- package/dist/cjs/command-group.cjs +11 -6
- package/dist/cjs/command-input.cjs +12 -6
- package/dist/cjs/command-item.cjs +10 -4
- package/dist/cjs/command-list.cjs +10 -4
- package/dist/cjs/command-root.cjs +10 -4
- package/dist/cjs/command-separator.cjs +9 -4
- package/dist/cjs/config.cjs +0 -1
- package/dist/cjs/index.cjs +21 -1
- package/dist/cjs/use-chart-motion.cjs +17 -0
- package/dist/cjs/use-delegated-props.cjs +0 -1
- package/dist/cjs/use-locale.cjs +8 -0
- package/dist/cjs/use-sidebar.cjs +1 -1
- package/dist/cjs/use-user-select.cjs +0 -1
- package/dist/components/chart/bar-chart.d.ts +39 -0
- package/dist/components/chart/chart-card.d.ts +26 -0
- package/dist/components/chart/chart-legend.d.ts +32 -0
- package/dist/components/chart/chart-plot.d.ts +35 -0
- package/dist/components/chart/chart-tooltip.d.ts +11 -0
- package/dist/components/chart/index.d.ts +9 -0
- package/dist/components/color-picker/hue-slider.d.ts +1 -4
- package/dist/components/digit-input/digit-input.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/popover/popover-content.d.ts +1 -1
- package/dist/components/progress/progress-bar.d.ts +1 -1
- package/dist/components/text-input/text-input.d.ts +1 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/use-chart-motion.d.ts +7 -0
- package/dist/composables/use-locale.d.ts +2 -0
- package/dist/es/bar-chart.js +2 -0
- package/dist/es/chart-card.js +2 -0
- package/dist/es/chart-legend.js +2 -0
- package/dist/es/chart-plot.js +2 -0
- package/dist/es/chart-tooltip.js +24 -0
- package/dist/es/chart.js +33 -0
- package/dist/es/chunks/BubbleSelect.js +5 -5
- package/dist/es/chunks/CollapsibleRoot.js +3 -3
- package/dist/es/chunks/Collection.js +3 -3
- package/dist/es/chunks/ComboboxContent.js +9 -8
- package/dist/es/chunks/ComboboxGroup.js +4 -4
- package/dist/es/chunks/ComboboxInput.js +3 -3
- package/dist/es/chunks/ComboboxItem.js +7 -6
- package/dist/es/chunks/ComboboxLabel.js +1 -1
- package/dist/es/chunks/ComboboxRoot.js +15 -11
- package/dist/es/chunks/ComboboxSeparator.js +1 -1
- package/dist/es/chunks/ConfigProvider.js +2 -2
- package/dist/es/chunks/DialogClose.js +1 -1
- package/dist/es/chunks/DialogDescription.js +1 -1
- package/dist/es/chunks/DialogPortal.js +10 -9
- package/dist/es/chunks/DialogRoot.js +3 -3
- package/dist/es/chunks/DialogTitle.js +1 -1
- package/dist/es/chunks/DialogTrigger.js +1 -1
- package/dist/es/chunks/DismissableLayer.js +5 -4
- package/dist/es/chunks/DropdownMenuPortal.js +2 -2
- package/dist/es/chunks/DropdownMenuRoot.js +3 -3
- package/dist/es/chunks/FocusScope.js +7 -6
- package/dist/es/chunks/Label.js +1 -1
- package/dist/es/chunks/MenuAnchor.js +1 -1
- package/dist/es/chunks/MenuContentImpl.js +5 -4
- package/dist/es/chunks/MenuGroup.js +2 -2
- package/dist/es/chunks/MenuItemImpl.js +1 -1
- package/dist/es/chunks/MenuRoot.js +6 -5
- package/dist/es/chunks/MenuSub.js +3 -3
- package/dist/es/chunks/PaginationRoot.js +3 -3
- package/dist/es/chunks/PinInputRoot.js +3 -3
- package/dist/es/chunks/PopoverRoot.js +3 -3
- package/dist/es/chunks/PopperAnchor.js +1 -1
- package/dist/es/chunks/PopperArrow.js +3 -3
- package/dist/es/chunks/PopperContent.js +261 -321
- package/dist/es/chunks/PopperRoot.js +2 -2
- package/dist/es/chunks/Presence.js +6 -5
- package/dist/es/chunks/Primitive.js +5 -5
- package/dist/es/chunks/ProgressIndicator.js +4 -4
- package/dist/es/chunks/RadioGroupRoot.js +3 -3
- package/dist/es/chunks/RovingFocusGroup.js +6 -5
- package/dist/es/chunks/RovingFocusItem.js +1 -1
- package/dist/es/chunks/SelectGroup.js +2 -2
- package/dist/es/chunks/SelectItemAlignedPosition.js +10 -9
- package/dist/es/chunks/TabsRoot.js +4 -4
- package/dist/es/chunks/Teleport.js +2 -2
- package/dist/es/chunks/ToggleGroupRoot.js +4 -4
- package/dist/es/chunks/TooltipProvider.js +2 -2
- package/dist/es/chunks/TooltipRoot.js +5 -4
- package/dist/es/chunks/VisuallyHidden.js +1 -1
- package/dist/es/chunks/VisuallyHiddenInput.js +4 -3
- package/dist/es/chunks/alert.js +16 -10
- package/dist/es/chunks/alpha-slider.js +1 -3
- package/dist/es/chunks/badge.js +17 -11
- package/dist/es/chunks/bar-chart.js +10314 -0
- package/dist/es/chunks/button.js +11 -5
- package/dist/es/chunks/calendar.js +39 -32
- package/dist/es/chunks/chart-card.js +63 -0
- package/dist/es/chunks/chart-legend.js +82 -0
- package/dist/es/chunks/chart-plot.js +87 -0
- package/dist/es/chunks/checkbox-card.js +14 -8
- package/dist/es/chunks/checkbox-label.js +10 -4
- package/dist/es/chunks/checkbox.js +18 -11
- package/dist/es/chunks/clamp.js +1 -1
- package/dist/es/chunks/collapsible-content.js +9 -3
- package/dist/es/chunks/collapsible-trigger.js +1 -1
- package/dist/es/chunks/color-area.js +7 -5
- package/dist/es/chunks/color-picker.js +68 -40
- package/dist/es/chunks/color-swatch.js +3 -3
- package/dist/es/chunks/combobox-anchor.js +11 -4
- package/dist/es/chunks/combobox-empty.js +9 -3
- package/dist/es/chunks/combobox-group.js +10 -4
- package/dist/es/chunks/combobox-input.js +10 -4
- package/dist/es/chunks/combobox-item.js +22 -15
- package/dist/es/chunks/combobox-list.js +13 -6
- package/dist/es/chunks/combobox-root.js +1 -1
- package/dist/es/chunks/combobox-separator.js +8 -2
- package/dist/es/chunks/combobox-trigger.js +13 -6
- package/dist/es/chunks/combobox.js +13 -12
- package/dist/es/chunks/compact-button.js +12 -6
- package/dist/es/chunks/components.js +19 -3
- package/dist/es/chunks/content-divider.js +14 -8
- package/dist/es/chunks/counter-input.js +141 -106
- package/dist/es/chunks/createContext.js +1 -1
- package/dist/es/chunks/date-picker.js +13 -7
- package/dist/es/chunks/digit-input-group.js +11 -4
- package/dist/es/chunks/digit-input-slot.js +12 -5
- package/dist/es/chunks/digit-input.js +12 -5
- package/dist/es/chunks/dist.js +90 -205
- package/dist/es/chunks/dist2.js +434 -15275
- package/dist/es/chunks/dist3.js +15890 -0
- package/dist/es/chunks/dropdown-menu-content.js +14 -7
- package/dist/es/chunks/dropdown-menu-group.js +2 -2
- package/dist/es/chunks/dropdown-menu-item.js +12 -5
- package/dist/es/chunks/dropdown-menu-label.js +12 -5
- package/dist/es/chunks/dropdown-menu-separator.js +10 -4
- package/dist/es/chunks/dropdown-menu-sub-content.js +12 -5
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +12 -5
- package/dist/es/chunks/dropdown-menu-sub.js +2 -2
- package/dist/es/chunks/dropdown-menu-trigger.js +2 -2
- package/dist/es/chunks/dropdown-menu.js +10 -3
- package/dist/es/chunks/extra-settings.js +2 -5
- package/dist/es/chunks/fancy-button.js +11 -5
- package/dist/es/chunks/file-upload-area.js +23 -15
- package/dist/es/chunks/getActiveElement.js +1 -1
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +1 -1
- package/dist/es/chunks/hint-text.js +12 -6
- package/dist/es/chunks/hue-slider.js +3 -5
- package/dist/es/chunks/isValueEqualOrExist.js +1 -1
- package/dist/es/chunks/label2.js +14 -8
- package/dist/es/chunks/link-bubble.js +11 -13
- package/dist/es/chunks/link-button.js +13 -7
- package/dist/es/chunks/menus.js +236 -41
- package/dist/es/chunks/modal-body.js +8 -2
- package/dist/es/chunks/modal-content.js +17 -4
- package/dist/es/chunks/modal-footer.js +8 -2
- package/dist/es/chunks/modal-header.js +17 -11
- package/dist/es/chunks/nullish.js +1 -1
- package/dist/es/chunks/ohash.D__AXeF1.js +1 -1
- package/dist/es/chunks/pagination-content.js +12 -6
- package/dist/es/chunks/pagination-ellipsis.js +10 -4
- package/dist/es/chunks/pagination-first.js +11 -4
- package/dist/es/chunks/pagination-item.js +9 -3
- package/dist/es/chunks/pagination-last.js +11 -4
- package/dist/es/chunks/pagination-next.js +11 -4
- package/dist/es/chunks/pagination-previous.js +11 -4
- package/dist/es/chunks/pagination.js +11 -4
- package/dist/es/chunks/popover-content.js +28 -21
- package/dist/es/chunks/popover-trigger.js +2 -2
- package/dist/es/chunks/progress-bar.js +13 -7
- package/dist/es/chunks/progress-circle.js +9 -3
- package/dist/es/chunks/radio-group-card.js +14 -8
- package/dist/es/chunks/radio-group-item.js +15 -8
- package/dist/es/chunks/radio-group-label.js +10 -4
- package/dist/es/chunks/radio-group.js +9 -2
- package/dist/es/chunks/range-calendar.js +56 -46
- package/dist/es/chunks/range-picker.js +19 -13
- package/dist/es/chunks/rich-editor.js +1129 -260
- package/dist/es/chunks/rolldown-runtime.js +34 -0
- package/dist/es/chunks/scroll-area.js +12 -6
- package/dist/es/chunks/scroll-bar.js +39 -24
- package/dist/es/chunks/segmented-control-item.js +11 -5
- package/dist/es/chunks/segmented-control.js +10 -3
- package/dist/es/chunks/select-content.js +15 -8
- package/dist/es/chunks/select-icon.js +8 -2
- package/dist/es/chunks/select-item.js +16 -9
- package/dist/es/chunks/select-label.js +9 -3
- package/dist/es/chunks/select-separator.js +9 -3
- package/dist/es/chunks/select-trigger.js +11 -5
- package/dist/es/chunks/select-value.js +9 -3
- package/dist/es/chunks/select.js +9 -2
- package/dist/es/chunks/sheet-close.js +8 -2
- package/dist/es/chunks/sheet-content.js +12 -5
- package/dist/es/chunks/sheet-description.js +9 -3
- package/dist/es/chunks/sheet-footer.js +8 -2
- package/dist/es/chunks/sheet-header.js +8 -2
- package/dist/es/chunks/sheet-title.js +9 -3
- package/dist/es/chunks/sidebar-content.js +7 -1
- package/dist/es/chunks/sidebar-element.js +8 -2
- package/dist/es/chunks/sidebar-footer.js +7 -1
- package/dist/es/chunks/sidebar-group-content.js +8 -2
- package/dist/es/chunks/sidebar-group-label.js +9 -3
- package/dist/es/chunks/sidebar-group.js +7 -1
- package/dist/es/chunks/sidebar-header.js +7 -1
- package/dist/es/chunks/sidebar-menu-action.js +10 -4
- package/dist/es/chunks/sidebar-menu-badge.js +11 -5
- package/dist/es/chunks/sidebar-menu-button.js +10 -4
- package/dist/es/chunks/sidebar-menu-item.js +7 -1
- package/dist/es/chunks/sidebar-menu-sub-button.js +12 -6
- package/dist/es/chunks/sidebar-menu-sub-item.js +7 -1
- package/dist/es/chunks/sidebar-menu-sub.js +7 -1
- package/dist/es/chunks/sidebar-menu.js +7 -1
- package/dist/es/chunks/sidebar-provider.js +10 -3
- package/dist/es/chunks/sidebar-trigger.js +9 -3
- package/dist/es/chunks/sidebar.js +11 -5
- package/dist/es/chunks/slider.js +38 -23
- package/dist/es/chunks/social-button.js +4 -4
- package/dist/es/chunks/sonner-alert.js +1 -1
- package/dist/es/chunks/sonner.js +4 -3
- package/dist/es/chunks/status-badge.js +12 -6
- package/dist/es/chunks/switch.js +13 -6
- package/dist/es/chunks/tab-menu-content.js +9 -3
- package/dist/es/chunks/tab-menu-item.js +11 -4
- package/dist/es/chunks/tab-menu-list.js +9 -3
- package/dist/es/chunks/tab-menu.js +1 -1
- package/dist/es/chunks/table-body.js +8 -2
- package/dist/es/chunks/table-caption.js +8 -2
- package/dist/es/chunks/table-cell.js +8 -2
- package/dist/es/chunks/table-footer.js +8 -2
- package/dist/es/chunks/table-head.js +8 -2
- package/dist/es/chunks/table-header.js +7 -1
- package/dist/es/chunks/table-row.js +8 -2
- package/dist/es/chunks/table.js +8 -2
- package/dist/es/chunks/table2.js +8 -2
- package/dist/es/chunks/tag.js +15 -9
- package/dist/es/chunks/text-input-affix.js +8 -2
- package/dist/es/chunks/text-input-button.js +8 -2
- package/dist/es/chunks/text-input.js +10 -9
- package/dist/es/chunks/textarea.js +14 -8
- package/dist/es/chunks/tooltip-content.js +38 -31
- package/dist/es/chunks/tooltip-root.js +2 -1
- package/dist/es/chunks/tooltip-trigger.js +1 -1
- package/dist/es/chunks/tooltip.js +17 -10
- package/dist/es/chunks/use-color-model.js +7 -11
- package/dist/es/chunks/useArrowNavigation.js +1 -1
- package/dist/es/chunks/useCalendar.js +656 -584
- package/dist/es/chunks/useComposing.js +1 -1
- package/dist/es/chunks/useDirection.js +1 -1
- package/dist/es/chunks/useEmitAsProps.js +1 -1
- package/dist/es/chunks/useFocusGuards.js +2 -2
- package/dist/es/chunks/useFormControl.js +2 -2
- package/dist/es/chunks/useForwardExpose.js +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/es/chunks/useSize.js +2 -2
- package/dist/es/chunks/useTypeahead.js +2 -2
- 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/color.js +1 -3
- package/dist/es/command-group.js +10 -4
- package/dist/es/command-input.js +11 -4
- package/dist/es/command-item.js +10 -3
- package/dist/es/command-list.js +10 -3
- package/dist/es/command-root.js +10 -3
- package/dist/es/command-separator.js +8 -2
- package/dist/es/index.js +9 -1
- package/dist/es/use-chart-motion.js +15 -0
- package/dist/es/use-locale.js +8 -0
- package/dist/es/use-sidebar.js +1 -1
- package/dist/utils/chart.d.ts +6 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +46 -44
- package/src/components/chart/bar-chart.vue +383 -0
- package/src/components/chart/chart-card.vue +99 -0
- package/src/components/chart/chart-legend.vue +164 -0
- package/src/components/chart/chart-plot.vue +350 -0
- package/src/components/chart/chart-tooltip.ts +35 -0
- package/src/components/chart/index.ts +13 -0
- package/src/components/chart/stories/bar-chart.stories.ts +319 -0
- package/src/components/color-picker/hue-slider.vue +1 -1
- package/src/components/file-upload/file-upload-area.vue +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/text-input/text-input.vue +1 -0
- package/src/components/tooltip/tooltip-content.vue +5 -1
- package/src/composables/index.ts +2 -0
- package/src/composables/use-chart-motion.ts +18 -0
- package/src/composables/use-locale.ts +8 -0
- package/src/utils/chart.ts +42 -0
- package/src/utils/index.ts +1 -0
- package/dist/cjs/chunks/core.cjs +0 -325
- package/dist/es/chunks/core.js +0 -289
|
@@ -13,7 +13,7 @@ var _hoisted_3 = {
|
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/components/radio-group/radio-group-card.vue
|
|
16
|
-
var radio_group_card_default =
|
|
16
|
+
var radio_group_card_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
17
17
|
__name: "radio-group-card",
|
|
18
18
|
props: {
|
|
19
19
|
for: {},
|
|
@@ -21,16 +21,22 @@ var radio_group_card_default = /* @__PURE__ */ _plugin_vue_export_helper_default
|
|
|
21
21
|
as: {},
|
|
22
22
|
required: { type: Boolean },
|
|
23
23
|
disabled: { type: Boolean },
|
|
24
|
-
class: {
|
|
24
|
+
class: { type: [
|
|
25
|
+
Boolean,
|
|
26
|
+
null,
|
|
27
|
+
String,
|
|
28
|
+
Object,
|
|
29
|
+
Array
|
|
30
|
+
] }
|
|
25
31
|
},
|
|
26
32
|
setup(__props) {
|
|
27
33
|
const props = __props;
|
|
28
34
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
29
35
|
return (_ctx, _cache) => {
|
|
30
36
|
return openBlock(), createBlock(unref(Label_default), mergeProps(unref(delegatedProps), {
|
|
31
|
-
"aria-required":
|
|
32
|
-
"aria-disabled":
|
|
33
|
-
class: unref(clsx)("celeste-radio-card", props.class, { "celeste-radio-card-disabled":
|
|
37
|
+
"aria-required": __props.required,
|
|
38
|
+
"aria-disabled": __props.disabled,
|
|
39
|
+
class: unref(clsx)("celeste-radio-card", props.class, { "celeste-radio-card-disabled": __props.disabled })
|
|
34
40
|
}), {
|
|
35
41
|
default: withCtx(() => [
|
|
36
42
|
_ctx.$slots.image || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
|
|
@@ -40,7 +46,7 @@ var radio_group_card_default = /* @__PURE__ */ _plugin_vue_export_helper_default
|
|
|
40
46
|
}, [_ctx.$slots.image ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [_cache[0] || (_cache[0] = createElementVNode("i", {
|
|
41
47
|
class: "celeste-radio-card-preview-fallback",
|
|
42
48
|
"i-celeste-image-circle-fill": ""
|
|
43
|
-
}, null, -1)), renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)], 64)) : _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", {
|
|
49
|
+
}, null, -1)), renderSlot(_ctx.$slots, "image", { class: "i-celeste-image-circle-fill?bg" }, void 0, true)], 64)) : _ctx.$slots.icon ? renderSlot(_ctx.$slots, "icon", {}, void 0, true, 1) : createCommentVNode("", true)], 2)) : createCommentVNode("", true),
|
|
44
50
|
createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [
|
|
45
51
|
createVNode(unref(Primitive), {
|
|
46
52
|
as: "span",
|
|
@@ -62,7 +68,7 @@ var radio_group_card_default = /* @__PURE__ */ _plugin_vue_export_helper_default
|
|
|
62
68
|
"as-child": "",
|
|
63
69
|
class: "celeste-radio-card-badge"
|
|
64
70
|
}, {
|
|
65
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "badge", { disabled:
|
|
71
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "badge", { disabled: __props.disabled }, void 0, true)]),
|
|
66
72
|
_: 3
|
|
67
73
|
})) : createCommentVNode("", true)
|
|
68
74
|
])]), _ctx.$slots.description ? (openBlock(), createBlock(unref(Primitive), {
|
|
@@ -74,7 +80,7 @@ var radio_group_card_default = /* @__PURE__ */ _plugin_vue_export_helper_default
|
|
|
74
80
|
_: 3
|
|
75
81
|
})) : createCommentVNode("", true)]),
|
|
76
82
|
createVNode(unref(Primitive), {
|
|
77
|
-
disabled:
|
|
83
|
+
disabled: __props.disabled,
|
|
78
84
|
"as-child": "",
|
|
79
85
|
class: "celeste-radio-card-radio"
|
|
80
86
|
}, {
|
|
@@ -2,7 +2,7 @@ import { t as clsx } from "./clsx.js";
|
|
|
2
2
|
import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
4
|
import { t as handleAndDispatchCustomEvent } from "./handleAndDispatchCustomEvent.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as useVModel, s as useEventListener } from "./dist2.js";
|
|
6
6
|
import { t as Primitive } from "./Primitive.js";
|
|
7
7
|
import { t as useFormControl } from "./useFormControl.js";
|
|
8
8
|
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
@@ -14,7 +14,7 @@ import { t as RovingFocusItem_default } from "./RovingFocusItem.js";
|
|
|
14
14
|
import { n as injectRadioGroupRootContext } from "./RadioGroupRoot.js";
|
|
15
15
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
16
16
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, toRefs, unref, withCtx, withKeys, withModifiers } from "vue";
|
|
17
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
17
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/utils.js
|
|
18
18
|
var RADIO_SELECT = "radio.select";
|
|
19
19
|
function handleSelect(event, value, callback) {
|
|
20
20
|
handleAndDispatchCustomEvent(RADIO_SELECT, callback, {
|
|
@@ -23,7 +23,7 @@ function handleSelect(event, value, callback) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
26
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/Radio.js
|
|
27
27
|
var Radio_default = /* @__PURE__ */ defineComponent({
|
|
28
28
|
inheritAttrs: false,
|
|
29
29
|
__name: "Radio",
|
|
@@ -138,8 +138,8 @@ var Radio_default = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
//#endregion
|
|
141
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
142
|
-
var [injectRadioGroupItemContext, provideRadiogroupItemContext] =
|
|
141
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/RadioGroupItem.js
|
|
142
|
+
var [injectRadioGroupItemContext, provideRadiogroupItemContext] = /*#__PURE__*/ createContext("RadioGroupItem");
|
|
143
143
|
var RadioGroupItem_default = /* @__PURE__ */ defineComponent({
|
|
144
144
|
inheritAttrs: false,
|
|
145
145
|
__name: "RadioGroupItem",
|
|
@@ -256,7 +256,7 @@ var RadioGroupItem_default = /* @__PURE__ */ defineComponent({
|
|
|
256
256
|
}
|
|
257
257
|
});
|
|
258
258
|
//#endregion
|
|
259
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
259
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/RadioGroupIndicator.js
|
|
260
260
|
var RadioGroupIndicator_default = /* @__PURE__ */ defineComponent({
|
|
261
261
|
__name: "RadioGroupIndicator",
|
|
262
262
|
props: {
|
|
@@ -311,11 +311,18 @@ var radio_group_item_default = /* @__PURE__ */ defineComponent({
|
|
|
311
311
|
as: {},
|
|
312
312
|
name: {},
|
|
313
313
|
required: { type: Boolean },
|
|
314
|
-
class: {
|
|
314
|
+
class: { type: [
|
|
315
|
+
Boolean,
|
|
316
|
+
null,
|
|
317
|
+
String,
|
|
318
|
+
Object,
|
|
319
|
+
Array
|
|
320
|
+
] }
|
|
315
321
|
},
|
|
316
322
|
setup(__props) {
|
|
317
323
|
const props = __props;
|
|
318
|
-
const
|
|
324
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
325
|
+
const forwarded = useForwardPropsEmits(delegatedProps);
|
|
319
326
|
return (_ctx, _cache) => {
|
|
320
327
|
return openBlock(), createBlock(unref(RadioGroupItem_default), mergeProps(unref(forwarded), { class: unref(clsx)("celeste-radio-item", props.class) }), {
|
|
321
328
|
default: withCtx(() => [createVNode(unref(RadioGroupIndicator_default), { class: "celeste-radio-indicator" })]),
|
|
@@ -16,7 +16,7 @@ var _hoisted_3 = {
|
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/components/radio-group/radio-group-label.vue
|
|
19
|
-
var radio_group_label_default =
|
|
19
|
+
var radio_group_label_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
20
20
|
__name: "radio-group-label",
|
|
21
21
|
props: {
|
|
22
22
|
for: {},
|
|
@@ -24,15 +24,21 @@ var radio_group_label_default = /* @__PURE__ */ _plugin_vue_export_helper_defaul
|
|
|
24
24
|
as: {},
|
|
25
25
|
required: { type: Boolean },
|
|
26
26
|
disabled: { type: Boolean },
|
|
27
|
-
class: {
|
|
27
|
+
class: { type: [
|
|
28
|
+
Boolean,
|
|
29
|
+
null,
|
|
30
|
+
String,
|
|
31
|
+
Object,
|
|
32
|
+
Array
|
|
33
|
+
] }
|
|
28
34
|
},
|
|
29
35
|
setup(__props) {
|
|
30
36
|
const props = __props;
|
|
31
37
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
32
38
|
return (_ctx, _cache) => {
|
|
33
39
|
return openBlock(), createBlock(unref(Label_default), mergeProps(unref(delegatedProps), {
|
|
34
|
-
"aria-required":
|
|
35
|
-
"aria-disabled":
|
|
40
|
+
"aria-required": __props.required,
|
|
41
|
+
"aria-disabled": __props.disabled,
|
|
36
42
|
class: unref(clsx)("celeste-radio-label", props.class)
|
|
37
43
|
}), {
|
|
38
44
|
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
@@ -18,13 +18,20 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
as: {},
|
|
19
19
|
name: {},
|
|
20
20
|
required: { type: Boolean },
|
|
21
|
-
class: {
|
|
21
|
+
class: { type: [
|
|
22
|
+
Boolean,
|
|
23
|
+
null,
|
|
24
|
+
String,
|
|
25
|
+
Object,
|
|
26
|
+
Array
|
|
27
|
+
] }
|
|
22
28
|
},
|
|
23
29
|
emits: ["update:modelValue"],
|
|
24
30
|
setup(__props, { emit: __emit }) {
|
|
25
31
|
const props = __props;
|
|
26
32
|
const emits = __emit;
|
|
27
|
-
const
|
|
33
|
+
const delegatedProps = useDelegatedProps(props, "class");
|
|
34
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
28
35
|
return (_ctx, _cache) => {
|
|
29
36
|
return openBlock(), createBlock(unref(RadioGroupRoot_default), mergeProps({ class: unref(clsx)("celeste-radio-wrapper", props.class) }, unref(forwarded)), {
|
|
30
37
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
3
|
import { t as createContext } from "./createContext.js";
|
|
4
|
-
import {
|
|
4
|
+
import { f as useVModel, s as useEventListener } from "./dist2.js";
|
|
5
5
|
import { t as Primitive } from "./Primitive.js";
|
|
6
|
-
import { a as handleCalendarInitialFocus, c as isBefore, d as toDate, f as $
|
|
6
|
+
import { a as handleCalendarInitialFocus, c as isBefore, d as toDate, f as $12a3c853105e5a70$export$ad991b66133851cf, g as $ad063034c8620db8$export$aa8b41735afcabd2, h as $ad063034c8620db8$export$a18c89cbd24170ff, i as getWeekStartsOn, l as isBetween, m as $ad063034c8620db8$export$91b62ebf2ba703ee, o as areAllDaysBetweenValid, p as $ad063034c8620db8$export$629b0a497aa65267, r as getDaysBetween, s as getDefaultDate, t as useCalendar, u as isBetweenInclusive, v as $ad063034c8620db8$export$ea39ec197993aef0 } from "./useCalendar.js";
|
|
7
7
|
import { t as useDirection } from "./useDirection.js";
|
|
8
8
|
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
9
9
|
import { t as useKbd } from "./useKbd.js";
|
|
@@ -11,7 +11,7 @@ import { t as useLocale } from "./useLocale.js";
|
|
|
11
11
|
import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
12
12
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
13
13
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, toRefs, unref, watch, withCtx, withKeys } from "vue";
|
|
14
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
14
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/useRangeCalendar.js
|
|
15
15
|
function useRangeCalendarState(props) {
|
|
16
16
|
const isStartInvalid = computed(() => {
|
|
17
17
|
if (!props.start.value) return false;
|
|
@@ -30,15 +30,15 @@ function useRangeCalendarState(props) {
|
|
|
30
30
|
});
|
|
31
31
|
const isSelectionStart = (date) => {
|
|
32
32
|
if (!props.start.value) return false;
|
|
33
|
-
return $
|
|
33
|
+
return $ad063034c8620db8$export$ea39ec197993aef0(props.start.value, date);
|
|
34
34
|
};
|
|
35
35
|
const isSelectionEnd = (date) => {
|
|
36
36
|
if (!props.end.value) return false;
|
|
37
|
-
return $
|
|
37
|
+
return $ad063034c8620db8$export$ea39ec197993aef0(props.end.value, date);
|
|
38
38
|
};
|
|
39
39
|
const isSelected = (date) => {
|
|
40
|
-
if (props.start.value && $
|
|
41
|
-
if (props.end.value && $
|
|
40
|
+
if (props.start.value && $ad063034c8620db8$export$ea39ec197993aef0(props.start.value, date)) return true;
|
|
41
|
+
if (props.end.value && $ad063034c8620db8$export$ea39ec197993aef0(props.end.value, date)) return true;
|
|
42
42
|
if (props.end.value && props.start.value) return isBetween(date, props.start.value, props.end.value);
|
|
43
43
|
return false;
|
|
44
44
|
};
|
|
@@ -50,14 +50,17 @@ function useRangeCalendarState(props) {
|
|
|
50
50
|
const diff = getDaysBetween(props.start.value, props.end.value).length;
|
|
51
51
|
if (diff <= props.maximumDays.value) {
|
|
52
52
|
const daysLeft = props.maximumDays.value - diff - 1;
|
|
53
|
-
|
|
53
|
+
const startLimit = props.start.value.subtract({ days: daysLeft });
|
|
54
|
+
const endLimit = props.end.value.add({ days: daysLeft });
|
|
55
|
+
return !isBetween(date, startLimit, endLimit);
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
return false;
|
|
57
59
|
}
|
|
58
60
|
if (props.start.value) {
|
|
59
61
|
const maxDate = props.start.value.add({ days: props.maximumDays.value });
|
|
60
|
-
|
|
62
|
+
const minDate = props.start.value.subtract({ days: props.maximumDays.value });
|
|
63
|
+
return !isBetween(date, minDate, maxDate);
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
return false;
|
|
@@ -72,7 +75,7 @@ function useRangeCalendarState(props) {
|
|
|
72
75
|
const isStartBeforeFocused = isBefore(props.start.value, props.focusedValue.value);
|
|
73
76
|
const start = isStartBeforeFocused ? props.start.value : props.focusedValue.value;
|
|
74
77
|
const end = isStartBeforeFocused ? props.focusedValue.value : props.start.value;
|
|
75
|
-
if ($
|
|
78
|
+
if ($ad063034c8620db8$export$ea39ec197993aef0(start, end)) return {
|
|
76
79
|
start,
|
|
77
80
|
end
|
|
78
81
|
};
|
|
@@ -97,11 +100,11 @@ function useRangeCalendarState(props) {
|
|
|
97
100
|
});
|
|
98
101
|
const isHighlightedStart = (date) => {
|
|
99
102
|
if (!highlightedRange.value || !highlightedRange.value.start) return false;
|
|
100
|
-
return $
|
|
103
|
+
return $ad063034c8620db8$export$ea39ec197993aef0(highlightedRange.value.start, date);
|
|
101
104
|
};
|
|
102
105
|
const isHighlightedEnd = (date) => {
|
|
103
106
|
if (!highlightedRange.value || !highlightedRange.value.end) return false;
|
|
104
|
-
return $
|
|
107
|
+
return $ad063034c8620db8$export$ea39ec197993aef0(highlightedRange.value.end, date);
|
|
105
108
|
};
|
|
106
109
|
const hasSelectedDate = computed(() => {
|
|
107
110
|
return !!(props.start.value || props.end.value);
|
|
@@ -137,7 +140,7 @@ function useRangeCalendarState(props) {
|
|
|
137
140
|
};
|
|
138
141
|
}
|
|
139
142
|
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
143
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarRoot.js
|
|
141
144
|
var _hoisted_1$1 = { style: {
|
|
142
145
|
"border": "0px",
|
|
143
146
|
"clip": "rect(0px, 0px, 0px, 0px)",
|
|
@@ -154,7 +157,7 @@ var _hoisted_2$1 = {
|
|
|
154
157
|
role: "heading",
|
|
155
158
|
"aria-level": "2"
|
|
156
159
|
};
|
|
157
|
-
var [injectRangeCalendarRootContext, provideRangeCalendarRootContext] =
|
|
160
|
+
var [injectRangeCalendarRootContext, provideRangeCalendarRootContext] = /*#__PURE__*/ createContext("RangeCalendarRoot");
|
|
158
161
|
var RangeCalendarRoot_default = /* @__PURE__ */ defineComponent({
|
|
159
162
|
__name: "RangeCalendarRoot",
|
|
160
163
|
props: {
|
|
@@ -372,16 +375,16 @@ var RangeCalendarRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
372
375
|
});
|
|
373
376
|
watch(modelValue, (_modelValue) => {
|
|
374
377
|
const next = normalizeRange(_modelValue);
|
|
375
|
-
if (!(!next.start && !startValue.value || !!next.start && !!startValue.value && $
|
|
376
|
-
if (!(!next.end && !endValue.value || !!next.end && !!endValue.value && $
|
|
378
|
+
if (!(!next.start && !startValue.value || !!next.start && !!startValue.value && $ad063034c8620db8$export$91b62ebf2ba703ee(next.start, startValue.value))) startValue.value = next.start?.copy?.();
|
|
379
|
+
if (!(!next.end && !endValue.value || !!next.end && !!endValue.value && $ad063034c8620db8$export$91b62ebf2ba703ee(next.end, endValue.value))) endValue.value = next.end?.copy?.();
|
|
377
380
|
});
|
|
378
381
|
watch(startValue, (_startValue) => {
|
|
379
|
-
if (_startValue && !$
|
|
382
|
+
if (_startValue && !$ad063034c8620db8$export$91b62ebf2ba703ee(_startValue, placeholder.value)) onPlaceholderChange(_startValue);
|
|
380
383
|
emits("update:startValue", _startValue);
|
|
381
384
|
});
|
|
382
385
|
watch([startValue, endValue], ([_startValue, _endValue]) => {
|
|
383
386
|
const value = modelValue.value;
|
|
384
|
-
if (value && value.start && value.end && _startValue && _endValue && $
|
|
387
|
+
if (value && value.start && value.end && _startValue && _endValue && $ad063034c8620db8$export$91b62ebf2ba703ee(value.start, _startValue) && $ad063034c8620db8$export$91b62ebf2ba703ee(value.end, _endValue)) return;
|
|
385
388
|
isEditing.value = true;
|
|
386
389
|
if (_endValue && _startValue) {
|
|
387
390
|
const nextValue = isBefore(_endValue, _startValue) ? {
|
|
@@ -505,7 +508,7 @@ var RangeCalendarRoot_default = /* @__PURE__ */ defineComponent({
|
|
|
505
508
|
}
|
|
506
509
|
});
|
|
507
510
|
//#endregion
|
|
508
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
511
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCell.js
|
|
509
512
|
var RangeCalendarCell_default = /* @__PURE__ */ defineComponent({
|
|
510
513
|
__name: "RangeCalendarCell",
|
|
511
514
|
props: {
|
|
@@ -547,7 +550,7 @@ var RangeCalendarCell_default = /* @__PURE__ */ defineComponent({
|
|
|
547
550
|
}
|
|
548
551
|
});
|
|
549
552
|
//#endregion
|
|
550
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
553
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarCellTrigger.js
|
|
551
554
|
var RangeCalendarCellTrigger_default = /* @__PURE__ */ defineComponent({
|
|
552
555
|
__name: "RangeCalendarCellTrigger",
|
|
553
556
|
props: {
|
|
@@ -589,39 +592,39 @@ var RangeCalendarCellTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
589
592
|
const isHighlighted = computed(() => rootContext.highlightedRange.value ? isBetweenInclusive(props.day, rootContext.highlightedRange.value.start, rootContext.highlightedRange.value.end) : false);
|
|
590
593
|
const allowNonContiguousRanges = computed(() => rootContext.allowNonContiguousRanges.value);
|
|
591
594
|
const isDateToday = computed(() => {
|
|
592
|
-
return $
|
|
595
|
+
return $ad063034c8620db8$export$629b0a497aa65267(props.day, $ad063034c8620db8$export$aa8b41735afcabd2());
|
|
593
596
|
});
|
|
594
597
|
const isOutsideView = computed(() => {
|
|
595
|
-
return !$
|
|
598
|
+
return !$ad063034c8620db8$export$a18c89cbd24170ff(props.day, props.month);
|
|
596
599
|
});
|
|
597
600
|
const isOutsideVisibleView = computed(() => rootContext.isOutsideVisibleView(props.day));
|
|
598
601
|
const isDisabled = computed(() => rootContext.isDateDisabled(props.day) || rootContext.disableDaysOutsideCurrentView.value && isOutsideView.value);
|
|
599
602
|
const dayValue = computed(() => props.day.day.toLocaleString(rootContext.locale.value));
|
|
600
603
|
const isFocusedDate = computed(() => {
|
|
601
604
|
if (isOutsideView.value || isDisabled.value) return false;
|
|
602
|
-
if (!rootContext.disabled.value && rootContext.isPlaceholderFocusable.value && $
|
|
603
|
-
if (!rootContext.disabled.value && rootContext.selectedFocusableDate.value && !rootContext.isPlaceholderFocusable.value) return $
|
|
604
|
-
if (!rootContext.disabled.value && (!rootContext.hasSelectedDate.value || rootContext.isSelectedDisabled.value) && !rootContext.isPlaceholderFocusable.value) return rootContext.firstFocusableDate.value && $
|
|
605
|
+
if (!rootContext.disabled.value && rootContext.isPlaceholderFocusable.value && $ad063034c8620db8$export$ea39ec197993aef0(props.day, rootContext.placeholder.value)) return true;
|
|
606
|
+
if (!rootContext.disabled.value && rootContext.selectedFocusableDate.value && !rootContext.isPlaceholderFocusable.value) return $ad063034c8620db8$export$ea39ec197993aef0(props.day, rootContext.selectedFocusableDate.value);
|
|
607
|
+
if (!rootContext.disabled.value && (!rootContext.hasSelectedDate.value || rootContext.isSelectedDisabled.value) && !rootContext.isPlaceholderFocusable.value) return rootContext.firstFocusableDate.value && $ad063034c8620db8$export$ea39ec197993aef0(props.day, rootContext.firstFocusableDate.value);
|
|
605
608
|
return false;
|
|
606
609
|
});
|
|
607
610
|
function changeDate(e, date) {
|
|
608
611
|
if (rootContext.readonly.value) return;
|
|
609
612
|
if (rootContext.isDateDisabled(date) || rootContext.isDateUnavailable?.(date)) return;
|
|
610
613
|
if (rootContext.startValue.value && rootContext.highlightedRange.value === null) {
|
|
611
|
-
if ($
|
|
614
|
+
if ($ad063034c8620db8$export$ea39ec197993aef0(date, rootContext.startValue.value) && !rootContext.preventDeselect.value && !rootContext.endValue.value) {
|
|
612
615
|
rootContext.startValue.value = void 0;
|
|
613
616
|
rootContext.onPlaceholderChange(date);
|
|
614
617
|
rootContext.lastPressedDateValue.value = date.copy();
|
|
615
618
|
return;
|
|
616
619
|
} else if (!rootContext.endValue.value) {
|
|
617
620
|
e.preventDefault();
|
|
618
|
-
if (rootContext.lastPressedDateValue.value && $
|
|
621
|
+
if (rootContext.lastPressedDateValue.value && $ad063034c8620db8$export$ea39ec197993aef0(rootContext.lastPressedDateValue.value, date)) rootContext.startValue.value = date.copy();
|
|
619
622
|
rootContext.lastPressedDateValue.value = date.copy();
|
|
620
623
|
return;
|
|
621
624
|
}
|
|
622
625
|
}
|
|
623
626
|
rootContext.lastPressedDateValue.value = date.copy();
|
|
624
|
-
if (rootContext.startValue.value && rootContext.endValue.value && $
|
|
627
|
+
if (rootContext.startValue.value && rootContext.endValue.value && $ad063034c8620db8$export$ea39ec197993aef0(rootContext.startValue.value, rootContext.endValue.value) && $ad063034c8620db8$export$ea39ec197993aef0(rootContext.startValue.value, date) && !rootContext.preventDeselect.value) {
|
|
625
628
|
rootContext.startValue.value = void 0;
|
|
626
629
|
rootContext.endValue.value = void 0;
|
|
627
630
|
rootContext.onPlaceholderChange(date);
|
|
@@ -663,7 +666,7 @@ var RangeCalendarCellTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
663
666
|
shiftFocus(props.day, -sign);
|
|
664
667
|
break;
|
|
665
668
|
case kbd.ARROW_UP:
|
|
666
|
-
shiftFocus(props.day, -
|
|
669
|
+
shiftFocus(props.day, -7);
|
|
667
670
|
break;
|
|
668
671
|
case kbd.ARROW_DOWN:
|
|
669
672
|
shiftFocus(props.day, indexIncrementation);
|
|
@@ -770,7 +773,7 @@ var RangeCalendarCellTrigger_default = /* @__PURE__ */ defineComponent({
|
|
|
770
773
|
}
|
|
771
774
|
});
|
|
772
775
|
//#endregion
|
|
773
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
776
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGrid.js
|
|
774
777
|
var RangeCalendarGrid_default = /* @__PURE__ */ defineComponent({
|
|
775
778
|
__name: "RangeCalendarGrid",
|
|
776
779
|
props: {
|
|
@@ -811,7 +814,7 @@ var RangeCalendarGrid_default = /* @__PURE__ */ defineComponent({
|
|
|
811
814
|
}
|
|
812
815
|
});
|
|
813
816
|
//#endregion
|
|
814
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
817
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridBody.js
|
|
815
818
|
var RangeCalendarGridBody_default = /* @__PURE__ */ defineComponent({
|
|
816
819
|
__name: "RangeCalendarGridBody",
|
|
817
820
|
props: {
|
|
@@ -836,7 +839,7 @@ var RangeCalendarGridBody_default = /* @__PURE__ */ defineComponent({
|
|
|
836
839
|
}
|
|
837
840
|
});
|
|
838
841
|
//#endregion
|
|
839
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
842
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridHead.js
|
|
840
843
|
var RangeCalendarGridHead_default = /* @__PURE__ */ defineComponent({
|
|
841
844
|
__name: "RangeCalendarGridHead",
|
|
842
845
|
props: {
|
|
@@ -861,7 +864,7 @@ var RangeCalendarGridHead_default = /* @__PURE__ */ defineComponent({
|
|
|
861
864
|
}
|
|
862
865
|
});
|
|
863
866
|
//#endregion
|
|
864
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
867
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarGridRow.js
|
|
865
868
|
var RangeCalendarGridRow_default = /* @__PURE__ */ defineComponent({
|
|
866
869
|
__name: "RangeCalendarGridRow",
|
|
867
870
|
props: {
|
|
@@ -886,7 +889,7 @@ var RangeCalendarGridRow_default = /* @__PURE__ */ defineComponent({
|
|
|
886
889
|
}
|
|
887
890
|
});
|
|
888
891
|
//#endregion
|
|
889
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
892
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarHeadCell.js
|
|
890
893
|
var RangeCalendarHeadCell_default = /* @__PURE__ */ defineComponent({
|
|
891
894
|
__name: "RangeCalendarHeadCell",
|
|
892
895
|
props: {
|
|
@@ -911,7 +914,7 @@ var RangeCalendarHeadCell_default = /* @__PURE__ */ defineComponent({
|
|
|
911
914
|
}
|
|
912
915
|
});
|
|
913
916
|
//#endregion
|
|
914
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
917
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarNext.js
|
|
915
918
|
var RangeCalendarNext_default = /* @__PURE__ */ defineComponent({
|
|
916
919
|
__name: "RangeCalendarNext",
|
|
917
920
|
props: {
|
|
@@ -962,7 +965,7 @@ var RangeCalendarNext_default = /* @__PURE__ */ defineComponent({
|
|
|
962
965
|
}
|
|
963
966
|
});
|
|
964
967
|
//#endregion
|
|
965
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
968
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RangeCalendar/RangeCalendarPrev.js
|
|
966
969
|
var RangeCalendarPrev_default = /* @__PURE__ */ defineComponent({
|
|
967
970
|
__name: "RangeCalendarPrev",
|
|
968
971
|
props: {
|
|
@@ -1020,10 +1023,16 @@ var _hoisted_3 = { class: "celeste-range-calendar-heading" };
|
|
|
1020
1023
|
var _hoisted_4 = { class: "celeste-range-calendar-day-number" };
|
|
1021
1024
|
//#endregion
|
|
1022
1025
|
//#region src/components/range-calendar/range-calendar.vue
|
|
1023
|
-
var range_calendar_default =
|
|
1026
|
+
var range_calendar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1024
1027
|
__name: "range-calendar",
|
|
1025
1028
|
props: {
|
|
1026
|
-
class: {
|
|
1029
|
+
class: { type: [
|
|
1030
|
+
Boolean,
|
|
1031
|
+
null,
|
|
1032
|
+
String,
|
|
1033
|
+
Object,
|
|
1034
|
+
Array
|
|
1035
|
+
] },
|
|
1027
1036
|
markedDates: {},
|
|
1028
1037
|
defaultPlaceholder: {},
|
|
1029
1038
|
defaultValue: {},
|
|
@@ -1067,16 +1076,17 @@ var range_calendar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
1067
1076
|
setup(__props, { emit: __emit }) {
|
|
1068
1077
|
const props = __props;
|
|
1069
1078
|
const emits = __emit;
|
|
1070
|
-
const
|
|
1071
|
-
const
|
|
1079
|
+
const delegatedProps = useDelegatedProps(props, ["class", "markedDates"]);
|
|
1080
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1081
|
+
const monthFormatter = computed(() => new $12a3c853105e5a70$export$ad991b66133851cf(props.locale ?? "en-US", {
|
|
1072
1082
|
month: "long",
|
|
1073
1083
|
year: "numeric"
|
|
1074
1084
|
}));
|
|
1075
1085
|
function formatMonth(date) {
|
|
1076
|
-
return monthFormatter.value.format(date.toDate($
|
|
1086
|
+
return monthFormatter.value.format(date.toDate($ad063034c8620db8$export$aa8b41735afcabd2()));
|
|
1077
1087
|
}
|
|
1078
1088
|
function isMarked(date) {
|
|
1079
|
-
return props.markedDates?.some((marked) => $
|
|
1089
|
+
return props.markedDates?.some((marked) => $ad063034c8620db8$export$91b62ebf2ba703ee(marked, date)) ?? false;
|
|
1080
1090
|
}
|
|
1081
1091
|
function weekdayLabel(day) {
|
|
1082
1092
|
return /^[a-z]/i.test(day.trim()) ? day.slice(0, 2) : day;
|
|
@@ -1089,18 +1099,18 @@ var range_calendar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
1089
1099
|
class: "celeste-range-calendar-month"
|
|
1090
1100
|
}, [createElementVNode("div", _hoisted_2, [
|
|
1091
1101
|
createVNode(unref(RangeCalendarPrev_default), { "as-child": "" }, {
|
|
1092
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [createElementVNode("button", {
|
|
1102
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [createElementVNode("button", {
|
|
1093
1103
|
type: "button",
|
|
1094
1104
|
class: "celeste-range-calendar-nav"
|
|
1095
|
-
}, [createElementVNode("i", { class: "i-celeste-arrow-left-s-line" })], -1)])),
|
|
1105
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-left-s-line" })], -1)])]),
|
|
1096
1106
|
_: 1
|
|
1097
1107
|
}),
|
|
1098
1108
|
createElementVNode("span", _hoisted_3, toDisplayString(formatMonth(month.value)), 1),
|
|
1099
1109
|
createVNode(unref(RangeCalendarNext_default), { "as-child": "" }, {
|
|
1100
|
-
default: withCtx(() => _cache[1] || (_cache[1] = [createElementVNode("button", {
|
|
1110
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [createElementVNode("button", {
|
|
1101
1111
|
type: "button",
|
|
1102
1112
|
class: "celeste-range-calendar-nav"
|
|
1103
|
-
}, [createElementVNode("i", { class: "i-celeste-arrow-right-s-line" })], -1)])),
|
|
1113
|
+
}, [createElementVNode("i", { class: "i-celeste-arrow-right-s-line" })], -1)])]),
|
|
1104
1114
|
_: 1
|
|
1105
1115
|
})
|
|
1106
1116
|
]), createVNode(unref(RangeCalendarGrid_default), { class: "celeste-range-calendar-grid" }, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx.js";
|
|
2
2
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { _ as $
|
|
3
|
+
import { _ as $ad063034c8620db8$export$d0bdf45af03a6ea3, f as $12a3c853105e5a70$export$ad991b66133851cf, g as $ad063034c8620db8$export$aa8b41735afcabd2 } from "./useCalendar.js";
|
|
4
4
|
import { t as range_calendar_default } from "./range-calendar.js";
|
|
5
5
|
import { t as button_default } from "./button.js";
|
|
6
6
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
@@ -26,9 +26,9 @@ var _hoisted_9 = {
|
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/components/range-picker/range-picker.vue
|
|
29
|
-
var range_picker_default =
|
|
29
|
+
var range_picker_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
30
30
|
__name: "range-picker",
|
|
31
|
-
props:
|
|
31
|
+
props: /*@__PURE__*/ mergeModels({
|
|
32
32
|
showPresets: {
|
|
33
33
|
type: Boolean,
|
|
34
34
|
default: true
|
|
@@ -42,7 +42,13 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
42
42
|
placeholderLabel: { default: "Select a range" },
|
|
43
43
|
cancelLabel: { default: "Cancel" },
|
|
44
44
|
applyLabel: { default: "Apply" },
|
|
45
|
-
class: {
|
|
45
|
+
class: { type: [
|
|
46
|
+
Boolean,
|
|
47
|
+
null,
|
|
48
|
+
String,
|
|
49
|
+
Object,
|
|
50
|
+
Array
|
|
51
|
+
] },
|
|
46
52
|
markedDates: {},
|
|
47
53
|
defaultPlaceholder: {},
|
|
48
54
|
defaultValue: {},
|
|
@@ -79,12 +85,12 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
79
85
|
}) },
|
|
80
86
|
"modelModifiers": {}
|
|
81
87
|
}),
|
|
82
|
-
emits:
|
|
88
|
+
emits: /*@__PURE__*/ mergeModels(["apply", "cancel"], ["update:modelValue"]),
|
|
83
89
|
setup(__props, { emit: __emit }) {
|
|
84
90
|
const props = __props;
|
|
85
91
|
const emits = __emit;
|
|
86
92
|
function defaultPresets() {
|
|
87
|
-
const now = $
|
|
93
|
+
const now = $ad063034c8620db8$export$d0bdf45af03a6ea3($ad063034c8620db8$export$aa8b41735afcabd2());
|
|
88
94
|
return [
|
|
89
95
|
{
|
|
90
96
|
label: "Today",
|
|
@@ -175,7 +181,7 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
175
181
|
watch(modelValue, () => {
|
|
176
182
|
if (!settingFromPreset) activePreset.value = null;
|
|
177
183
|
}, { deep: true });
|
|
178
|
-
const rangeFormatter = computed(() => new $
|
|
184
|
+
const rangeFormatter = computed(() => new $12a3c853105e5a70$export$ad991b66133851cf(props.locale ?? "en-US", {
|
|
179
185
|
month: "short",
|
|
180
186
|
day: "2-digit",
|
|
181
187
|
year: "numeric"
|
|
@@ -183,11 +189,11 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
183
189
|
const formattedRange = computed(() => {
|
|
184
190
|
const value = modelValue.value;
|
|
185
191
|
if (!value?.start || !value?.end) return "";
|
|
186
|
-
const tz = $
|
|
192
|
+
const tz = $ad063034c8620db8$export$aa8b41735afcabd2();
|
|
187
193
|
return `${rangeFormatter.value.format(value.start.toDate(tz))} - ${rangeFormatter.value.format(value.end.toDate(tz))}`;
|
|
188
194
|
});
|
|
189
195
|
return (_ctx, _cache) => {
|
|
190
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(clsx)("celeste-range-picker", props.class)) }, [
|
|
196
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(clsx)("celeste-range-picker", props.class)) }, [__props.showPresets ? (openBlock(), createElementBlock("aside", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(presetList.value, (preset) => {
|
|
191
197
|
return openBlock(), createElementBlock("button", {
|
|
192
198
|
key: preset.label,
|
|
193
199
|
type: "button",
|
|
@@ -198,14 +204,14 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
198
204
|
}), 128))])) : createCommentVNode("", true), createElementVNode("div", _hoisted_3, [createElementVNode("div", _hoisted_4, [createVNode(range_calendar_default, mergeProps({
|
|
199
205
|
modelValue: modelValue.value,
|
|
200
206
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
201
|
-
}, unref(calendarProps)), null, 16, ["modelValue"])]),
|
|
202
|
-
createElementVNode("p", _hoisted_6, [formattedRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_7, toDisplayString(
|
|
207
|
+
}, unref(calendarProps)), null, 16, ["modelValue"])]), __props.footer ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
208
|
+
createElementVNode("p", _hoisted_6, [formattedRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_7, toDisplayString(__props.rangeLabel) + "\xA0", 1), createElementVNode("span", _hoisted_8, toDisplayString(formattedRange.value), 1)], 64)) : (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(__props.placeholderLabel), 1))]),
|
|
203
209
|
createVNode(button_default, {
|
|
204
210
|
variant: "stroke",
|
|
205
211
|
intent: "neutral",
|
|
206
212
|
onClick: _cache[1] || (_cache[1] = ($event) => emits("cancel"))
|
|
207
213
|
}, {
|
|
208
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
214
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.cancelLabel), 1)]),
|
|
209
215
|
_: 1
|
|
210
216
|
}),
|
|
211
217
|
createVNode(button_default, {
|
|
@@ -213,7 +219,7 @@ var range_picker_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/*
|
|
|
213
219
|
intent: "primary",
|
|
214
220
|
onClick: _cache[2] || (_cache[2] = ($event) => emits("apply", modelValue.value))
|
|
215
221
|
}, {
|
|
216
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
222
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.applyLabel), 1)]),
|
|
217
223
|
_: 1
|
|
218
224
|
})
|
|
219
225
|
])) : createCommentVNode("", true)])], 2);
|