@youcan/celeste 0.9.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/celeste.css +1153 -755
- 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 +31 -11
- 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 +17 -11
- 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 +32 -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 +1130 -261
- 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/alert/alert.vue +3 -2
- 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/checkbox/checkbox.vue +45 -27
- 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/rich-editor/rich-editor.vue +1 -1
- package/src/components/text-input/text-input.vue +1 -1
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
require("./chunk.cjs");
|
|
2
1
|
const require_clsx = require("./clsx.cjs");
|
|
3
2
|
const require_clamp = require("./clamp.cjs");
|
|
4
3
|
const require_createContext = require("./createContext.cjs");
|
|
5
4
|
const require_getActiveElement = require("./getActiveElement.cjs");
|
|
6
5
|
const require_nullish = require("./nullish.cjs");
|
|
7
6
|
const require_dist = require("./dist.cjs");
|
|
7
|
+
const require_dist$1 = require("./dist2.cjs");
|
|
8
8
|
const require_Primitive = require("./Primitive.cjs");
|
|
9
9
|
const require_useComposing = require("./useComposing.cjs");
|
|
10
10
|
const require_useFormControl = require("./useFormControl.cjs");
|
|
@@ -16,35 +16,41 @@ const require_VisuallyHiddenInput = require("./VisuallyHiddenInput.cjs");
|
|
|
16
16
|
const require_compact_button = require("./compact-button.cjs");
|
|
17
17
|
const require_use_delegated_props = require("../use-delegated-props.cjs");
|
|
18
18
|
let vue = require("vue");
|
|
19
|
-
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.
|
|
20
|
-
var $
|
|
21
|
-
var $
|
|
19
|
+
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.7/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
20
|
+
var $1dfb119a85e764e5$var$formatterCache = /* @__PURE__ */ new Map();
|
|
21
|
+
var $1dfb119a85e764e5$var$supportsSignDisplay = false;
|
|
22
22
|
try {
|
|
23
|
-
$
|
|
23
|
+
$1dfb119a85e764e5$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
24
24
|
} catch {}
|
|
25
|
-
var $
|
|
25
|
+
var $1dfb119a85e764e5$var$supportsUnit = false;
|
|
26
26
|
try {
|
|
27
|
-
$
|
|
27
|
+
$1dfb119a85e764e5$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
28
28
|
style: "unit",
|
|
29
29
|
unit: "degree"
|
|
30
30
|
}).resolvedOptions().style === "unit";
|
|
31
31
|
} catch {}
|
|
32
|
-
var $
|
|
32
|
+
var $1dfb119a85e764e5$var$UNITS = { degree: { narrow: {
|
|
33
33
|
default: "°",
|
|
34
34
|
"ja-JP": " 度",
|
|
35
35
|
"zh-TW": "度",
|
|
36
36
|
"sl-SI": " °"
|
|
37
37
|
} } };
|
|
38
|
-
var $
|
|
39
|
-
|
|
38
|
+
var $1dfb119a85e764e5$export$cc77c4ff7e8673c5 = class {
|
|
39
|
+
constructor(locale, options = {}) {
|
|
40
|
+
this.numberFormatter = $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options);
|
|
41
|
+
this.options = options;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Formats a number value as a string, according to the locale and options provided to the
|
|
45
|
+
* constructor.
|
|
46
|
+
*/ format(value) {
|
|
40
47
|
let res = "";
|
|
41
|
-
if (!$
|
|
48
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) res = $1dfb119a85e764e5$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, value);
|
|
42
49
|
else res = this.numberFormatter.format(value);
|
|
43
|
-
if (this.options.style === "unit" && !$
|
|
44
|
-
var _UNITS_unit;
|
|
50
|
+
if (this.options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
45
51
|
let { unit, unitDisplay = "short", locale } = this.resolvedOptions();
|
|
46
52
|
if (!unit) return res;
|
|
47
|
-
let values =
|
|
53
|
+
let values = $1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay];
|
|
48
54
|
res += values[locale] || values.default;
|
|
49
55
|
}
|
|
50
56
|
return res;
|
|
@@ -80,11 +86,11 @@ var $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
|
80
86
|
}
|
|
81
87
|
/** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {
|
|
82
88
|
let options = this.numberFormatter.resolvedOptions();
|
|
83
|
-
if (!$
|
|
89
|
+
if (!$1dfb119a85e764e5$var$supportsSignDisplay && this.options.signDisplay != null) options = {
|
|
84
90
|
...options,
|
|
85
91
|
signDisplay: this.options.signDisplay
|
|
86
92
|
};
|
|
87
|
-
if (!$
|
|
93
|
+
if (!$1dfb119a85e764e5$var$supportsUnit && this.options.style === "unit") options = {
|
|
88
94
|
...options,
|
|
89
95
|
style: "unit",
|
|
90
96
|
unit: this.options.unit,
|
|
@@ -92,41 +98,38 @@ var $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
|
92
98
|
};
|
|
93
99
|
return options;
|
|
94
100
|
}
|
|
95
|
-
constructor(locale, options = {}) {
|
|
96
|
-
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(locale, options);
|
|
97
|
-
this.options = options;
|
|
98
|
-
}
|
|
99
101
|
};
|
|
100
|
-
function $
|
|
102
|
+
function $1dfb119a85e764e5$var$getCachedNumberFormatter(locale, options = {}) {
|
|
101
103
|
let { numberingSystem } = options;
|
|
102
104
|
if (numberingSystem && locale.includes("-nu-")) {
|
|
103
105
|
if (!locale.includes("-u-")) locale += "-u-";
|
|
104
106
|
locale += `-nu-${numberingSystem}`;
|
|
105
107
|
}
|
|
106
|
-
if (options.style === "unit" && !$
|
|
107
|
-
var _UNITS_unit;
|
|
108
|
+
if (options.style === "unit" && !$1dfb119a85e764e5$var$supportsUnit) {
|
|
108
109
|
let { unit, unitDisplay = "short" } = options;
|
|
109
110
|
if (!unit) throw new Error("unit option must be provided with style: \"unit\"");
|
|
110
|
-
if (
|
|
111
|
+
if (!$1dfb119a85e764e5$var$UNITS[unit]?.[unitDisplay]) throw new Error(`Unsupported unit ${unit} with unitDisplay = ${unitDisplay}`);
|
|
111
112
|
options = {
|
|
112
113
|
...options,
|
|
113
114
|
style: "decimal"
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
117
|
-
if ($
|
|
118
|
+
if ($1dfb119a85e764e5$var$formatterCache.has(cacheKey)) return $1dfb119a85e764e5$var$formatterCache.get(cacheKey);
|
|
118
119
|
let numberFormatter = new Intl.NumberFormat(locale, options);
|
|
119
|
-
$
|
|
120
|
+
$1dfb119a85e764e5$var$formatterCache.set(cacheKey, numberFormatter);
|
|
120
121
|
return numberFormatter;
|
|
121
122
|
}
|
|
122
|
-
function $
|
|
123
|
+
function $1dfb119a85e764e5$export$711b50b3c525e0f2(numberFormat, signDisplay, num) {
|
|
123
124
|
if (signDisplay === "auto") return numberFormat.format(num);
|
|
124
125
|
else if (signDisplay === "never") return numberFormat.format(Math.abs(num));
|
|
125
126
|
else {
|
|
126
127
|
let needsPositiveSign = false;
|
|
127
128
|
if (signDisplay === "always") needsPositiveSign = num > 0 || Object.is(num, 0);
|
|
128
|
-
else if (signDisplay === "exceptZero")
|
|
129
|
-
|
|
129
|
+
else if (signDisplay === "exceptZero") {
|
|
130
|
+
if (Object.is(num, -0) || Object.is(num, 0)) num = Math.abs(num);
|
|
131
|
+
else needsPositiveSign = num > 0;
|
|
132
|
+
}
|
|
130
133
|
if (needsPositiveSign) {
|
|
131
134
|
let negative = numberFormat.format(-num);
|
|
132
135
|
let noSign = numberFormat.format(num);
|
|
@@ -137,70 +140,88 @@ function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(numberFormat, signDisplay, nu
|
|
|
137
140
|
}
|
|
138
141
|
}
|
|
139
142
|
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.
|
|
141
|
-
var $
|
|
142
|
-
var $
|
|
143
|
+
//#region ../../node_modules/.pnpm/@internationalized+number@3.6.7/node_modules/@internationalized/number/dist/private/NumberParser.mjs
|
|
144
|
+
var $eb76cf4feb040f77$var$CURRENCY_SIGN_REGEX = /* @__PURE__ */ new RegExp("^.*\\(.*\\).*$");
|
|
145
|
+
var $eb76cf4feb040f77$var$NUMBERING_SYSTEMS = [
|
|
143
146
|
"latn",
|
|
144
147
|
"arab",
|
|
145
148
|
"hanidec",
|
|
146
149
|
"deva",
|
|
147
|
-
"beng"
|
|
150
|
+
"beng",
|
|
151
|
+
"fullwide"
|
|
148
152
|
];
|
|
149
|
-
var $
|
|
153
|
+
var $eb76cf4feb040f77$export$cd11ab140839f11d = class {
|
|
154
|
+
constructor(locale, options = {}) {
|
|
155
|
+
this.locale = locale;
|
|
156
|
+
this.options = options;
|
|
157
|
+
}
|
|
150
158
|
/**
|
|
151
159
|
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
|
|
152
160
|
*/ parse(value) {
|
|
153
|
-
return $
|
|
161
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).parse(value);
|
|
154
162
|
}
|
|
155
163
|
/**
|
|
156
164
|
* Returns whether the given string could potentially be a valid number. This should be used to
|
|
157
165
|
* validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
|
|
158
166
|
* of the minus/plus sign characters can be checked.
|
|
159
167
|
*/ isValidPartialNumber(value, minValue, maxValue) {
|
|
160
|
-
return $
|
|
168
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).isValidPartialNumber(value, minValue, maxValue);
|
|
161
169
|
}
|
|
162
170
|
/**
|
|
163
171
|
* Returns a numbering system for which the given string is valid in the current locale.
|
|
164
172
|
* If no numbering system could be detected, the default numbering system for the current
|
|
165
173
|
* locale is returned.
|
|
166
174
|
*/ getNumberingSystem(value) {
|
|
167
|
-
return $
|
|
168
|
-
}
|
|
169
|
-
constructor(locale, options = {}) {
|
|
170
|
-
this.locale = locale;
|
|
171
|
-
this.options = options;
|
|
175
|
+
return $eb76cf4feb040f77$var$getNumberParserImpl(this.locale, this.options, value).options.numberingSystem;
|
|
172
176
|
}
|
|
173
177
|
};
|
|
174
|
-
var $
|
|
175
|
-
function $
|
|
176
|
-
let defaultParser = $
|
|
178
|
+
var $eb76cf4feb040f77$var$numberParserCache = /* @__PURE__ */ new Map();
|
|
179
|
+
function $eb76cf4feb040f77$var$getNumberParserImpl(locale, options, value) {
|
|
180
|
+
let defaultParser = $eb76cf4feb040f77$var$getCachedNumberParser(locale, options);
|
|
177
181
|
if (!locale.includes("-nu-") && !defaultParser.isValidPartialNumber(value)) {
|
|
178
|
-
for (let numberingSystem of $
|
|
179
|
-
let parser = $
|
|
182
|
+
for (let numberingSystem of $eb76cf4feb040f77$var$NUMBERING_SYSTEMS) if (numberingSystem !== defaultParser.options.numberingSystem) {
|
|
183
|
+
let parser = $eb76cf4feb040f77$var$getCachedNumberParser(locale + (locale.includes("-u-") ? "-nu-" : "-u-nu-") + numberingSystem, options);
|
|
180
184
|
if (parser.isValidPartialNumber(value)) return parser;
|
|
181
185
|
}
|
|
182
186
|
}
|
|
183
187
|
return defaultParser;
|
|
184
188
|
}
|
|
185
|
-
function $
|
|
189
|
+
function $eb76cf4feb040f77$var$getCachedNumberParser(locale, options) {
|
|
186
190
|
let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
|
|
187
|
-
let parser = $
|
|
191
|
+
let parser = $eb76cf4feb040f77$var$numberParserCache.get(cacheKey);
|
|
188
192
|
if (!parser) {
|
|
189
|
-
parser = new $
|
|
190
|
-
$
|
|
193
|
+
parser = new $eb76cf4feb040f77$var$NumberParserImpl(locale, options);
|
|
194
|
+
$eb76cf4feb040f77$var$numberParserCache.set(cacheKey, parser);
|
|
191
195
|
}
|
|
192
196
|
return parser;
|
|
193
197
|
}
|
|
194
|
-
var $
|
|
198
|
+
var $eb76cf4feb040f77$var$NumberParserImpl = class {
|
|
199
|
+
constructor(locale, options = {}) {
|
|
200
|
+
this.locale = locale;
|
|
201
|
+
if (options.roundingIncrement !== 1 && options.roundingIncrement != null) {
|
|
202
|
+
if (options.maximumFractionDigits == null && options.minimumFractionDigits == null) {
|
|
203
|
+
options.maximumFractionDigits = 0;
|
|
204
|
+
options.minimumFractionDigits = 0;
|
|
205
|
+
} else if (options.maximumFractionDigits == null) options.maximumFractionDigits = options.minimumFractionDigits;
|
|
206
|
+
else if (options.minimumFractionDigits == null) options.minimumFractionDigits = options.maximumFractionDigits;
|
|
207
|
+
}
|
|
208
|
+
this.formatter = new Intl.NumberFormat(locale, options);
|
|
209
|
+
this.options = this.formatter.resolvedOptions();
|
|
210
|
+
this.symbols = $eb76cf4feb040f77$var$getSymbols(locale, this.formatter, this.options, options);
|
|
211
|
+
if (this.options.style === "percent" && ((this.options.minimumFractionDigits ?? 0) > 18 || (this.options.maximumFractionDigits ?? 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
212
|
+
}
|
|
195
213
|
parse(value) {
|
|
214
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
196
215
|
let fullySanitizedValue = this.sanitize(value);
|
|
197
|
-
if (this.symbols.group
|
|
216
|
+
if (!isGroupSymbolAllowed && this.symbols.group && fullySanitizedValue.includes(this.symbols.group)) return NaN;
|
|
217
|
+
else if (this.symbols.group) fullySanitizedValue = fullySanitizedValue.replaceAll(this.symbols.group, "");
|
|
198
218
|
if (this.symbols.decimal) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.decimal, ".");
|
|
199
219
|
if (this.symbols.minusSign) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.minusSign, "-");
|
|
200
220
|
fullySanitizedValue = fullySanitizedValue.replace(this.symbols.numeral, this.symbols.index);
|
|
201
221
|
if (this.options.style === "percent") {
|
|
202
222
|
let isNegative = fullySanitizedValue.indexOf("-");
|
|
203
223
|
fullySanitizedValue = fullySanitizedValue.replace("-", "");
|
|
224
|
+
fullySanitizedValue = fullySanitizedValue.replace("+", "");
|
|
204
225
|
let index = fullySanitizedValue.indexOf(".");
|
|
205
226
|
if (index === -1) index = fullySanitizedValue.length;
|
|
206
227
|
fullySanitizedValue = fullySanitizedValue.replace(".", "");
|
|
@@ -213,52 +234,50 @@ var $6c7bd7858deea686$var$NumberParserImpl = class {
|
|
|
213
234
|
let newValue = fullySanitizedValue ? +fullySanitizedValue : NaN;
|
|
214
235
|
if (isNaN(newValue)) return NaN;
|
|
215
236
|
if (this.options.style === "percent") {
|
|
216
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
217
237
|
let options = {
|
|
218
238
|
...this.options,
|
|
219
239
|
style: "decimal",
|
|
220
|
-
minimumFractionDigits: Math.min((
|
|
221
|
-
maximumFractionDigits: Math.min((
|
|
240
|
+
minimumFractionDigits: Math.min((this.options.minimumFractionDigits ?? 0) + 2, 20),
|
|
241
|
+
maximumFractionDigits: Math.min((this.options.maximumFractionDigits ?? 0) + 2, 20)
|
|
222
242
|
};
|
|
223
|
-
return new $
|
|
243
|
+
return new $eb76cf4feb040f77$export$cd11ab140839f11d(this.locale, options).parse(new $1dfb119a85e764e5$export$cc77c4ff7e8673c5(this.locale, options).format(newValue));
|
|
224
244
|
}
|
|
225
|
-
if (this.options.currencySign === "accounting" && $
|
|
245
|
+
if (this.options.currencySign === "accounting" && $eb76cf4feb040f77$var$CURRENCY_SIGN_REGEX.test(value)) newValue = -1 * newValue;
|
|
226
246
|
return newValue;
|
|
227
247
|
}
|
|
228
248
|
sanitize(value) {
|
|
249
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
250
|
+
if (this.symbols.noNumeralUnits.length > 0 && this.symbols.noNumeralUnits.find((obj) => obj.unit === value)) return this.symbols.noNumeralUnits.find((obj) => obj.unit === value).value.toString();
|
|
229
251
|
value = value.replace(this.symbols.literals, "");
|
|
230
252
|
if (this.symbols.minusSign) value = value.replace("-", this.symbols.minusSign);
|
|
231
253
|
if (this.options.numberingSystem === "arab") {
|
|
232
254
|
if (this.symbols.decimal) {
|
|
233
|
-
value = value
|
|
234
|
-
value = value
|
|
255
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, ",", this.symbols.decimal);
|
|
256
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, String.fromCharCode(1548), this.symbols.decimal);
|
|
235
257
|
}
|
|
236
|
-
if (this.symbols.group) value = $
|
|
258
|
+
if (this.symbols.group && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, ".", this.symbols.group);
|
|
259
|
+
}
|
|
260
|
+
if (this.symbols.group === "’" && value.includes("'") && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, "'", this.symbols.group);
|
|
261
|
+
if (this.symbols.group === "'" && value.includes("’") && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, "’", this.symbols.group);
|
|
262
|
+
if (this.options.locale === "fr-FR" && this.symbols.group && isGroupSymbolAllowed) {
|
|
263
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, " ", this.symbols.group);
|
|
264
|
+
value = $eb76cf4feb040f77$var$replaceAll(value, /\u00A0/g, this.symbols.group);
|
|
237
265
|
}
|
|
238
|
-
if (this.options.locale === "fr-FR") value = $6c7bd7858deea686$var$replaceAll(value, ".", String.fromCharCode(8239));
|
|
239
266
|
return value;
|
|
240
267
|
}
|
|
241
268
|
isValidPartialNumber(value, minValue = -Infinity, maxValue = Infinity) {
|
|
269
|
+
let isGroupSymbolAllowed = this.formatter.resolvedOptions().useGrouping;
|
|
242
270
|
value = this.sanitize(value);
|
|
243
271
|
if (this.symbols.minusSign && value.startsWith(this.symbols.minusSign) && minValue < 0) value = value.slice(this.symbols.minusSign.length);
|
|
244
272
|
else if (this.symbols.plusSign && value.startsWith(this.symbols.plusSign) && maxValue > 0) value = value.slice(this.symbols.plusSign.length);
|
|
245
|
-
if (this.symbols.group && value.startsWith(this.symbols.group)) return false;
|
|
246
273
|
if (this.symbols.decimal && value.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0) return false;
|
|
247
|
-
if (this.symbols.group) value = $
|
|
274
|
+
if (this.symbols.group && isGroupSymbolAllowed) value = $eb76cf4feb040f77$var$replaceAll(value, this.symbols.group, "");
|
|
248
275
|
value = value.replace(this.symbols.numeral, "");
|
|
249
276
|
if (this.symbols.decimal) value = value.replace(this.symbols.decimal, "");
|
|
250
277
|
return value.length === 0;
|
|
251
278
|
}
|
|
252
|
-
constructor(locale, options = {}) {
|
|
253
|
-
this.locale = locale;
|
|
254
|
-
this.formatter = new Intl.NumberFormat(locale, options);
|
|
255
|
-
this.options = this.formatter.resolvedOptions();
|
|
256
|
-
this.symbols = $6c7bd7858deea686$var$getSymbols(locale, this.formatter, this.options, options);
|
|
257
|
-
var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
|
|
258
|
-
if (this.options.style === "percent" && (((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) > 18 || ((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
259
|
-
}
|
|
260
279
|
};
|
|
261
|
-
var $
|
|
280
|
+
var $eb76cf4feb040f77$var$nonLiteralParts = /* @__PURE__ */ new Set([
|
|
262
281
|
"decimal",
|
|
263
282
|
"fraction",
|
|
264
283
|
"integer",
|
|
@@ -266,7 +285,7 @@ var $6c7bd7858deea686$var$nonLiteralParts = new Set([
|
|
|
266
285
|
"plusSign",
|
|
267
286
|
"group"
|
|
268
287
|
]);
|
|
269
|
-
var $
|
|
288
|
+
var $eb76cf4feb040f77$var$pluralNumbers = [
|
|
270
289
|
0,
|
|
271
290
|
4,
|
|
272
291
|
2,
|
|
@@ -280,33 +299,40 @@ var $6c7bd7858deea686$var$pluralNumbers = [
|
|
|
280
299
|
.1,
|
|
281
300
|
1.1
|
|
282
301
|
];
|
|
283
|
-
function $
|
|
284
|
-
var _allParts_find, _posAllParts_find, _decimalParts_find, _allParts_find1;
|
|
302
|
+
function $eb76cf4feb040f77$var$getSymbols(locale, formatter, intlOptions, originalOptions) {
|
|
285
303
|
let symbolFormatter = new Intl.NumberFormat(locale, {
|
|
286
304
|
...intlOptions,
|
|
287
305
|
minimumSignificantDigits: 1,
|
|
288
306
|
maximumSignificantDigits: 21,
|
|
289
307
|
roundingIncrement: 1,
|
|
290
308
|
roundingPriority: "auto",
|
|
291
|
-
roundingMode: "halfExpand"
|
|
309
|
+
roundingMode: "halfExpand",
|
|
310
|
+
useGrouping: true
|
|
292
311
|
});
|
|
293
312
|
let allParts = symbolFormatter.formatToParts(-10000.111);
|
|
294
313
|
let posAllParts = symbolFormatter.formatToParts(10000.111);
|
|
295
|
-
let pluralParts = $
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
314
|
+
let pluralParts = $eb76cf4feb040f77$var$pluralNumbers.map((n) => symbolFormatter.formatToParts(n));
|
|
315
|
+
let noNumeralUnits = pluralParts.map((p, i) => {
|
|
316
|
+
let unit = p.find((p) => p.type === "unit");
|
|
317
|
+
if (unit && !p.some((p) => p.type === "integer" || p.type === "fraction")) return {
|
|
318
|
+
unit: unit.value,
|
|
319
|
+
value: $eb76cf4feb040f77$var$pluralNumbers[i]
|
|
320
|
+
};
|
|
321
|
+
return null;
|
|
322
|
+
}).filter((p) => !!p);
|
|
323
|
+
let minusSign = allParts.find((p) => p.type === "minusSign")?.value ?? "-";
|
|
324
|
+
let plusSign = posAllParts.find((p) => p.type === "plusSign")?.value;
|
|
325
|
+
if (!plusSign && (originalOptions?.signDisplay === "exceptZero" || originalOptions?.signDisplay === "always")) plusSign = "+";
|
|
326
|
+
let decimal = new Intl.NumberFormat(locale, {
|
|
301
327
|
...intlOptions,
|
|
302
328
|
minimumFractionDigits: 2,
|
|
303
329
|
maximumFractionDigits: 2
|
|
304
|
-
}).formatToParts(.001).find((p) => p.type === "decimal")
|
|
305
|
-
let group =
|
|
306
|
-
let allPartsLiterals = allParts.filter((p) => !$
|
|
307
|
-
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p) => !$
|
|
308
|
-
let sortedLiterals = [
|
|
309
|
-
let literals = sortedLiterals.length === 0 ? /* @__PURE__ */ new RegExp("
|
|
330
|
+
}).formatToParts(.001).find((p) => p.type === "decimal")?.value;
|
|
331
|
+
let group = allParts.find((p) => p.type === "group")?.value;
|
|
332
|
+
let allPartsLiterals = allParts.filter((p) => !$eb76cf4feb040f77$var$nonLiteralParts.has(p.type)).map((p) => $eb76cf4feb040f77$var$escapeRegex(p.value));
|
|
333
|
+
let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p) => !$eb76cf4feb040f77$var$nonLiteralParts.has(p.type)).map((p) => $eb76cf4feb040f77$var$escapeRegex(p.value)));
|
|
334
|
+
let sortedLiterals = [.../* @__PURE__ */ new Set([...allPartsLiterals, ...pluralPartsLiterals])].sort((a, b) => b.length - a.length);
|
|
335
|
+
let literals = sortedLiterals.length === 0 ? /* @__PURE__ */ new RegExp("\\p{White_Space}|\\p{Cf}", "gu") : new RegExp(`${sortedLiterals.join("|")}|\\p{White_Space}|\\p{Cf}`, "gu");
|
|
310
336
|
let numerals = [...new Intl.NumberFormat(intlOptions.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
311
337
|
let indexes = new Map(numerals.map((d, i) => [d, i]));
|
|
312
338
|
let numeral = new RegExp(`[${numerals.join("")}]`, "g");
|
|
@@ -318,18 +344,20 @@ function $6c7bd7858deea686$var$getSymbols(locale, formatter, intlOptions, origin
|
|
|
318
344
|
group,
|
|
319
345
|
literals,
|
|
320
346
|
numeral,
|
|
321
|
-
|
|
347
|
+
numerals,
|
|
348
|
+
index,
|
|
349
|
+
noNumeralUnits
|
|
322
350
|
};
|
|
323
351
|
}
|
|
324
|
-
function $
|
|
352
|
+
function $eb76cf4feb040f77$var$replaceAll(str, find, replace) {
|
|
325
353
|
if (str.replaceAll) return str.replaceAll(find, replace);
|
|
326
354
|
return str.split(find).join(replace);
|
|
327
355
|
}
|
|
328
|
-
function $
|
|
356
|
+
function $eb76cf4feb040f77$var$escapeRegex(string) {
|
|
329
357
|
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
330
358
|
}
|
|
331
359
|
//#endregion
|
|
332
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
360
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/utils.js
|
|
333
361
|
function usePressedHold(options) {
|
|
334
362
|
const { disabled } = options;
|
|
335
363
|
const timeout = (0, vue.ref)();
|
|
@@ -350,7 +378,7 @@ function usePressedHold(options) {
|
|
|
350
378
|
resetTimeout();
|
|
351
379
|
};
|
|
352
380
|
const isPressed = (0, vue.ref)(false);
|
|
353
|
-
const target = (0, vue.computed)(() => require_dist.unrefElement(options.target));
|
|
381
|
+
const target = (0, vue.computed)(() => require_dist$1.unrefElement(options.target));
|
|
354
382
|
const onPressStart = (event) => {
|
|
355
383
|
if (event.button !== 0 || isPressed.value) return;
|
|
356
384
|
event.preventDefault();
|
|
@@ -362,9 +390,9 @@ function usePressedHold(options) {
|
|
|
362
390
|
handlePressEnd();
|
|
363
391
|
};
|
|
364
392
|
if (require_dist.isClient) {
|
|
365
|
-
require_dist.useEventListener(target || window, "pointerdown", onPressStart);
|
|
366
|
-
require_dist.useEventListener(window, "pointerup", onPressRelease);
|
|
367
|
-
require_dist.useEventListener(window, "pointercancel", onPressRelease);
|
|
393
|
+
require_dist$1.useEventListener(target || window, "pointerdown", onPressStart);
|
|
394
|
+
require_dist$1.useEventListener(window, "pointerup", onPressRelease);
|
|
395
|
+
require_dist$1.useEventListener(window, "pointercancel", onPressRelease);
|
|
368
396
|
}
|
|
369
397
|
return {
|
|
370
398
|
isPressed,
|
|
@@ -372,10 +400,10 @@ function usePressedHold(options) {
|
|
|
372
400
|
};
|
|
373
401
|
}
|
|
374
402
|
function useNumberFormatter(locale, options = (0, vue.ref)({})) {
|
|
375
|
-
return require_dist.reactiveComputed(() => new $
|
|
403
|
+
return require_dist.reactiveComputed(() => new $1dfb119a85e764e5$export$cc77c4ff7e8673c5(locale.value, options.value));
|
|
376
404
|
}
|
|
377
405
|
function useNumberParser(locale, options = (0, vue.ref)({})) {
|
|
378
|
-
return require_dist.reactiveComputed(() => new $
|
|
406
|
+
return require_dist.reactiveComputed(() => new $eb76cf4feb040f77$export$cd11ab140839f11d(locale.value, options.value));
|
|
379
407
|
}
|
|
380
408
|
function handleDecimalOperation(operator, value1, value2) {
|
|
381
409
|
let result = operator === "+" ? value1 + value2 : value1 - value2;
|
|
@@ -393,8 +421,8 @@ function handleDecimalOperation(operator, value1, value2) {
|
|
|
393
421
|
return result;
|
|
394
422
|
}
|
|
395
423
|
//#endregion
|
|
396
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
397
|
-
var [injectNumberFieldRootContext, provideNumberFieldRootContext] =
|
|
424
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldRoot.js
|
|
425
|
+
var [injectNumberFieldRootContext, provideNumberFieldRootContext] = /*#__PURE__*/ require_createContext.createContext("NumberFieldRoot");
|
|
398
426
|
var NumberFieldRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
399
427
|
inheritAttrs: false,
|
|
400
428
|
__name: "NumberFieldRoot",
|
|
@@ -482,7 +510,7 @@ var NumberFieldRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
482
510
|
const props = __props;
|
|
483
511
|
const emits = __emit;
|
|
484
512
|
const { disabled, readonly, disableWheelChange, invertWheelChange, min, max, step, stepSnapping, formatOptions, id, locale: propLocale } = (0, vue.toRefs)(props);
|
|
485
|
-
const modelValue = require_dist.useVModel(props, "modelValue", emits, {
|
|
513
|
+
const modelValue = require_dist$1.useVModel(props, "modelValue", emits, {
|
|
486
514
|
defaultValue: props.defaultValue,
|
|
487
515
|
passive: props.modelValue === void 0
|
|
488
516
|
});
|
|
@@ -620,7 +648,7 @@ var NumberFieldRoot_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
620
648
|
}
|
|
621
649
|
});
|
|
622
650
|
//#endregion
|
|
623
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
651
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldDecrement.js
|
|
624
652
|
var NumberFieldDecrement_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
625
653
|
__name: "NumberFieldDecrement",
|
|
626
654
|
props: {
|
|
@@ -676,7 +704,7 @@ var NumberFieldDecrement_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
676
704
|
}
|
|
677
705
|
});
|
|
678
706
|
//#endregion
|
|
679
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
707
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldIncrement.js
|
|
680
708
|
var NumberFieldIncrement_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
681
709
|
__name: "NumberFieldIncrement",
|
|
682
710
|
props: {
|
|
@@ -732,7 +760,7 @@ var NumberFieldIncrement_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
732
760
|
}
|
|
733
761
|
});
|
|
734
762
|
//#endregion
|
|
735
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
763
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/NumberField/NumberFieldInput.js
|
|
736
764
|
var NumberFieldInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
737
765
|
__name: "NumberFieldInput",
|
|
738
766
|
props: {
|
|
@@ -779,9 +807,7 @@ var NumberFieldInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
779
807
|
event.preventDefault();
|
|
780
808
|
rootContext.handleMinMaxValue("max");
|
|
781
809
|
break;
|
|
782
|
-
case kbd.ENTER:
|
|
783
|
-
rootContext.applyInputValue(event.target?.value);
|
|
784
|
-
break;
|
|
810
|
+
case kbd.ENTER: rootContext.applyInputValue(event.target?.value);
|
|
785
811
|
}
|
|
786
812
|
}
|
|
787
813
|
function handleWheelEvent(event) {
|
|
@@ -837,7 +863,8 @@ var NumberFieldInput_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
837
863
|
if (!(0, vue.unref)(rootContext).validate(nextValue)) event.preventDefault();
|
|
838
864
|
}),
|
|
839
865
|
onInput: _cache[1] || (_cache[1] = (event) => {
|
|
840
|
-
|
|
866
|
+
const target = event.target;
|
|
867
|
+
inputValue.value = target.value;
|
|
841
868
|
}),
|
|
842
869
|
onChange: handleChange,
|
|
843
870
|
onBlur: _cache[2] || (_cache[2] = ($event) => (0, vue.unref)(rootContext).applyInputValue($event.target?.value)),
|
|
@@ -886,7 +913,13 @@ var counter_input_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
886
913
|
as: {},
|
|
887
914
|
name: {},
|
|
888
915
|
required: { type: Boolean },
|
|
889
|
-
class: {
|
|
916
|
+
class: { type: [
|
|
917
|
+
Boolean,
|
|
918
|
+
null,
|
|
919
|
+
String,
|
|
920
|
+
Object,
|
|
921
|
+
Array
|
|
922
|
+
] },
|
|
890
923
|
size: { default: "md" },
|
|
891
924
|
hasError: {
|
|
892
925
|
type: Boolean,
|
|
@@ -897,10 +930,11 @@ var counter_input_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
897
930
|
setup(__props, { emit: __emit }) {
|
|
898
931
|
const props = __props;
|
|
899
932
|
const emits = __emit;
|
|
900
|
-
const
|
|
933
|
+
const delegatedProps = require_use_delegated_props.useDelegatedProps(props, "class");
|
|
934
|
+
const forwarded = require_useForwardPropsEmits.useForwardPropsEmits(delegatedProps, emits);
|
|
901
935
|
return (_ctx, _cache) => {
|
|
902
936
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(NumberFieldRoot_default), (0, vue.mergeProps)((0, vue.unref)(forwarded), {
|
|
903
|
-
"has-error":
|
|
937
|
+
"has-error": __props.hasError,
|
|
904
938
|
class: (0, vue.unref)(require_clsx.clsx)("celeste-counter-input-wrapper", props.class)
|
|
905
939
|
}), {
|
|
906
940
|
default: (0, vue.withCtx)(() => [
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
require("./chunk.cjs");
|
|
2
1
|
let vue = require("vue");
|
|
3
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.
|
|
2
|
+
//#region ../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
4
3
|
/**
|
|
5
4
|
* @param providerComponentName - The name(s) of the component(s) providing the context.
|
|
6
5
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("./chunk.cjs");
|
|
2
1
|
const require_clsx = require("./clsx.cjs");
|
|
3
2
|
const require__plugin_vue_export_helper = require("./_plugin-vue_export-helper.cjs");
|
|
4
3
|
const require_calendar = require("./calendar.cjs");
|
|
@@ -11,16 +10,22 @@ var _hoisted_2 = {
|
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "celeste-date-picker-footer"
|
|
13
12
|
};
|
|
14
|
-
var date_picker_vue_vue_type_script_setup_true_lang_default =
|
|
13
|
+
var date_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
15
14
|
__name: "date-picker",
|
|
16
|
-
props:
|
|
15
|
+
props: /*@__PURE__*/ (0, vue.mergeModels)({
|
|
17
16
|
footer: {
|
|
18
17
|
type: Boolean,
|
|
19
18
|
default: true
|
|
20
19
|
},
|
|
21
20
|
cancelLabel: { default: "Cancel" },
|
|
22
21
|
applyLabel: { default: "Apply" },
|
|
23
|
-
class: {
|
|
22
|
+
class: { type: [
|
|
23
|
+
Boolean,
|
|
24
|
+
null,
|
|
25
|
+
String,
|
|
26
|
+
Object,
|
|
27
|
+
Array
|
|
28
|
+
] },
|
|
24
29
|
markedDates: {},
|
|
25
30
|
defaultValue: {},
|
|
26
31
|
defaultPlaceholder: {},
|
|
@@ -51,7 +56,7 @@ var date_picker_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
51
56
|
"modelValue": {},
|
|
52
57
|
"modelModifiers": {}
|
|
53
58
|
}),
|
|
54
|
-
emits:
|
|
59
|
+
emits: /*@__PURE__*/ (0, vue.mergeModels)(["apply", "cancel"], ["update:modelValue"]),
|
|
55
60
|
setup(__props, { emit: __emit }) {
|
|
56
61
|
const props = __props;
|
|
57
62
|
const emits = __emit;
|
|
@@ -67,13 +72,13 @@ var date_picker_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
67
72
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)(cardClass.value) }, [(0, vue.createElementVNode)("div", _hoisted_1, [(0, vue.createVNode)(require_calendar.calendar_default, (0, vue.mergeProps)({
|
|
68
73
|
modelValue: modelValue.value,
|
|
69
74
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
|
|
70
|
-
}, (0, vue.unref)(calendarProps)), null, 16, ["modelValue"])]),
|
|
75
|
+
}, (0, vue.unref)(calendarProps)), null, 16, ["modelValue"])]), __props.footer ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2, [(0, vue.createVNode)(require_button.button_default, {
|
|
71
76
|
class: "celeste-date-picker-action",
|
|
72
77
|
variant: "stroke",
|
|
73
78
|
intent: "neutral",
|
|
74
79
|
onClick: _cache[1] || (_cache[1] = ($event) => emits("cancel"))
|
|
75
80
|
}, {
|
|
76
|
-
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(
|
|
81
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.cancelLabel), 1)]),
|
|
77
82
|
_: 1
|
|
78
83
|
}), (0, vue.createVNode)(require_button.button_default, {
|
|
79
84
|
class: "celeste-date-picker-action",
|
|
@@ -81,7 +86,7 @@ var date_picker_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
81
86
|
intent: "primary",
|
|
82
87
|
onClick: _cache[2] || (_cache[2] = ($event) => emits("apply", modelValue.value))
|
|
83
88
|
}, {
|
|
84
|
-
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(
|
|
89
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.applyLabel), 1)]),
|
|
85
90
|
_: 1
|
|
86
91
|
})])) : (0, vue.createCommentVNode)("", true)], 2);
|
|
87
92
|
};
|
|
@@ -89,7 +94,7 @@ var date_picker_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
89
94
|
});
|
|
90
95
|
//#endregion
|
|
91
96
|
//#region src/components/date-picker/date-picker.vue
|
|
92
|
-
var date_picker_default =
|
|
97
|
+
var date_picker_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(date_picker_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ac6d198e"]]);
|
|
93
98
|
//#endregion
|
|
94
99
|
Object.defineProperty(exports, "date_picker_default", {
|
|
95
100
|
enumerable: true,
|