@youcan/celeste 0.6.102 → 0.7.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 +1549 -1547
- package/dist/cjs/chunks/BubbleSelect.cjs +332 -0
- package/dist/cjs/chunks/CollapsibleRoot.cjs +90 -0
- package/dist/cjs/chunks/Collection.cjs +79 -0
- package/dist/cjs/chunks/ComboboxContent.cjs +442 -0
- package/dist/cjs/chunks/ComboboxGroup.cjs +90 -0
- package/dist/cjs/chunks/ComboboxInput.cjs +266 -0
- package/dist/cjs/chunks/ComboboxItem.cjs +195 -0
- package/dist/cjs/chunks/ComboboxLabel.cjs +47 -0
- package/dist/cjs/chunks/ComboboxRoot.cjs +695 -0
- package/dist/cjs/chunks/ComboboxSeparator.cjs +35 -0
- package/dist/cjs/chunks/ConfigProvider.cjs +11 -0
- package/dist/cjs/chunks/DialogClose.cjs +41 -0
- package/dist/cjs/chunks/DialogDescription.cjs +38 -0
- package/dist/cjs/chunks/DialogPortal.cjs +521 -0
- package/dist/cjs/chunks/DialogRoot.cjs +81 -0
- package/dist/cjs/chunks/DialogTitle.cjs +38 -0
- package/dist/cjs/chunks/DialogTrigger.cjs +57 -0
- package/dist/cjs/chunks/DismissableLayer.cjs +292 -0
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +73 -0
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +87 -0
- package/dist/cjs/chunks/FocusScope.cjs +368 -0
- package/dist/cjs/chunks/Label.cjs +42 -0
- package/dist/cjs/chunks/MenuAnchor.cjs +37 -0
- package/dist/cjs/chunks/MenuContentImpl.cjs +371 -0
- package/dist/cjs/chunks/MenuGroup.cjs +44 -0
- package/dist/cjs/chunks/MenuItemImpl.cjs +100 -0
- package/dist/cjs/chunks/MenuRoot.cjs +108 -0
- package/dist/cjs/chunks/MenuSub.cjs +68 -0
- package/dist/cjs/chunks/PaginationRoot.cjs +101 -0
- package/dist/cjs/chunks/PinInputRoot.cjs +153 -0
- package/dist/cjs/chunks/PopoverRoot.cjs +73 -0
- package/dist/cjs/chunks/PopperAnchor.cjs +48 -0
- package/dist/cjs/chunks/PopperArrow.cjs +152 -0
- package/dist/cjs/chunks/PopperContent.cjs +2134 -0
- package/dist/cjs/chunks/PopperRoot.cjs +32 -0
- package/dist/cjs/chunks/Presence.cjs +194 -0
- package/dist/cjs/chunks/Primitive.cjs +80 -0
- package/dist/cjs/chunks/ProgressIndicator.cjs +161 -0
- package/dist/cjs/chunks/RadioGroupRoot.cjs +143 -0
- package/dist/cjs/chunks/RovingFocusGroup.cjs +146 -0
- package/dist/cjs/chunks/RovingFocusItem.cjs +114 -0
- package/dist/cjs/chunks/SelectGroup.cjs +44 -0
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +593 -0
- package/dist/cjs/chunks/TabsRoot.cjs +114 -0
- package/dist/cjs/chunks/Teleport.cjs +51 -0
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +188 -0
- package/dist/cjs/chunks/TooltipProvider.cjs +87 -0
- package/dist/cjs/chunks/TooltipRoot.cjs +145 -0
- package/dist/cjs/chunks/VisuallyHidden.cjs +65 -0
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +146 -0
- package/dist/cjs/chunks/alert.cjs +2 -2
- package/dist/cjs/chunks/alpha-slider.cjs +1 -1
- package/dist/cjs/chunks/badge.cjs +2 -2
- package/dist/cjs/chunks/button.cjs +4 -3
- package/dist/cjs/chunks/checkbox-card.cjs +10 -8
- package/dist/cjs/chunks/checkbox-label.cjs +11 -9
- package/dist/cjs/chunks/checkbox.cjs +234 -9
- package/dist/cjs/chunks/chunk.cjs +50 -0
- package/dist/cjs/chunks/clamp.cjs +75 -0
- package/dist/cjs/chunks/collapsible-content.cjs +105 -2
- package/dist/cjs/chunks/collapsible-trigger.cjs +51 -2
- package/dist/cjs/chunks/collapsible.cjs +6 -3
- package/dist/cjs/chunks/color-area.cjs +4 -4
- package/dist/cjs/chunks/color-picker.cjs +14 -13
- package/dist/cjs/chunks/color-swatch.cjs +3 -3
- package/dist/cjs/chunks/combobox-anchor.cjs +45 -3
- package/dist/cjs/chunks/combobox-empty.cjs +31 -3
- package/dist/cjs/chunks/combobox-group.cjs +6 -4
- package/dist/cjs/chunks/combobox-input.cjs +7 -5
- package/dist/cjs/chunks/combobox-item.cjs +8 -6
- package/dist/cjs/chunks/combobox-list.cjs +105 -7
- package/dist/cjs/chunks/combobox-root.cjs +22 -18
- package/dist/cjs/chunks/combobox-separator.cjs +4 -3
- package/dist/cjs/chunks/combobox-trigger.cjs +64 -4
- package/dist/cjs/chunks/combobox.cjs +38 -30
- package/dist/cjs/chunks/compact-button.cjs +4 -3
- package/dist/cjs/chunks/components.cjs +47 -47
- package/dist/cjs/chunks/content-divider.cjs +87 -2
- package/dist/cjs/chunks/core.cjs +3 -3
- package/dist/cjs/chunks/counter-input.cjs +884 -8
- package/dist/cjs/chunks/createContext.cjs +38 -0
- package/dist/cjs/chunks/digit-input-group.cjs +6 -4
- package/dist/cjs/chunks/digit-input-slot.cjs +243 -4
- package/dist/cjs/chunks/digit-input.cjs +8 -6
- package/dist/cjs/chunks/dist.cjs +524 -12084
- package/dist/cjs/chunks/dropdown-menu-content.cjs +542 -5
- package/dist/cjs/chunks/dropdown-menu-group.cjs +30 -3
- package/dist/cjs/chunks/dropdown-menu-item.cjs +125 -4
- package/dist/cjs/chunks/dropdown-menu-label.cjs +59 -4
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +57 -3
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +295 -5
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +192 -4
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +39 -2
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +91 -4
- package/dist/cjs/chunks/dropdown-menu.cjs +6 -4
- package/dist/cjs/chunks/extra-settings.cjs +5 -5
- package/dist/cjs/chunks/fancy-button.cjs +4 -3
- package/dist/cjs/chunks/file-upload-area.cjs +2 -2
- package/dist/cjs/chunks/getActiveElement.cjs +14 -0
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +18 -0
- package/dist/cjs/chunks/hint-text.cjs +2 -2
- package/dist/cjs/chunks/hue-slider.cjs +1 -1
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +24 -0
- package/dist/cjs/chunks/{label.cjs → label2.cjs} +6 -4
- package/dist/cjs/chunks/link-bubble.cjs +7 -7
- package/dist/cjs/chunks/link-button.cjs +4 -3
- package/dist/cjs/chunks/menus.cjs +53 -52
- package/dist/cjs/chunks/modal-body.cjs +1 -1
- package/dist/cjs/chunks/modal-close.cjs +3 -2
- package/dist/cjs/chunks/modal-content.cjs +8 -7
- package/dist/cjs/chunks/modal-footer.cjs +1 -1
- package/dist/cjs/chunks/modal-header.cjs +8 -5
- package/dist/cjs/chunks/modal-trigger.cjs +3 -2
- package/dist/cjs/chunks/modal.cjs +7 -4
- package/dist/cjs/chunks/nullish.cjs +11 -0
- package/dist/cjs/chunks/ohash.D__AXeF1.cjs +114 -0
- package/dist/cjs/chunks/pagination-content.cjs +86 -3
- package/dist/cjs/chunks/pagination-ellipsis.cjs +30 -3
- package/dist/cjs/chunks/pagination-first.cjs +39 -3
- package/dist/cjs/chunks/pagination-item.cjs +51 -2
- package/dist/cjs/chunks/pagination-last.cjs +39 -3
- package/dist/cjs/chunks/pagination-next.cjs +39 -3
- package/dist/cjs/chunks/pagination-previous.cjs +39 -3
- package/dist/cjs/chunks/pagination.cjs +6 -4
- package/dist/cjs/chunks/popover-content.cjs +704 -7
- package/dist/cjs/chunks/popover-trigger.cjs +62 -3
- package/dist/cjs/chunks/popover.cjs +5 -3
- package/dist/cjs/chunks/progress-bar.cjs +7 -5
- package/dist/cjs/chunks/progress-circle.cjs +7 -5
- package/dist/cjs/chunks/radio-group-card.cjs +10 -8
- package/dist/cjs/chunks/radio-group-item.cjs +304 -6
- package/dist/cjs/chunks/radio-group-label.cjs +11 -9
- package/dist/cjs/chunks/radio-group.cjs +7 -5
- package/dist/cjs/chunks/rich-editor.cjs +162 -162
- package/dist/cjs/chunks/scroll-area.cjs +142 -6
- package/dist/cjs/chunks/scroll-bar.cjs +895 -4
- package/dist/cjs/chunks/segmented-control-item.cjs +163 -3
- package/dist/cjs/chunks/segmented-control.cjs +8 -4
- package/dist/cjs/chunks/select-content.cjs +320 -6
- package/dist/cjs/chunks/select-group.cjs +3 -2
- package/dist/cjs/chunks/select-icon.cjs +1 -1
- package/dist/cjs/chunks/select-item.cjs +227 -5
- package/dist/cjs/chunks/select-label.cjs +35 -3
- package/dist/cjs/chunks/select-separator.cjs +28 -3
- package/dist/cjs/chunks/select-trigger.cjs +165 -4
- package/dist/cjs/chunks/select-value.cjs +65 -3
- package/dist/cjs/chunks/select.cjs +9 -4
- package/dist/cjs/chunks/sheet-close.cjs +4 -3
- package/dist/cjs/chunks/sheet-content.cjs +9 -7
- package/dist/cjs/chunks/sheet-description.cjs +4 -3
- package/dist/cjs/chunks/sheet-footer.cjs +2 -2
- package/dist/cjs/chunks/sheet-header.cjs +2 -2
- package/dist/cjs/chunks/sheet-title.cjs +4 -3
- package/dist/cjs/chunks/sheet-trigger.cjs +3 -2
- package/dist/cjs/chunks/sheet.cjs +7 -4
- package/dist/cjs/chunks/sidebar-content.cjs +1 -1
- package/dist/cjs/chunks/sidebar-element.cjs +3 -2
- package/dist/cjs/chunks/sidebar-footer.cjs +1 -1
- package/dist/cjs/chunks/sidebar-group-content.cjs +1 -1
- package/dist/cjs/chunks/sidebar-group-label.cjs +3 -2
- package/dist/cjs/chunks/sidebar-group.cjs +1 -1
- package/dist/cjs/chunks/sidebar-header.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-action.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-badge.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-button.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-item.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +3 -2
- package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu-sub.cjs +1 -1
- package/dist/cjs/chunks/sidebar-menu.cjs +1 -1
- package/dist/cjs/chunks/sidebar-provider.cjs +1 -1
- package/dist/cjs/chunks/sidebar-trigger.cjs +2 -2
- package/dist/cjs/chunks/sidebar.cjs +1 -1
- package/dist/cjs/chunks/slider.cjs +751 -7
- package/dist/cjs/chunks/social-button.cjs +4 -3
- package/dist/cjs/chunks/sonner-alert.cjs +2 -2
- package/dist/cjs/chunks/sonner.cjs +1 -1
- package/dist/cjs/chunks/status-badge.cjs +2 -2
- package/dist/cjs/chunks/switch.cjs +192 -9
- package/dist/cjs/chunks/tab-menu-content.cjs +82 -3
- package/dist/cjs/chunks/tab-menu-item.cjs +89 -4
- package/dist/cjs/chunks/tab-menu-list.cjs +61 -3
- package/dist/cjs/chunks/tab-menu.cjs +7 -4
- package/dist/cjs/chunks/table-body.cjs +2 -2
- package/dist/cjs/chunks/table-caption.cjs +2 -2
- package/dist/cjs/chunks/table-cell.cjs +2 -2
- package/dist/cjs/chunks/table-footer.cjs +2 -2
- package/dist/cjs/chunks/table-head.cjs +2 -2
- package/dist/cjs/chunks/table-header.cjs +1 -1
- package/dist/cjs/chunks/table-row.cjs +2 -2
- package/dist/cjs/chunks/table.cjs +2 -2
- package/dist/cjs/chunks/table2.cjs +2 -2
- package/dist/cjs/chunks/tag.cjs +4 -3
- package/dist/cjs/chunks/text-input-affix.cjs +1 -1
- package/dist/cjs/chunks/text-input-button.cjs +12 -6
- package/dist/cjs/chunks/text-input.cjs +9 -8
- package/dist/cjs/chunks/textarea.cjs +2 -2
- package/dist/cjs/chunks/tooltip-content.cjs +589 -7
- package/dist/cjs/chunks/tooltip-provider.cjs +5 -3
- package/dist/cjs/chunks/tooltip-root.cjs +5 -3
- package/dist/cjs/chunks/tooltip-trigger.cjs +109 -3
- package/dist/cjs/chunks/tooltip.cjs +8 -5
- package/dist/cjs/chunks/use-color-model.cjs +1 -1
- package/dist/cjs/chunks/useArrowNavigation.cjs +65 -0
- package/dist/cjs/chunks/useComposing.cjs +27 -0
- package/dist/cjs/chunks/useDirection.cjs +20 -0
- package/dist/cjs/chunks/useEmitAsProps.cjs +34 -0
- package/dist/cjs/chunks/useFocusGuards.cjs +40 -0
- package/dist/cjs/chunks/useFormControl.cjs +14 -0
- package/dist/cjs/chunks/useForwardExpose.cjs +64 -0
- package/dist/cjs/chunks/useForwardProps.cjs +40 -0
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +20 -0
- package/dist/cjs/chunks/useForwardScopeId.cjs +31 -0
- package/dist/cjs/chunks/useHideOthers.cjs +138 -0
- package/dist/cjs/chunks/useId.cjs +30 -0
- package/dist/cjs/chunks/useKbd.cjs +46 -0
- package/dist/cjs/chunks/useNonce.cjs +15 -0
- package/dist/cjs/chunks/usePrimitiveElement.cjs +18 -0
- package/dist/cjs/chunks/useSize.cjs +55 -0
- package/dist/cjs/chunks/useTypeahead.cjs +69 -0
- package/dist/cjs/chunks/utils.cjs +117 -0
- package/dist/cjs/chunks/utils2.cjs +73 -0
- package/dist/cjs/chunks/utils3.cjs +20 -0
- package/dist/cjs/command-group.cjs +6 -4
- package/dist/cjs/command-input.cjs +9 -6
- package/dist/cjs/command-item.cjs +6 -3
- package/dist/cjs/command-list.cjs +14 -7
- package/dist/cjs/command-root.cjs +20 -16
- package/dist/cjs/command-separator.cjs +4 -3
- package/dist/cjs/config.cjs +2 -2
- package/dist/cjs/index.cjs +47 -47
- package/dist/cjs/label.cjs +1 -1
- package/dist/cjs/use-delegated-props.cjs +1 -1
- package/dist/cjs/use-sidebar.cjs +2 -2
- package/dist/cjs/use-user-select.cjs +1 -1
- package/dist/es/chunks/BubbleSelect.js +290 -0
- package/dist/es/chunks/CollapsibleRoot.js +78 -0
- package/dist/es/chunks/Collection.js +73 -0
- package/dist/es/chunks/ComboboxContent.js +436 -0
- package/dist/es/chunks/ComboboxGroup.js +78 -0
- package/dist/es/chunks/ComboboxInput.js +260 -0
- package/dist/es/chunks/ComboboxItem.js +189 -0
- package/dist/es/chunks/ComboboxLabel.js +41 -0
- package/dist/es/chunks/ComboboxRoot.js +671 -0
- package/dist/es/chunks/ComboboxSeparator.js +29 -0
- package/dist/es/chunks/ConfigProvider.js +6 -0
- package/dist/es/chunks/DialogClose.js +35 -0
- package/dist/es/chunks/DialogDescription.js +32 -0
- package/dist/es/chunks/DialogPortal.js +503 -0
- package/dist/es/chunks/DialogRoot.js +69 -0
- package/dist/es/chunks/DialogTitle.js +32 -0
- package/dist/es/chunks/DialogTrigger.js +51 -0
- package/dist/es/chunks/DismissableLayer.js +280 -0
- package/dist/es/chunks/DropdownMenuPortal.js +67 -0
- package/dist/es/chunks/DropdownMenuRoot.js +75 -0
- package/dist/es/chunks/FocusScope.js +356 -0
- package/dist/es/chunks/Label.js +36 -0
- package/dist/es/chunks/MenuAnchor.js +31 -0
- package/dist/es/chunks/MenuContentImpl.js +359 -0
- package/dist/es/chunks/MenuGroup.js +32 -0
- package/dist/es/chunks/MenuItemImpl.js +94 -0
- package/dist/es/chunks/MenuRoot.js +84 -0
- package/dist/es/chunks/MenuSub.js +56 -0
- package/dist/es/chunks/PaginationRoot.js +89 -0
- package/dist/es/chunks/PinInputRoot.js +141 -0
- package/dist/es/chunks/PopoverRoot.js +61 -0
- package/dist/es/chunks/PopperAnchor.js +42 -0
- package/dist/es/chunks/PopperArrow.js +146 -0
- package/dist/es/chunks/PopperContent.js +2089 -0
- package/dist/es/chunks/PopperRoot.js +20 -0
- package/dist/es/chunks/Presence.js +182 -0
- package/dist/es/chunks/Primitive.js +62 -0
- package/dist/es/chunks/ProgressIndicator.js +149 -0
- package/dist/es/chunks/RadioGroupRoot.js +131 -0
- package/dist/es/chunks/RovingFocusGroup.js +134 -0
- package/dist/es/chunks/RovingFocusItem.js +108 -0
- package/dist/es/chunks/SelectGroup.js +32 -0
- package/dist/es/chunks/SelectItemAlignedPosition.js +563 -0
- package/dist/es/chunks/TabsRoot.js +102 -0
- package/dist/es/chunks/Teleport.js +45 -0
- package/dist/es/chunks/ToggleGroupRoot.js +176 -0
- package/dist/es/chunks/TooltipProvider.js +75 -0
- package/dist/es/chunks/TooltipRoot.js +127 -0
- package/dist/es/chunks/VisuallyHidden.js +59 -0
- package/dist/es/chunks/VisuallyHiddenInput.js +140 -0
- package/dist/es/chunks/alert.js +1 -1
- package/dist/es/chunks/badge.js +1 -1
- package/dist/es/chunks/button.js +3 -3
- package/dist/es/chunks/checkbox-card.js +9 -8
- package/dist/es/chunks/checkbox-label.js +10 -9
- package/dist/es/chunks/checkbox.js +234 -10
- package/dist/es/chunks/clamp.js +64 -0
- package/dist/es/chunks/collapsible-content.js +105 -3
- package/dist/es/chunks/collapsible-trigger.js +50 -2
- package/dist/es/chunks/collapsible.js +5 -3
- package/dist/es/chunks/color-area.js +3 -3
- package/dist/es/chunks/color-picker.js +13 -13
- package/dist/es/chunks/color-swatch.js +2 -2
- package/dist/es/chunks/combobox-anchor.js +45 -4
- package/dist/es/chunks/combobox-empty.js +30 -4
- package/dist/es/chunks/combobox-group.js +5 -4
- package/dist/es/chunks/combobox-input.js +6 -5
- package/dist/es/chunks/combobox-item.js +7 -6
- package/dist/es/chunks/combobox-list.js +104 -8
- package/dist/es/chunks/combobox-root.js +21 -18
- package/dist/es/chunks/combobox-separator.js +3 -3
- package/dist/es/chunks/combobox-trigger.js +63 -5
- package/dist/es/chunks/combobox.js +38 -31
- package/dist/es/chunks/compact-button.js +3 -3
- package/dist/es/chunks/components.js +46 -46
- package/dist/es/chunks/content-divider.js +87 -3
- package/dist/es/chunks/core.js +2 -2
- package/dist/es/chunks/counter-input.js +884 -9
- package/dist/es/chunks/createContext.js +32 -0
- package/dist/es/chunks/digit-input-group.js +5 -4
- package/dist/es/chunks/digit-input-slot.js +242 -5
- package/dist/es/chunks/digit-input.js +7 -6
- package/dist/es/chunks/dist.js +486 -11478
- package/dist/es/chunks/dropdown-menu-content.js +541 -6
- package/dist/es/chunks/dropdown-menu-group.js +29 -4
- package/dist/es/chunks/dropdown-menu-item.js +125 -5
- package/dist/es/chunks/dropdown-menu-label.js +58 -5
- package/dist/es/chunks/dropdown-menu-separator.js +56 -4
- package/dist/es/chunks/dropdown-menu-sub-content.js +294 -6
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +192 -5
- package/dist/es/chunks/dropdown-menu-sub.js +40 -4
- package/dist/es/chunks/dropdown-menu-trigger.js +90 -5
- package/dist/es/chunks/dropdown-menu.js +5 -4
- package/dist/es/chunks/extra-settings.js +4 -4
- package/dist/es/chunks/fancy-button.js +3 -3
- package/dist/es/chunks/file-upload-area.js +1 -1
- package/dist/es/chunks/getActiveElement.js +9 -0
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +13 -0
- package/dist/es/chunks/hint-text.js +1 -1
- package/dist/es/chunks/isValueEqualOrExist.js +19 -0
- package/dist/es/chunks/{label.js → label2.js} +5 -4
- package/dist/es/chunks/link-bubble.js +6 -6
- package/dist/es/chunks/link-button.js +3 -3
- package/dist/es/chunks/menus.js +2 -2
- package/dist/es/chunks/modal-close.js +2 -2
- package/dist/es/chunks/modal-content.js +7 -7
- package/dist/es/chunks/modal-header.js +7 -5
- package/dist/es/chunks/modal-trigger.js +2 -2
- package/dist/es/chunks/modal.js +6 -4
- package/dist/es/chunks/nullish.js +6 -0
- package/dist/es/chunks/ohash.D__AXeF1.js +109 -0
- package/dist/es/chunks/pagination-content.js +85 -4
- package/dist/es/chunks/pagination-ellipsis.js +29 -4
- package/dist/es/chunks/pagination-first.js +39 -4
- package/dist/es/chunks/pagination-item.js +51 -3
- package/dist/es/chunks/pagination-last.js +39 -4
- package/dist/es/chunks/pagination-next.js +39 -4
- package/dist/es/chunks/pagination-previous.js +39 -4
- package/dist/es/chunks/pagination.js +5 -4
- package/dist/es/chunks/popover-content.js +704 -8
- package/dist/es/chunks/popover-trigger.js +61 -4
- package/dist/es/chunks/popover.js +4 -3
- package/dist/es/chunks/progress-bar.js +6 -5
- package/dist/es/chunks/progress-circle.js +6 -5
- package/dist/es/chunks/radio-group-card.js +9 -8
- package/dist/es/chunks/radio-group-item.js +304 -7
- package/dist/es/chunks/radio-group-label.js +10 -9
- package/dist/es/chunks/radio-group.js +6 -5
- package/dist/es/chunks/rich-editor.js +5 -5
- package/dist/es/chunks/scroll-area.js +141 -7
- package/dist/es/chunks/scroll-bar.js +883 -6
- package/dist/es/chunks/segmented-control-item.js +162 -4
- package/dist/es/chunks/segmented-control.js +7 -4
- package/dist/es/chunks/select-content.js +319 -7
- package/dist/es/chunks/select-group.js +2 -2
- package/dist/es/chunks/select-item.js +226 -6
- package/dist/es/chunks/select-label.js +33 -3
- package/dist/es/chunks/select-separator.js +27 -4
- package/dist/es/chunks/select-trigger.js +164 -5
- package/dist/es/chunks/select-value.js +64 -4
- package/dist/es/chunks/select.js +8 -4
- package/dist/es/chunks/sheet-close.js +3 -3
- package/dist/es/chunks/sheet-content.js +8 -7
- package/dist/es/chunks/sheet-description.js +3 -3
- package/dist/es/chunks/sheet-footer.js +1 -1
- package/dist/es/chunks/sheet-header.js +1 -1
- package/dist/es/chunks/sheet-title.js +3 -3
- package/dist/es/chunks/sheet-trigger.js +2 -2
- package/dist/es/chunks/sheet.js +6 -4
- package/dist/es/chunks/sidebar-element.js +2 -2
- package/dist/es/chunks/sidebar-group-label.js +2 -2
- package/dist/es/chunks/sidebar-menu-action.js +2 -2
- package/dist/es/chunks/sidebar-menu-button.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub-button.js +2 -2
- package/dist/es/chunks/sidebar-trigger.js +1 -1
- package/dist/es/chunks/slider.js +751 -8
- package/dist/es/chunks/social-button.js +3 -3
- package/dist/es/chunks/sonner-alert.js +1 -1
- package/dist/es/chunks/status-badge.js +1 -1
- package/dist/es/chunks/switch.js +192 -10
- package/dist/es/chunks/tab-menu-content.js +81 -4
- package/dist/es/chunks/tab-menu-item.js +89 -5
- package/dist/es/chunks/tab-menu-list.js +60 -4
- package/dist/es/chunks/tab-menu.js +6 -4
- package/dist/es/chunks/table-body.js +1 -1
- package/dist/es/chunks/table-caption.js +1 -1
- package/dist/es/chunks/table-cell.js +1 -1
- package/dist/es/chunks/table-footer.js +1 -1
- package/dist/es/chunks/table-head.js +1 -1
- package/dist/es/chunks/table-row.js +1 -1
- package/dist/es/chunks/table.js +1 -1
- package/dist/es/chunks/table2.js +1 -1
- package/dist/es/chunks/tag.js +3 -3
- package/dist/es/chunks/text-input-button.js +11 -5
- package/dist/es/chunks/text-input.js +8 -8
- package/dist/es/chunks/textarea.js +1 -1
- package/dist/es/chunks/tooltip-content.js +589 -8
- package/dist/es/chunks/tooltip-provider.js +4 -3
- package/dist/es/chunks/tooltip-root.js +4 -3
- package/dist/es/chunks/tooltip-trigger.js +109 -4
- package/dist/es/chunks/tooltip.js +7 -5
- package/dist/es/chunks/useArrowNavigation.js +60 -0
- package/dist/es/chunks/useComposing.js +21 -0
- package/dist/es/chunks/useDirection.js +14 -0
- package/dist/es/chunks/useEmitAsProps.js +28 -0
- package/dist/es/chunks/useFocusGuards.js +34 -0
- package/dist/es/chunks/useFormControl.js +8 -0
- package/dist/es/chunks/useForwardExpose.js +58 -0
- package/dist/es/chunks/useForwardProps.js +34 -0
- package/dist/es/chunks/useForwardPropsEmits.js +14 -0
- package/dist/es/chunks/useForwardScopeId.js +25 -0
- package/dist/es/chunks/useHideOthers.js +132 -0
- package/dist/es/chunks/useId.js +23 -0
- package/dist/es/chunks/useKbd.js +41 -0
- package/dist/es/chunks/useNonce.js +9 -0
- package/dist/es/chunks/usePrimitiveElement.js +12 -0
- package/dist/es/chunks/useSize.js +49 -0
- package/dist/es/chunks/useTypeahead.js +64 -0
- package/dist/es/chunks/utils.js +58 -0
- package/dist/es/chunks/utils2.js +44 -0
- package/dist/es/chunks/utils3.js +9 -0
- package/dist/es/command-group.js +5 -4
- package/dist/es/command-input.js +8 -6
- package/dist/es/command-item.js +5 -3
- package/dist/es/command-list.js +13 -7
- package/dist/es/command-root.js +19 -16
- package/dist/es/command-separator.js +3 -3
- package/dist/es/config.js +1 -1
- package/dist/es/index.js +46 -46
- package/dist/es/label.js +1 -1
- package/dist/es/use-sidebar.js +2 -2
- package/dist/{components → src/components}/alert/alert.d.ts +17 -14
- package/dist/{components → src/components}/button/button.d.ts +11 -8
- package/dist/{components → src/components}/button/compact-button.d.ts +4 -4
- package/dist/src/components/button/fancy-button.d.ts +24 -0
- package/dist/{components → src/components}/button/link-button.d.ts +11 -8
- package/dist/{components → src/components}/checkbox/checkbox-card.d.ts +1 -1
- package/dist/{components → src/components}/checkbox/checkbox-label.d.ts +1 -1
- package/dist/{components → src/components}/checkbox/checkbox.d.ts +3 -3
- package/dist/src/components/collapsible/collapsible-content.d.ts +18 -0
- package/dist/src/components/collapsible/collapsible-trigger.d.ts +16 -0
- package/dist/{components → src/components}/collapsible/collapsible.d.ts +12 -9
- package/dist/{components → src/components}/color-picker/color-picker.d.ts +11 -8
- package/dist/{components → src/components}/combobox/combobox-anchor.d.ts +1 -1
- package/dist/{components → src/components}/combobox/combobox-empty.d.ts +1 -1
- package/dist/{components → src/components}/combobox/combobox-group.d.ts +1 -1
- package/dist/{components → src/components}/combobox/combobox-input.d.ts +1 -1
- package/dist/{components → src/components}/combobox/combobox-item.d.ts +13 -10
- package/dist/src/components/combobox/combobox-list.d.ts +32 -0
- package/dist/{components → src/components}/combobox/combobox-root.d.ts +11 -7
- package/dist/{components → src/components}/combobox/combobox-separator.d.ts +1 -1
- package/dist/{components → src/components}/combobox/combobox-trigger.d.ts +9 -6
- package/dist/src/components/combobox/combobox.d.ts +52 -0
- package/dist/{components → src/components}/content-divider/content-divider.d.ts +3 -3
- package/dist/{components → src/components}/counter-input/counter-input.d.ts +2 -2
- package/dist/{components → src/components}/digit-input/digit-input-group.d.ts +1 -1
- package/dist/{components → src/components}/digit-input/digit-input-slot.d.ts +1 -1
- package/dist/src/components/digit-input/digit-input.d.ts +29 -0
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-content.d.ts +7 -7
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-group.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-item.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-label.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-separator.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-sub-content.d.ts +7 -7
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-sub-trigger.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-sub.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu-trigger.d.ts +1 -1
- package/dist/{components → src/components}/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/{components → src/components}/file-upload/file-upload-area.d.ts +8 -7
- package/dist/{components → src/components}/label/label.d.ts +1 -1
- package/dist/{components → src/components}/modal/modal-close.d.ts +1 -1
- package/dist/{components → src/components}/modal/modal-content.d.ts +7 -7
- package/dist/{components → src/components}/modal/modal-trigger.d.ts +1 -1
- package/dist/{components → src/components}/modal/modal.d.ts +1 -1
- package/dist/src/components/pagination/pagination-content.d.ts +25 -0
- package/dist/src/components/pagination/pagination-ellipsis.d.ts +18 -0
- package/dist/src/components/pagination/pagination-first.d.ts +18 -0
- package/dist/src/components/pagination/pagination-item.d.ts +20 -0
- package/dist/src/components/pagination/pagination-last.d.ts +18 -0
- package/dist/src/components/pagination/pagination-next.d.ts +18 -0
- package/dist/src/components/pagination/pagination-previous.d.ts +18 -0
- package/dist/src/components/pagination/pagination.d.ts +38 -0
- package/dist/src/components/popover/popover-content.d.ts +49 -0
- package/dist/{components → src/components}/popover/popover-trigger.d.ts +1 -1
- package/dist/{components → src/components}/popover/popover.d.ts +1 -1
- package/dist/{components → src/components}/progress/progress-bar.d.ts +1 -1
- package/dist/{components → src/components}/progress/progress-circle.d.ts +1 -1
- package/dist/{components → src/components}/radio-group/radio-group-card.d.ts +1 -1
- package/dist/{components → src/components}/radio-group/radio-group-item.d.ts +1 -1
- package/dist/{components → src/components}/radio-group/radio-group-label.d.ts +1 -1
- package/dist/{components → src/components}/radio-group/radio-group.d.ts +3 -3
- package/dist/{components → src/components}/scroll-area/scroll-area.d.ts +1 -1
- package/dist/{components → src/components}/scroll-area/scroll-bar.d.ts +1 -1
- package/dist/{components → src/components}/segmented-control/segmented-control-item.d.ts +1 -1
- package/dist/{components → src/components}/segmented-control/segmented-control.d.ts +3 -3
- package/dist/{components → src/components}/select/select-content.d.ts +3 -3
- package/dist/{components → src/components}/select/select-group.d.ts +1 -1
- package/dist/{components → src/components}/select/select-item.d.ts +1 -1
- package/dist/{components → src/components}/select/select-label.d.ts +1 -1
- package/dist/{components → src/components}/select/select-separator.d.ts +1 -1
- package/dist/{components → src/components}/select/select-trigger.d.ts +1 -1
- package/dist/{components → src/components}/select/select-value.d.ts +1 -1
- package/dist/{components → src/components}/select/select.d.ts +3 -3
- package/dist/src/components/sheet/sheet-close.d.ts +18 -0
- package/dist/src/components/sheet/sheet-content.d.ts +35 -0
- package/dist/src/components/sheet/sheet-description.d.ts +18 -0
- package/dist/src/components/sheet/sheet-footer.d.ts +17 -0
- package/dist/src/components/sheet/sheet-header.d.ts +17 -0
- package/dist/src/components/sheet/sheet-title.d.ts +18 -0
- package/dist/src/components/sheet/sheet-trigger.d.ts +16 -0
- package/dist/{components → src/components}/sheet/sheet.d.ts +1 -1
- package/dist/src/components/sidebar/sidebar-element.d.ts +20 -0
- package/dist/src/components/sidebar/sidebar-footer.d.ts +17 -0
- package/dist/{components → src/components}/sidebar/sidebar-group-label.d.ts +1 -1
- package/dist/src/components/sidebar/sidebar-header.d.ts +17 -0
- package/dist/src/components/sidebar/sidebar-menu-action.d.ts +21 -0
- package/dist/{components → src/components}/sidebar/sidebar-menu-button.d.ts +2 -2
- package/dist/src/components/sidebar/sidebar-menu-sub-button.d.ts +24 -0
- package/dist/{components → src/components}/sidebar/sidebar.d.ts +11 -8
- package/dist/{components → src/components}/slider/slider.d.ts +1 -1
- package/dist/{components → src/components}/switch/switch.d.ts +3 -3
- package/dist/{components → src/components}/tab-menu/tab-menu-content.d.ts +1 -1
- package/dist/{components → src/components}/tab-menu/tab-menu-item.d.ts +1 -1
- package/dist/{components → src/components}/tab-menu/tab-menu-list.d.ts +1 -1
- package/dist/{components → src/components}/tab-menu/tab-menu.d.ts +3 -3
- package/dist/src/components/table/table-body.d.ts +17 -0
- package/dist/src/components/table/table-caption.d.ts +17 -0
- package/dist/src/components/table/table-cell.d.ts +20 -0
- package/dist/src/components/table/table-empty.d.ts +20 -0
- package/dist/src/components/table/table-footer.d.ts +17 -0
- package/dist/src/components/table/table-head.d.ts +20 -0
- package/dist/src/components/table/table-header.d.ts +17 -0
- package/dist/src/components/table/table-row.d.ts +20 -0
- package/dist/src/components/table/table.d.ts +17 -0
- package/dist/{components → src/components}/tag/tag.d.ts +11 -8
- package/dist/{components → src/components}/text-input/text-input-button.d.ts +1 -1
- package/dist/src/components/text-input/text-input.d.ts +42 -0
- package/dist/{components → src/components}/textarea/textarea.d.ts +9 -8
- package/dist/{components → src/components}/tooltip/tooltip-content.d.ts +10 -7
- package/dist/src/components/tooltip/tooltip-provider.d.ts +18 -0
- package/dist/{components → src/components}/tooltip/tooltip-root.d.ts +10 -7
- package/dist/src/components/tooltip/tooltip-trigger.d.ts +16 -0
- package/dist/{components → src/components}/tooltip/tooltip.d.ts +10 -7
- package/package.json +11 -11
- package/src/components/alert/alert.vue +8 -10
- package/src/components/badge/badge.vue +7 -9
- package/src/components/badge/status-badge.vue +10 -11
- package/src/components/button/button.vue +9 -10
- package/src/components/button/compact-button.vue +8 -9
- package/src/components/button/fancy-button.vue +10 -11
- package/src/components/button/link-button.vue +8 -9
- package/src/components/button/social-button.vue +5 -7
- package/src/components/checkbox/checkbox-card.vue +2 -2
- package/src/components/checkbox/checkbox-label.vue +2 -1
- package/src/components/checkbox/checkbox.vue +2 -2
- package/src/components/checkbox/stories/checkbox.stories.ts +4 -5
- package/src/components/collapsible/collapsible-content.vue +4 -6
- package/src/components/collapsible/collapsible-trigger.vue +4 -6
- package/src/components/collapsible/collapsible.vue +4 -6
- package/src/components/color-picker/alpha-slider.vue +8 -10
- package/src/components/color-picker/color-area.vue +8 -10
- package/src/components/color-picker/color-picker.vue +43 -43
- package/src/components/color-picker/color-swatch.vue +11 -13
- package/src/components/color-picker/composable/use-color-model.ts +2 -1
- package/src/components/color-picker/composable/use-user-select.ts +2 -1
- package/src/components/combobox/combobox-anchor.vue +4 -3
- package/src/components/combobox/combobox-empty.vue +4 -3
- package/src/components/combobox/combobox-group.vue +5 -4
- package/src/components/combobox/combobox-input.vue +6 -3
- package/src/components/combobox/combobox-item.vue +19 -20
- package/src/components/combobox/combobox-list.vue +7 -6
- package/src/components/combobox/combobox-root.vue +2 -1
- package/src/components/combobox/combobox-separator.vue +4 -3
- package/src/components/combobox/combobox-trigger.vue +25 -23
- package/src/components/combobox/combobox.vue +39 -33
- package/src/components/command/command-group.vue +4 -3
- package/src/components/command/command-input.vue +4 -2
- package/src/components/command/command-item.vue +4 -3
- package/src/components/command/command-list.vue +5 -6
- package/src/components/command/command-root.vue +4 -3
- package/src/components/command/command-separator.vue +4 -3
- package/src/components/content-divider/content-divider.vue +7 -9
- package/src/components/counter-input/counter-input.vue +2 -1
- package/src/components/digit-input/digit-input-group.vue +2 -1
- package/src/components/digit-input/digit-input-slot.vue +2 -1
- package/src/components/digit-input/digit-input.vue +8 -5
- package/src/components/digit-input/stories/digit-input.stories.ts +13 -3
- package/src/components/dropdown-menu/dropdown-menu-content.vue +4 -4
- package/src/components/dropdown-menu/dropdown-menu-group.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-item.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-label.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu-separator.vue +3 -2
- package/src/components/dropdown-menu/dropdown-menu-sub-content.vue +4 -4
- package/src/components/dropdown-menu/dropdown-menu-sub-trigger.vue +3 -2
- package/src/components/dropdown-menu/dropdown-menu-sub.vue +3 -3
- package/src/components/dropdown-menu/dropdown-menu-trigger.vue +2 -1
- package/src/components/dropdown-menu/dropdown-menu.vue +2 -2
- package/src/components/file-upload/file-upload-area.vue +26 -27
- package/src/components/file-upload/stories/file-upload-area.stories.ts +2 -1
- package/src/components/hint-text/hint-text.vue +4 -6
- package/src/components/label/label.vue +2 -1
- package/src/components/modal/modal-close.vue +2 -1
- package/src/components/modal/modal-content.vue +2 -2
- package/src/components/modal/modal-header.vue +1 -1
- package/src/components/modal/modal-trigger.vue +2 -2
- package/src/components/modal/modal.vue +2 -2
- package/src/components/pagination/pagination-content.vue +6 -7
- package/src/components/pagination/pagination-ellipsis.vue +7 -8
- package/src/components/pagination/pagination-first.vue +6 -7
- package/src/components/pagination/pagination-item.vue +6 -7
- package/src/components/pagination/pagination-last.vue +6 -7
- package/src/components/pagination/pagination-next.vue +6 -7
- package/src/components/pagination/pagination-previous.vue +7 -8
- package/src/components/pagination/pagination.vue +7 -8
- package/src/components/popover/popover-content.vue +19 -20
- package/src/components/popover/popover-trigger.vue +2 -1
- package/src/components/popover/popover.vue +2 -2
- package/src/components/popover/stories/popover.stories.ts +1 -1
- package/src/components/progress/progress-bar.vue +5 -3
- package/src/components/progress/progress-circle.vue +3 -2
- package/src/components/radio-group/radio-group-card.vue +2 -2
- package/src/components/radio-group/radio-group-item.vue +2 -1
- package/src/components/radio-group/radio-group-label.vue +2 -1
- package/src/components/radio-group/radio-group.vue +2 -1
- package/src/components/rich-editor/config.ts +1 -1
- package/src/components/rich-editor/extra-settings.vue +1 -1
- package/src/components/rich-editor/link-bubble.vue +1 -1
- package/src/components/rich-editor/rich-editor.vue +3 -2
- package/src/components/scroll-area/scroll-area.vue +3 -2
- package/src/components/scroll-area/scroll-bar.vue +2 -1
- package/src/components/segmented-control/segmented-control-item.vue +2 -1
- package/src/components/segmented-control/segmented-control.vue +2 -1
- package/src/components/select/select-content.vue +4 -3
- package/src/components/select/select-group.vue +2 -1
- package/src/components/select/select-item.vue +2 -1
- package/src/components/select/select-label.vue +2 -1
- package/src/components/select/select-separator.vue +2 -1
- package/src/components/select/select-trigger.vue +2 -1
- package/src/components/select/select-value.vue +2 -1
- package/src/components/select/select.vue +2 -1
- package/src/components/sheet/sheet-close.vue +4 -6
- package/src/components/sheet/sheet-content.vue +7 -9
- package/src/components/sheet/sheet-description.vue +6 -8
- package/src/components/sheet/sheet-footer.vue +2 -4
- package/src/components/sheet/sheet-header.vue +2 -4
- package/src/components/sheet/sheet-title.vue +6 -8
- package/src/components/sheet/sheet-trigger.vue +4 -6
- package/src/components/sheet/sheet.vue +2 -2
- package/src/components/sidebar/sidebar-element.vue +6 -8
- package/src/components/sidebar/sidebar-footer.vue +2 -4
- package/src/components/sidebar/sidebar-group-label.vue +2 -2
- package/src/components/sidebar/sidebar-header.vue +2 -4
- package/src/components/sidebar/sidebar-menu-action.vue +6 -8
- package/src/components/sidebar/sidebar-menu-badge.vue +6 -8
- package/src/components/sidebar/sidebar-menu-button.vue +2 -2
- package/src/components/sidebar/sidebar-menu-sub-button.vue +8 -10
- package/src/components/sidebar/sidebar-separator.vue +2 -4
- package/src/components/sidebar/sidebar-trigger.vue +1 -1
- package/src/components/sidebar/sidebar.vue +6 -8
- package/src/components/slider/slider.vue +2 -1
- package/src/components/sonner/sonner-alert.vue +2 -1
- package/src/components/sonner/sonner.vue +4 -5
- package/src/components/switch/stories/switch.stories.ts +3 -3
- package/src/components/switch/switch.vue +2 -1
- package/src/components/tab-menu/tab-menu-content.vue +2 -1
- package/src/components/tab-menu/tab-menu-item.vue +2 -1
- package/src/components/tab-menu/tab-menu-list.vue +2 -1
- package/src/components/tab-menu/tab-menu.vue +2 -2
- package/src/components/table/table-body.vue +2 -4
- package/src/components/table/table-caption.vue +2 -4
- package/src/components/table/table-cell.vue +5 -7
- package/src/components/table/table-empty.vue +5 -7
- package/src/components/table/table-footer.vue +2 -4
- package/src/components/table/table-head.vue +5 -7
- package/src/components/table/table-header.vue +2 -4
- package/src/components/table/table-row.vue +5 -7
- package/src/components/table/table.vue +2 -4
- package/src/components/tag/tag.vue +10 -11
- package/src/components/text-input/text-input-button.vue +3 -2
- package/src/components/text-input/text-input.vue +9 -10
- package/src/components/textarea/textarea.vue +8 -10
- package/src/components/tooltip/tooltip-content.vue +14 -15
- package/src/components/tooltip/tooltip-provider.vue +4 -5
- package/src/components/tooltip/tooltip-root.vue +4 -5
- package/src/components/tooltip/tooltip-trigger.vue +4 -5
- package/src/components/tooltip/tooltip.vue +12 -14
- package/src/composables/use-delegated-props.ts +2 -1
- package/src/composables/use-sidebar.ts +1 -1
- package/src/utils/sonner.ts +2 -1
- package/dist/components/button/fancy-button.d.ts +0 -21
- package/dist/components/collapsible/collapsible-content.d.ts +0 -15
- package/dist/components/collapsible/collapsible-trigger.d.ts +0 -13
- package/dist/components/combobox/combobox-list.d.ts +0 -32
- package/dist/components/combobox/combobox.d.ts +0 -45
- package/dist/components/digit-input/digit-input.d.ts +0 -28
- package/dist/components/pagination/pagination-content.d.ts +0 -22
- package/dist/components/pagination/pagination-ellipsis.d.ts +0 -15
- package/dist/components/pagination/pagination-first.d.ts +0 -15
- package/dist/components/pagination/pagination-item.d.ts +0 -17
- package/dist/components/pagination/pagination-last.d.ts +0 -15
- package/dist/components/pagination/pagination-next.d.ts +0 -15
- package/dist/components/pagination/pagination-previous.d.ts +0 -15
- package/dist/components/pagination/pagination.d.ts +0 -35
- package/dist/components/popover/popover-content.d.ts +0 -46
- package/dist/components/sheet/sheet-close.d.ts +0 -15
- package/dist/components/sheet/sheet-content.d.ts +0 -32
- package/dist/components/sheet/sheet-description.d.ts +0 -15
- package/dist/components/sheet/sheet-footer.d.ts +0 -14
- package/dist/components/sheet/sheet-header.d.ts +0 -14
- package/dist/components/sheet/sheet-title.d.ts +0 -15
- package/dist/components/sheet/sheet-trigger.d.ts +0 -13
- package/dist/components/sidebar/sidebar-element.d.ts +0 -17
- package/dist/components/sidebar/sidebar-footer.d.ts +0 -14
- package/dist/components/sidebar/sidebar-header.d.ts +0 -14
- package/dist/components/sidebar/sidebar-menu-action.d.ts +0 -18
- package/dist/components/sidebar/sidebar-menu-sub-button.d.ts +0 -21
- package/dist/components/table/table-body.d.ts +0 -14
- package/dist/components/table/table-caption.d.ts +0 -14
- package/dist/components/table/table-cell.d.ts +0 -17
- package/dist/components/table/table-empty.d.ts +0 -17
- package/dist/components/table/table-footer.d.ts +0 -14
- package/dist/components/table/table-head.d.ts +0 -17
- package/dist/components/table/table-header.d.ts +0 -14
- package/dist/components/table/table-row.d.ts +0 -17
- package/dist/components/table/table.d.ts +0 -14
- package/dist/components/text-input/text-input.d.ts +0 -38
- package/dist/components/tooltip/tooltip-provider.d.ts +0 -15
- package/dist/components/tooltip/tooltip-trigger.d.ts +0 -13
- package/dist/{components → src/components}/alert/index.d.ts +0 -0
- package/dist/{components → src/components}/badge/badge.d.ts +2 -2
- package/dist/{components → src/components}/badge/index.d.ts +0 -0
- package/dist/{components → src/components}/badge/status-badge.d.ts +2 -2
- package/dist/{components → src/components}/button/index.d.ts +0 -0
- package/dist/{components → src/components}/button/social-button.d.ts +2 -2
- package/dist/{components → src/components}/checkbox/index.d.ts +0 -0
- package/dist/{components → src/components}/collapsible/index.d.ts +0 -0
- package/dist/{components → src/components}/color-picker/alpha-slider.d.ts +2 -2
- package/dist/{components → src/components}/color-picker/color-area.d.ts +1 -1
- package/dist/{components → src/components}/color-picker/color-swatch.d.ts +2 -2
- package/dist/{components → src/components}/color-picker/composable/use-color-model.d.ts +1 -1
- package/dist/{components → src/components}/color-picker/composable/use-user-select.d.ts +0 -0
- package/dist/{components → src/components}/color-picker/hue-slider.d.ts +0 -0
- package/dist/{components → src/components}/color-picker/index.d.ts +0 -0
- package/dist/{components → src/components}/combobox/index.d.ts +0 -0
- package/dist/{components → src/components}/content-divider/index.d.ts +0 -0
- package/dist/{components → src/components}/counter-input/index.d.ts +0 -0
- package/dist/{components → src/components}/digit-input/index.d.ts +0 -0
- package/dist/{components → src/components}/dropdown-menu/index.d.ts +0 -0
- package/dist/{components → src/components}/file-upload/index.d.ts +0 -0
- package/dist/{components → src/components}/hint-text/hint-text.d.ts +2 -2
- package/dist/{components → src/components}/hint-text/index.d.ts +0 -0
- package/dist/{components → src/components}/index.d.ts +0 -0
- package/dist/{components → src/components}/label/index.d.ts +0 -0
- package/dist/{components → src/components}/modal/index.d.ts +0 -0
- package/dist/{components → src/components}/modal/modal-body.d.ts +0 -0
- package/dist/{components → src/components}/modal/modal-footer.d.ts +0 -0
- package/dist/{components → src/components}/modal/modal-header.d.ts +0 -0
- package/dist/{components → src/components}/pagination/index.d.ts +0 -0
- package/dist/{components → src/components}/popover/index.d.ts +0 -0
- package/dist/{components → src/components}/progress/index.d.ts +0 -0
- package/dist/{components → src/components}/radio-group/index.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/config.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/extra-settings.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/index.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/link-bubble.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/rich-editor.d.ts +0 -0
- package/dist/{components → src/components}/rich-editor/types.d.ts +0 -0
- package/dist/{components → src/components}/scroll-area/index.d.ts +0 -0
- package/dist/{components → src/components}/segmented-control/index.d.ts +0 -0
- package/dist/{components → src/components}/select/index.d.ts +0 -0
- package/dist/{components → src/components}/select/select-icon.d.ts +0 -0
- package/dist/{components → src/components}/sheet/index.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/index.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-content.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-group-content.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-group.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-menu-badge.d.ts +2 -2
- package/dist/{components → src/components}/sidebar/sidebar-menu-item.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-menu-sub-item.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-menu-sub.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-menu.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-provider.d.ts +0 -0
- package/dist/{components → src/components}/sidebar/sidebar-separator.d.ts +1 -1
- package/dist/{components → src/components}/sidebar/sidebar-trigger.d.ts +0 -0
- package/dist/{components → src/components}/slider/index.d.ts +0 -0
- package/dist/{components → src/components}/sonner/index.d.ts +0 -0
- package/dist/{components → src/components}/sonner/sonner-alert.d.ts +0 -0
- package/dist/{components → src/components}/sonner/sonner.d.ts +1 -1
- package/dist/{components → src/components}/switch/index.d.ts +0 -0
- package/dist/{components → src/components}/tab-menu/index.d.ts +0 -0
- package/dist/{components → src/components}/table/index.d.ts +0 -0
- package/dist/{components → src/components}/tag/index.d.ts +0 -0
- package/dist/{components → src/components}/text-input/index.d.ts +0 -0
- package/dist/{components → src/components}/text-input/text-input-affix.d.ts +0 -0
- package/dist/{components → src/components}/textarea/index.d.ts +0 -0
- package/dist/{components → src/components}/tooltip/index.d.ts +0 -0
- package/dist/{composables → src/composables}/index.d.ts +0 -0
- package/dist/{composables → src/composables}/use-delegated-props.d.ts +0 -0
- package/dist/{composables → src/composables}/use-sidebar.d.ts +0 -0
- package/dist/{index.d.ts → src/index.d.ts} +0 -0
- package/dist/{utils → src/utils}/color.d.ts +0 -0
- package/dist/{utils → src/utils}/crypto.d.ts +0 -0
- package/dist/{utils → src/utils}/index.d.ts +0 -0
- package/dist/{utils → src/utils}/sonner.d.ts +1 -1
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { PrimitiveProps } from 'reka-ui';
|
|
2
3
|
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { Primitive
|
|
5
|
+
import { Primitive } from 'reka-ui';
|
|
5
6
|
|
|
6
|
-
const props = withDefaults(defineProps<FancyButtonProps>(), {
|
|
7
|
-
size: 'md',
|
|
8
|
-
intent: 'primary',
|
|
9
|
-
as: 'button',
|
|
10
|
-
});
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<script lang="ts">
|
|
14
7
|
export interface FancyButtonProps extends PrimitiveProps {
|
|
15
8
|
class?: HTMLAttributes['class'];
|
|
16
9
|
size?: 'xs' | 'sm' | 'md';
|
|
17
10
|
intent?: 'primary' | 'neutral' | 'error' | 'basic';
|
|
18
11
|
}
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(defineProps<FancyButtonProps>(), {
|
|
14
|
+
size: 'md',
|
|
15
|
+
intent: 'primary',
|
|
16
|
+
as: 'button',
|
|
17
|
+
});
|
|
19
18
|
</script>
|
|
20
19
|
|
|
21
20
|
<template>
|
|
@@ -85,8 +84,8 @@ $intent-map: (
|
|
|
85
84
|
box-sizing: border-box;
|
|
86
85
|
align-items: center;
|
|
87
86
|
justify-content: center;
|
|
88
|
-
transition-property:
|
|
89
|
-
box-shadow;
|
|
87
|
+
transition-property:
|
|
88
|
+
--celeste-fbutton-bg-start, --celeste-fbutton-bg-end, background-color, color, border-color, box-shadow;
|
|
90
89
|
transition-duration: var(--animation-fast);
|
|
91
90
|
transition-timing-function: ease-out;
|
|
92
91
|
border: none;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { PrimitiveProps } from 'reka-ui';
|
|
2
3
|
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { Primitive
|
|
5
|
+
import { Primitive } from 'reka-ui';
|
|
5
6
|
|
|
6
|
-
const props = withDefaults(defineProps<LinkButtonProps>(), {
|
|
7
|
-
size: 'md',
|
|
8
|
-
intent: 'primary',
|
|
9
|
-
as: 'a',
|
|
10
|
-
});
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<script lang="ts">
|
|
14
7
|
export interface LinkButtonProps extends PrimitiveProps {
|
|
15
8
|
class?: HTMLAttributes['class'];
|
|
16
9
|
size?: 'sm' | 'md';
|
|
@@ -18,6 +11,12 @@ export interface LinkButtonProps extends PrimitiveProps {
|
|
|
18
11
|
underline?: boolean;
|
|
19
12
|
disabled?: boolean;
|
|
20
13
|
}
|
|
14
|
+
|
|
15
|
+
const props = withDefaults(defineProps<LinkButtonProps>(), {
|
|
16
|
+
size: 'md',
|
|
17
|
+
intent: 'primary',
|
|
18
|
+
as: 'a',
|
|
19
|
+
});
|
|
21
20
|
</script>
|
|
22
21
|
|
|
23
22
|
<template>
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { Primitive } from '
|
|
3
|
+
import { Primitive } from 'reka-ui';
|
|
4
4
|
|
|
5
|
-
const props = withDefaults(defineProps<SocialButtonProps>(), {
|
|
6
|
-
variant: 'stroke',
|
|
7
|
-
});
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<script lang="ts">
|
|
11
5
|
export interface SocialButtonProps {
|
|
12
6
|
brand: 'apple' | 'twitter' | 'google' | 'facebook' | 'linkedin' | 'github';
|
|
13
7
|
variant?: 'fill' | 'stroke';
|
|
14
8
|
class?: string;
|
|
15
9
|
label?: string;
|
|
16
10
|
}
|
|
11
|
+
|
|
12
|
+
const props = withDefaults(defineProps<SocialButtonProps>(), {
|
|
13
|
+
variant: 'stroke',
|
|
14
|
+
});
|
|
17
15
|
</script>
|
|
18
16
|
|
|
19
17
|
<template>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { LabelProps } from '
|
|
2
|
+
import type { LabelProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { Label, Primitive } from '
|
|
5
|
+
import { Label, Primitive } from 'reka-ui';
|
|
6
6
|
import { useDelegatedProps } from '@/composables/use-delegated-props';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<LabelProps & {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { LabelProps } from 'reka-ui';
|
|
2
3
|
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { Label,
|
|
5
|
+
import { Label, Primitive } from 'reka-ui';
|
|
5
6
|
import { useDelegatedProps } from '@/composables/use-delegated-props';
|
|
6
7
|
|
|
7
8
|
const props = defineProps<LabelProps & {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { CheckboxRootEmits, CheckboxRootProps } from '
|
|
2
|
+
import type { CheckboxRootEmits, CheckboxRootProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from '
|
|
5
|
+
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from 'reka-ui';
|
|
6
6
|
import { useDelegatedProps } from '@/composables/use-delegated-props';
|
|
7
7
|
|
|
8
8
|
const props = defineProps<CheckboxRootProps & { class?: HTMLAttributes['class'] }>();
|
|
@@ -15,7 +15,7 @@ type Story = StoryObj<typeof Checkbox>;
|
|
|
15
15
|
|
|
16
16
|
export const Default: Story = {
|
|
17
17
|
args: {
|
|
18
|
-
|
|
18
|
+
defaultValue: true,
|
|
19
19
|
},
|
|
20
20
|
|
|
21
21
|
render: args => ({
|
|
@@ -33,8 +33,7 @@ export const Default: Story = {
|
|
|
33
33
|
|
|
34
34
|
export const Indeterminate: Story = {
|
|
35
35
|
args: {
|
|
36
|
-
|
|
37
|
-
checked: 'indeterminate',
|
|
36
|
+
defaultValue: 'indeterminate',
|
|
38
37
|
},
|
|
39
38
|
|
|
40
39
|
render: args => ({
|
|
@@ -63,8 +62,8 @@ export const Disabled: Story = {
|
|
|
63
62
|
template: `
|
|
64
63
|
<div style="display: flex; gap: 1em;">
|
|
65
64
|
<Checkbox v-bind="args" />
|
|
66
|
-
<Checkbox v-bind="args"
|
|
67
|
-
<Checkbox v-bind="args"
|
|
65
|
+
<Checkbox v-bind="args" :model-value="true" />
|
|
66
|
+
<Checkbox v-bind="args" model-value="indeterminate" />
|
|
68
67
|
</div>
|
|
69
68
|
`,
|
|
70
69
|
}),
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { CollapsibleContentProps as PrimitiveProps } from '
|
|
2
|
+
import type { CollapsibleContentProps as PrimitiveProps } from 'reka-ui';
|
|
3
3
|
import type { HTMLAttributes } from 'vue';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { CollapsibleContent } from '
|
|
5
|
+
import { CollapsibleContent } from 'reka-ui';
|
|
6
6
|
|
|
7
|
-
const props = defineProps<CollapsibleContentProps>();
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<script lang="ts">
|
|
11
7
|
export interface CollapsibleContentProps extends PrimitiveProps {
|
|
12
8
|
class?: HTMLAttributes['class'];
|
|
13
9
|
}
|
|
10
|
+
|
|
11
|
+
const props = defineProps<CollapsibleContentProps>();
|
|
14
12
|
</script>
|
|
15
13
|
|
|
16
14
|
<template>
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { CollapsibleTriggerProps as PrimitiveProps } from '
|
|
3
|
-
import { CollapsibleTrigger } from '
|
|
2
|
+
import type { CollapsibleTriggerProps as PrimitiveProps } from 'reka-ui';
|
|
3
|
+
import { CollapsibleTrigger } from 'reka-ui';
|
|
4
4
|
|
|
5
|
-
const props = defineProps<CollapsibleTriggerProps>();
|
|
6
|
-
</script>
|
|
7
|
-
|
|
8
|
-
<script lang="ts">
|
|
9
5
|
export interface CollapsibleTriggerProps extends PrimitiveProps {}
|
|
6
|
+
|
|
7
|
+
const props = defineProps<CollapsibleTriggerProps>();
|
|
10
8
|
</script>
|
|
11
9
|
|
|
12
10
|
<template>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { CollapsibleRootEmits, CollapsibleRootProps } from '
|
|
3
|
-
import { CollapsibleRoot, useForwardPropsEmits } from '
|
|
2
|
+
import type { CollapsibleRootEmits, CollapsibleRootProps } from 'reka-ui';
|
|
3
|
+
import { CollapsibleRoot, useForwardPropsEmits } from 'reka-ui';
|
|
4
|
+
|
|
5
|
+
export interface CollapsibleProps extends CollapsibleRootProps {}
|
|
4
6
|
|
|
5
7
|
const props = defineProps<CollapsibleProps>();
|
|
6
8
|
const emits = defineEmits<CollapsibleRootEmits>();
|
|
@@ -8,10 +10,6 @@ const emits = defineEmits<CollapsibleRootEmits>();
|
|
|
8
10
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
9
11
|
</script>
|
|
10
12
|
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
export interface CollapsibleProps extends CollapsibleRootProps {}
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
13
|
<template>
|
|
16
14
|
<CollapsibleRoot v-slot="{ open }" v-bind="forwarded">
|
|
17
15
|
<slot :open="open" />
|
|
@@ -5,6 +5,14 @@ import { useUserPageSelection } from '@/components/color-picker/composable/use-u
|
|
|
5
5
|
import { getAbsolutePosition, getPageXYFromEvent, resolveArrowDirection } from '@/utils/color';
|
|
6
6
|
import { defineColorModel } from './composable/use-color-model';
|
|
7
7
|
|
|
8
|
+
export interface AlphaSliderProps {
|
|
9
|
+
modelValue: tinycolor.Instance;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface AlphaSliderEmits {
|
|
13
|
+
'update:modelValue': [value: string];
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
const props = defineProps<AlphaSliderProps>();
|
|
9
17
|
const emit = defineEmits<AlphaSliderEmits>();
|
|
10
18
|
|
|
@@ -116,16 +124,6 @@ onUnmounted(() => {
|
|
|
116
124
|
});
|
|
117
125
|
</script>
|
|
118
126
|
|
|
119
|
-
<script lang="ts">
|
|
120
|
-
export interface AlphaSliderProps {
|
|
121
|
-
modelValue: tinycolor.Instance;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface AlphaSliderEmits {
|
|
125
|
-
'update:modelValue': [value: string];
|
|
126
|
-
}
|
|
127
|
-
</script>
|
|
128
|
-
|
|
129
127
|
<template>
|
|
130
128
|
<div class="celeste-color-slider">
|
|
131
129
|
<div
|
|
@@ -5,6 +5,11 @@ import { clamp, getAbsolutePosition, getPageXYFromEvent, resolveArrowDirection }
|
|
|
5
5
|
import { ColorPickerEmits, defineColorModel } from './composable/use-color-model.ts';
|
|
6
6
|
import { useUserPageSelection } from './composable/use-user-select.ts';
|
|
7
7
|
|
|
8
|
+
export interface ColorAreaProps {
|
|
9
|
+
hue: number;
|
|
10
|
+
modelValue: tinycolor.Instance;
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
const props = defineProps<ColorAreaProps>();
|
|
9
14
|
const emit = defineEmits(['change'].concat(ColorPickerEmits));
|
|
10
15
|
|
|
@@ -57,7 +62,7 @@ watch(() => props.hue, (newHue, oldHue) => {
|
|
|
57
62
|
}
|
|
58
63
|
});
|
|
59
64
|
|
|
60
|
-
function handleChange(e: MouseEvent | TouchEvent,
|
|
65
|
+
function handleChange(e: MouseEvent | TouchEvent, _ = false) {
|
|
61
66
|
e.preventDefault();
|
|
62
67
|
|
|
63
68
|
const container = containerRef.value;
|
|
@@ -170,13 +175,6 @@ onUnmounted(() => {
|
|
|
170
175
|
});
|
|
171
176
|
</script>
|
|
172
177
|
|
|
173
|
-
<script lang="ts">
|
|
174
|
-
export interface ColorAreaProps {
|
|
175
|
-
hue: number;
|
|
176
|
-
modelValue: tinycolor.Instance;
|
|
177
|
-
}
|
|
178
|
-
</script>
|
|
179
|
-
|
|
180
178
|
<template>
|
|
181
179
|
<div
|
|
182
180
|
ref="color-area"
|
|
@@ -207,7 +205,7 @@ export interface ColorAreaProps {
|
|
|
207
205
|
width: 240px;
|
|
208
206
|
height: 232px;
|
|
209
207
|
border-radius: var(--radius-8);
|
|
210
|
-
background:
|
|
211
|
-
v-bind(colorAreaBg);
|
|
208
|
+
background:
|
|
209
|
+
linear-gradient(to top, black, transparent), linear-gradient(to right, white, transparent), v-bind(colorAreaBg);
|
|
212
210
|
}
|
|
213
211
|
</style>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { ColorKey, HSBKey, HSLKey, RGBKey } from '@/utils/color';
|
|
4
|
+
import { useForwardPropsEmits } from 'reka-ui';
|
|
3
5
|
import tinycolor from 'tinycolor2';
|
|
4
|
-
import { computed,
|
|
6
|
+
import { computed, ref, watch } from 'vue';
|
|
5
7
|
import { useDelegatedProps } from '@/composables/use-delegated-props';
|
|
6
|
-
import { bumpColorValue, clamp, COLOR_NUMBER_VALIDATION_PATTERN,
|
|
8
|
+
import { bumpColorValue, clamp, COLOR_NUMBER_VALIDATION_PATTERN, getColorConstraints, HEX_VALIDATION_PATTERN, resolveArrowDirection, truncColorValue } from '@/utils/color';
|
|
7
9
|
import { Button } from '../button';
|
|
8
10
|
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
9
11
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../select';
|
|
@@ -13,6 +15,43 @@ import AlphaSlider from './alpha-slider.vue';
|
|
|
13
15
|
import ColorSwatch from './color-swatch.vue';
|
|
14
16
|
import { defineColorModel } from './composable/use-color-model';
|
|
15
17
|
|
|
18
|
+
export type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'hsb';
|
|
19
|
+
|
|
20
|
+
export interface ColorPickerProps {
|
|
21
|
+
modelValue?: string | tinycolor.ColorInput;
|
|
22
|
+
label?: string;
|
|
23
|
+
class?: HTMLAttributes['class'];
|
|
24
|
+
formats?: ColorFormat[];
|
|
25
|
+
defaultFormat?: ColorFormat;
|
|
26
|
+
colorSwatchLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ColorPickerEmits {
|
|
30
|
+
'update:modelValue': [value: string];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface ColorSelectionOptions {
|
|
34
|
+
signal?: AbortSignal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ColorSelectionResult {
|
|
38
|
+
sRGBHex: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface EyeDropper {
|
|
42
|
+
open: (options?: ColorSelectionOptions) => Promise<ColorSelectionResult>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface EyeDropperConstructor {
|
|
46
|
+
new (): EyeDropper;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare global {
|
|
50
|
+
interface Window {
|
|
51
|
+
EyeDropper?: EyeDropperConstructor | undefined;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
16
55
|
const props = withDefaults(defineProps<ColorPickerProps>(), {
|
|
17
56
|
modelValue: 'hsl(240, 100%, 50%)',
|
|
18
57
|
formats: () => ['hex', 'rgb', 'hsl', 'hsb'],
|
|
@@ -84,7 +123,7 @@ function sipColor() {
|
|
|
84
123
|
eyeDropper.value.open().then((result: any) => {
|
|
85
124
|
const newColor = tinycolor(result.sRGBHex);
|
|
86
125
|
tinyColorRef.value = newColor;
|
|
87
|
-
}).catch((
|
|
126
|
+
}).catch((_: Error) => {
|
|
88
127
|
// Do nothing, this prevents an error from being thrown if the user cancels the color selection.
|
|
89
128
|
});
|
|
90
129
|
}
|
|
@@ -238,45 +277,6 @@ function handleColorValueKeyDown(event: KeyboardEvent, key: ColorKey) {
|
|
|
238
277
|
}
|
|
239
278
|
</script>
|
|
240
279
|
|
|
241
|
-
<script lang="ts">
|
|
242
|
-
export type ColorFormat = 'hex' | 'rgb' | 'hsl' | 'hsb';
|
|
243
|
-
|
|
244
|
-
export interface ColorPickerProps {
|
|
245
|
-
modelValue: string | tinycolor.ColorInput;
|
|
246
|
-
label?: string;
|
|
247
|
-
class?: HTMLAttributes['class'];
|
|
248
|
-
formats?: ColorFormat[];
|
|
249
|
-
defaultFormat?: ColorFormat;
|
|
250
|
-
colorSwatchLabel?: string;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export interface ColorPickerEmits {
|
|
254
|
-
'update:modelValue': [value: string];
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
interface ColorSelectionOptions {
|
|
258
|
-
signal?: AbortSignal;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
interface ColorSelectionResult {
|
|
262
|
-
sRGBHex: string;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface EyeDropper {
|
|
266
|
-
open: (options?: ColorSelectionOptions) => Promise<ColorSelectionResult>;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
interface EyeDropperConstructor {
|
|
270
|
-
new (): EyeDropper;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
declare global {
|
|
274
|
-
interface Window {
|
|
275
|
-
EyeDropper?: EyeDropperConstructor | undefined;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
</script>
|
|
279
|
-
|
|
280
280
|
<template>
|
|
281
281
|
<Popover>
|
|
282
282
|
<PopoverTrigger>
|
|
@@ -4,6 +4,17 @@ import { computed } from 'vue';
|
|
|
4
4
|
import { DEFAULT_SWATCH } from '@/utils/color';
|
|
5
5
|
import { defineColorModel } from './composable/use-color-model';
|
|
6
6
|
|
|
7
|
+
export interface ColorSwatchProps {
|
|
8
|
+
modelValue: tinycolor.Instance;
|
|
9
|
+
label: string;
|
|
10
|
+
swatch?: string[];
|
|
11
|
+
defaultColor?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ColorSwatchEmits {
|
|
15
|
+
'update:modelValue': [value: string];
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
const props = withDefaults(defineProps<ColorSwatchProps>(), {
|
|
8
19
|
swatch: () => DEFAULT_SWATCH,
|
|
9
20
|
});
|
|
@@ -24,19 +35,6 @@ function isSwatchColorSelected(color: string) {
|
|
|
24
35
|
}
|
|
25
36
|
</script>
|
|
26
37
|
|
|
27
|
-
<script lang="ts">
|
|
28
|
-
export interface ColorSwatchProps {
|
|
29
|
-
modelValue: tinycolor.Instance;
|
|
30
|
-
label: string;
|
|
31
|
-
swatch?: string[];
|
|
32
|
-
defaultColor?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ColorSwatchEmits {
|
|
36
|
-
'update:modelValue': [value: string];
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
38
|
<template>
|
|
41
39
|
<div class="celeste-color-swatch">
|
|
42
40
|
<span class="swatch-label">
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxAnchorProps } from '
|
|
2
|
+
import type { ComboboxAnchorProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxAnchor, useForwardProps } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxAnchor, useForwardProps } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
|
|
7
8
|
const props = defineProps<ComboboxAnchorProps & { class?: HTMLAttributes['class'] }>();
|
|
8
9
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxEmptyProps } from '
|
|
2
|
+
import type { ComboboxEmptyProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxEmpty } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxEmpty } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
|
|
7
8
|
const props = defineProps<ComboboxEmptyProps & { class?: HTMLAttributes['class'] }>();
|
|
8
9
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxGroupProps } from '
|
|
2
|
+
import type { ComboboxGroupProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxGroup, ComboboxLabel } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxGroup, ComboboxLabel } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
|
|
7
8
|
const props = defineProps<ComboboxGroupProps & {
|
|
8
9
|
class?: HTMLAttributes['class'];
|
|
@@ -34,7 +35,7 @@ const delegatedProps = computed(() => {
|
|
|
34
35
|
flex-direction: column;
|
|
35
36
|
gap: var(--spacing-4);
|
|
36
37
|
|
|
37
|
-
&:deep([data-
|
|
38
|
+
&:deep([data-reka-collection-item]) {
|
|
38
39
|
width: auto;
|
|
39
40
|
height: auto;
|
|
40
41
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import type { ComboboxInputProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
4
|
+
import type { TextInputProps } from '../text-input/text-input.vue';
|
|
2
5
|
import clsx from 'clsx';
|
|
3
|
-
import { ComboboxInput
|
|
4
|
-
import { computed
|
|
5
|
-
import TextInput
|
|
6
|
+
import { ComboboxInput } from 'reka-ui';
|
|
7
|
+
import { computed } from 'vue';
|
|
8
|
+
import TextInput from '../text-input/text-input.vue';
|
|
6
9
|
|
|
7
10
|
const props = defineProps<ComboboxInputProps & {
|
|
8
11
|
class?: HTMLAttributes['class'];
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxItemEmits } from '
|
|
2
|
+
import type { ComboboxItemEmits } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxItem, useForwardPropsEmits } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxItem, useForwardPropsEmits } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
import Checkbox from '../checkbox/checkbox.vue';
|
|
7
8
|
|
|
8
|
-
const props = withDefaults(defineProps<ComboboxItemPropsType>(), {
|
|
9
|
-
size: 'sm',
|
|
10
|
-
});
|
|
11
|
-
const emits = defineEmits<ComboboxItemEmits>();
|
|
12
|
-
|
|
13
|
-
const delegatedProps = computed(() => {
|
|
14
|
-
const { class: _, ...delegated } = props;
|
|
15
|
-
|
|
16
|
-
return delegated;
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<script lang="ts">
|
|
23
9
|
export interface ComboboxItemPropsType {
|
|
24
10
|
class?: HTMLAttributes['class'];
|
|
25
11
|
label: string;
|
|
@@ -34,11 +20,24 @@ export interface ComboboxItemPropsType {
|
|
|
34
20
|
image?: string;
|
|
35
21
|
disabled?: boolean;
|
|
36
22
|
}
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<ComboboxItemPropsType>(), {
|
|
25
|
+
size: 'sm',
|
|
26
|
+
});
|
|
27
|
+
const emits = defineEmits<ComboboxItemEmits>();
|
|
28
|
+
|
|
29
|
+
const delegatedProps = computed(() => {
|
|
30
|
+
const { class: _, ...delegated } = props;
|
|
31
|
+
|
|
32
|
+
return delegated;
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
37
36
|
</script>
|
|
38
37
|
|
|
39
38
|
<template>
|
|
40
39
|
<ComboboxItem
|
|
41
|
-
v-bind="forwarded"
|
|
40
|
+
v-bind="(forwarded as any)"
|
|
42
41
|
:disabled="disabled"
|
|
43
42
|
as-child
|
|
44
43
|
>
|
|
@@ -55,7 +54,7 @@ export interface ComboboxItemPropsType {
|
|
|
55
54
|
>
|
|
56
55
|
<Checkbox
|
|
57
56
|
v-if="checkbox && size === 'sm'"
|
|
58
|
-
:
|
|
57
|
+
:model-value="selected"
|
|
59
58
|
:disabled="disabled"
|
|
60
59
|
/>
|
|
61
60
|
<div
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxContentEmits, ComboboxContentProps } from '
|
|
2
|
+
import type { ComboboxContentEmits, ComboboxContentProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxContent, ComboboxPortal, ComboboxViewport, useForwardPropsEmits } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxContent, ComboboxPortal, ComboboxViewport, useForwardPropsEmits } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
|
|
7
8
|
const props = withDefaults(defineProps<ComboboxContentProps & { class?: HTMLAttributes['class'] }>(), {
|
|
8
9
|
position: 'popper',
|
|
@@ -37,8 +38,8 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
|
37
38
|
.celeste-dropdown-content,
|
|
38
39
|
div:deep(.celeste-dropdown-content) {
|
|
39
40
|
--dropdown-height: 300px;
|
|
40
|
-
--dropdown-min-width: var(--
|
|
41
|
-
--dropdown-width: max(var(--
|
|
41
|
+
--dropdown-min-width: var(--reka-combobox-trigger-width, 300px);
|
|
42
|
+
--dropdown-width: max(var(--reka-popper-anchor-width), 300px);
|
|
42
43
|
|
|
43
44
|
display: flex;
|
|
44
45
|
z-index: 50;
|
|
@@ -50,7 +51,7 @@ div:deep(.celeste-dropdown-content) {
|
|
|
50
51
|
margin-top: var(--spacing-10);
|
|
51
52
|
padding: var(--spacing-8);
|
|
52
53
|
overflow: visible;
|
|
53
|
-
transform-origin: var(--
|
|
54
|
+
transform-origin: var(--reka-combobox-content-transform-origin);
|
|
54
55
|
animation-duration: var(--animation-fast);
|
|
55
56
|
animation-timing-function: ease-out;
|
|
56
57
|
border: 1px solid var(--color-stroke-soft-200);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import type { ComboboxRootEmits, ComboboxRootProps } from 'reka-ui';
|
|
3
|
+
import { ComboboxRoot, useForwardPropsEmits } from 'reka-ui';
|
|
3
4
|
|
|
4
5
|
const props = defineProps<ComboboxRootProps>();
|
|
5
6
|
const emits = defineEmits<ComboboxRootEmits>();
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { ComboboxSeparatorProps } from '
|
|
2
|
+
import type { ComboboxSeparatorProps } from 'reka-ui';
|
|
3
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { ComboboxSeparator } from '
|
|
5
|
-
import { computed
|
|
5
|
+
import { ComboboxSeparator } from 'reka-ui';
|
|
6
|
+
import { computed } from 'vue';
|
|
6
7
|
|
|
7
8
|
const props = defineProps<ComboboxSeparatorProps & { class?: HTMLAttributes['class'] }>();
|
|
8
9
|
|