@youcan/celeste 0.21.2 → 0.22.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/ai/README.md +1 -1
- package/ai/component-registry.json +2 -2
- package/ai/icons.json +2 -2
- package/ai/tokens.json +2 -2
- package/dist/celeste.css +3069 -3065
- package/dist/cjs/chunks/alert.cjs +4 -2
- package/dist/cjs/chunks/badge.cjs +4 -2
- package/dist/cjs/chunks/bar-chart.cjs +17 -10016
- package/dist/cjs/chunks/button.cjs +7 -5
- package/dist/cjs/chunks/calendar.cjs +20 -796
- package/dist/cjs/chunks/chart-card.cjs +4 -2
- package/dist/cjs/chunks/chart-legend.cjs +4 -2
- package/dist/cjs/chunks/chart-plot.cjs +4 -2
- package/dist/cjs/chunks/checkbox-card.cjs +11 -10
- package/dist/cjs/chunks/checkbox-label.cjs +12 -11
- package/dist/cjs/chunks/checkbox.cjs +7 -227
- package/dist/cjs/chunks/collapsible-content.cjs +5 -105
- package/dist/cjs/chunks/collapsible-trigger.cjs +2 -50
- package/dist/cjs/chunks/collapsible.cjs +3 -4
- package/dist/cjs/chunks/color-picker.cjs +21 -19
- package/dist/cjs/chunks/color-swatch.cjs +5 -3
- package/dist/cjs/chunks/combobox-anchor.cjs +6 -44
- package/dist/cjs/chunks/combobox-empty.cjs +5 -30
- package/dist/cjs/chunks/combobox-group.cjs +6 -5
- package/dist/cjs/chunks/combobox-input.cjs +6 -4
- package/dist/cjs/chunks/combobox-item.cjs +10 -66
- package/dist/cjs/chunks/combobox-list.cjs +8 -95
- package/dist/cjs/chunks/combobox-root.cjs +4 -6
- package/dist/cjs/chunks/combobox-separator.cjs +5 -3
- package/dist/cjs/chunks/combobox-trigger.cjs +7 -64
- package/dist/cjs/chunks/combobox.cjs +5 -5
- package/dist/cjs/chunks/compact-button.cjs +6 -4
- package/dist/cjs/chunks/components.cjs +55 -54
- package/dist/cjs/chunks/content-divider.cjs +6 -88
- package/dist/cjs/chunks/counter-input.cjs +10 -939
- package/dist/cjs/chunks/date-picker.cjs +5 -3
- package/dist/cjs/chunks/dialog-body.cjs +4 -2
- package/dist/cjs/chunks/dialog-content.cjs +1 -1
- package/dist/cjs/chunks/dialog-description.cjs +5 -4
- package/dist/cjs/chunks/dialog-footer.cjs +4 -2
- package/dist/cjs/chunks/dialog-title.cjs +5 -4
- package/dist/cjs/chunks/dialog-trigger.cjs +1 -1
- package/dist/cjs/chunks/dialog.cjs +3 -3
- package/dist/cjs/chunks/digit-input-group.cjs +8 -7
- package/dist/cjs/chunks/digit-input-slot.cjs +8 -265
- package/dist/cjs/chunks/digit-input.cjs +9 -8
- package/dist/cjs/chunks/drawer-body.cjs +7 -38
- package/dist/cjs/chunks/drawer-close.cjs +2 -2
- package/dist/cjs/chunks/drawer-content.cjs +9 -1148
- package/dist/cjs/chunks/drawer-description.cjs +7 -5
- package/dist/cjs/chunks/drawer-footer.cjs +4 -2
- package/dist/cjs/chunks/drawer-header.cjs +6 -4
- package/dist/cjs/chunks/drawer-title.cjs +7 -5
- package/dist/cjs/chunks/drawer-trigger.cjs +2 -50
- package/dist/cjs/chunks/drawer.cjs +4 -5
- package/dist/cjs/chunks/dropdown-menu-content.cjs +8 -535
- package/dist/cjs/chunks/dropdown-menu-group.cjs +2 -28
- package/dist/cjs/chunks/dropdown-menu-item.cjs +6 -124
- package/dist/cjs/chunks/dropdown-menu-label.cjs +6 -58
- package/dist/cjs/chunks/dropdown-menu-separator.cjs +5 -56
- package/dist/cjs/chunks/dropdown-menu-sub-content.cjs +7 -287
- package/dist/cjs/chunks/dropdown-menu-sub-trigger.cjs +6 -191
- package/dist/cjs/chunks/dropdown-menu-sub.cjs +3 -39
- package/dist/cjs/chunks/dropdown-menu-trigger.cjs +3 -89
- package/dist/cjs/chunks/dropdown-menu.cjs +8 -8
- package/dist/cjs/chunks/extra-settings.cjs +3 -3
- package/dist/cjs/chunks/fancy-button.cjs +7 -5
- package/dist/cjs/chunks/file-upload-area.cjs +6 -4
- package/dist/cjs/chunks/gradient-picker.cjs +8 -6
- package/dist/cjs/chunks/hint-text.cjs +4 -2
- package/dist/cjs/chunks/{label2.cjs → label.cjs} +7 -6
- package/dist/cjs/chunks/link-bubble.cjs +3 -3
- package/dist/cjs/chunks/link-button.cjs +7 -5
- package/dist/cjs/chunks/mochi.cjs +4 -2
- package/dist/cjs/chunks/modal-body.cjs +4 -2
- package/dist/cjs/chunks/modal-close.cjs +2 -2
- package/dist/cjs/chunks/modal-content.cjs +9 -9
- package/dist/cjs/chunks/modal-footer.cjs +4 -2
- package/dist/cjs/chunks/modal-header.cjs +8 -8
- package/dist/cjs/chunks/modal-trigger.cjs +2 -2
- package/dist/cjs/chunks/modal.cjs +3 -4
- package/dist/cjs/chunks/pagination-content.cjs +5 -87
- package/dist/cjs/chunks/pagination-ellipsis.cjs +6 -32
- package/dist/cjs/chunks/pagination-first.cjs +7 -42
- package/dist/cjs/chunks/pagination-item.cjs +6 -54
- package/dist/cjs/chunks/pagination-last.cjs +7 -42
- package/dist/cjs/chunks/pagination-next.cjs +7 -42
- package/dist/cjs/chunks/pagination-previous.cjs +7 -42
- package/dist/cjs/chunks/pagination.cjs +7 -8
- package/dist/cjs/chunks/popover-content.cjs +10 -705
- package/dist/cjs/chunks/popover-trigger.cjs +2 -61
- package/dist/cjs/chunks/popover.cjs +3 -4
- package/dist/cjs/chunks/progress-bar.cjs +6 -4
- package/dist/cjs/chunks/progress-circle.cjs +7 -5
- package/dist/cjs/chunks/radio-group-card.cjs +11 -10
- package/dist/cjs/chunks/radio-group-item.cjs +7 -302
- package/dist/cjs/chunks/radio-group-label.cjs +12 -11
- package/dist/cjs/chunks/radio-group.cjs +6 -5
- package/dist/cjs/chunks/range-calendar.cjs +21 -1031
- package/dist/cjs/chunks/range-picker.cjs +9 -7
- package/dist/cjs/chunks/rich-editor.cjs +21 -5863
- package/dist/cjs/chunks/rolldown-runtime.cjs +0 -14
- package/dist/cjs/chunks/scroll-area.cjs +9 -142
- package/dist/cjs/chunks/scroll-bar.cjs +6 -901
- package/dist/cjs/chunks/segmented-control-item.cjs +6 -163
- package/dist/cjs/chunks/segmented-control.cjs +7 -6
- package/dist/cjs/chunks/select-content.cjs +9 -311
- package/dist/cjs/chunks/select-group.cjs +2 -2
- package/dist/cjs/chunks/select-icon.cjs +4 -2
- package/dist/cjs/chunks/select-item.cjs +7 -227
- package/dist/cjs/chunks/select-label.cjs +5 -34
- package/dist/cjs/chunks/select-separator.cjs +5 -27
- package/dist/cjs/chunks/select-trigger.cjs +6 -163
- package/dist/cjs/chunks/select-value.cjs +5 -64
- package/dist/cjs/chunks/select.cjs +8 -8
- package/dist/cjs/chunks/sheet-close.cjs +5 -3
- package/dist/cjs/chunks/sheet-content.cjs +10 -10
- package/dist/cjs/chunks/sheet-description.cjs +7 -5
- package/dist/cjs/chunks/sheet-footer.cjs +4 -2
- package/dist/cjs/chunks/sheet-header.cjs +4 -2
- package/dist/cjs/chunks/sheet-title.cjs +7 -5
- package/dist/cjs/chunks/sheet-trigger.cjs +2 -2
- package/dist/cjs/chunks/sheet.cjs +3 -4
- package/dist/cjs/chunks/sidebar-content.cjs +4 -2
- package/dist/cjs/chunks/sidebar-element.cjs +6 -4
- package/dist/cjs/chunks/sidebar-footer.cjs +4 -2
- package/dist/cjs/chunks/sidebar-group-content.cjs +4 -2
- package/dist/cjs/chunks/sidebar-group-label.cjs +6 -4
- package/dist/cjs/chunks/sidebar-group.cjs +4 -2
- package/dist/cjs/chunks/sidebar-header.cjs +4 -2
- package/dist/cjs/chunks/sidebar-menu-action.cjs +6 -4
- package/dist/cjs/chunks/sidebar-menu-badge.cjs +4 -2
- package/dist/cjs/chunks/sidebar-menu-button.cjs +8 -6
- package/dist/cjs/chunks/sidebar-menu-item.cjs +4 -2
- package/dist/cjs/chunks/sidebar-menu-sub-button.cjs +6 -4
- package/dist/cjs/chunks/sidebar-menu-sub-item.cjs +4 -2
- package/dist/cjs/chunks/sidebar-menu-sub.cjs +4 -2
- package/dist/cjs/chunks/sidebar-menu.cjs +4 -2
- package/dist/cjs/chunks/sidebar-provider.cjs +9 -7
- package/dist/cjs/chunks/sidebar-trigger.cjs +4 -2
- package/dist/cjs/chunks/sidebar.cjs +4 -2
- package/dist/cjs/chunks/slider.cjs +10 -757
- package/dist/cjs/chunks/social-button.cjs +7 -5
- package/dist/cjs/chunks/status-badge.cjs +4 -2
- package/dist/cjs/chunks/switch.cjs +7 -185
- package/dist/cjs/chunks/tab-menu-content.cjs +5 -81
- package/dist/cjs/chunks/tab-menu-item.cjs +6 -88
- package/dist/cjs/chunks/tab-menu-list.cjs +6 -61
- package/dist/cjs/chunks/tab-menu.cjs +3 -4
- package/dist/cjs/chunks/table-body.cjs +4 -2
- package/dist/cjs/chunks/table-caption.cjs +4 -2
- package/dist/cjs/chunks/table-cell.cjs +4 -2
- package/dist/cjs/chunks/table-footer.cjs +4 -2
- package/dist/cjs/chunks/table-head.cjs +4 -2
- package/dist/cjs/chunks/table-header.cjs +4 -2
- package/dist/cjs/chunks/table-row.cjs +4 -2
- package/dist/cjs/chunks/table.cjs +4 -2
- package/dist/cjs/chunks/table2.cjs +4 -2
- package/dist/cjs/chunks/tag.cjs +6 -4
- package/dist/cjs/chunks/text-input-affix.cjs +4 -2
- package/dist/cjs/chunks/text-input-button.cjs +4 -2
- package/dist/cjs/chunks/text-input.cjs +11 -9
- package/dist/cjs/chunks/textarea.cjs +4 -2
- package/dist/cjs/chunks/tooltip-content.cjs +9 -599
- package/dist/cjs/chunks/tooltip-provider.cjs +2 -2
- package/dist/cjs/chunks/tooltip-root.cjs +3 -4
- package/dist/cjs/chunks/tooltip-trigger.cjs +3 -107
- package/dist/cjs/chunks/tooltip.cjs +4 -4
- package/dist/cjs/command-group.cjs +3 -4
- package/dist/cjs/command-input.cjs +7 -6
- package/dist/cjs/command-item.cjs +3 -4
- package/dist/cjs/command-list.cjs +3 -4
- package/dist/cjs/command-root.cjs +4 -6
- package/dist/cjs/command-separator.cjs +5 -3
- package/dist/cjs/context.cjs +1 -1
- package/dist/cjs/index.cjs +53 -53
- package/dist/cjs/label.cjs +1 -1
- package/dist/cjs/use-chart-motion.cjs +2 -2
- package/dist/cjs/use-color-model.cjs +6 -4
- package/dist/cjs/use-sidebar.cjs +2 -2
- package/dist/cjs/use-tab-observer.cjs +4 -4
- package/dist/es/chunks/alert.js +2 -2
- package/dist/es/chunks/badge.js +2 -2
- package/dist/es/chunks/bar-chart.js +11 -10007
- package/dist/es/chunks/button.js +4 -4
- package/dist/es/chunks/calendar.js +20 -798
- package/dist/es/chunks/chart-card.js +2 -2
- package/dist/es/chunks/chart-legend.js +2 -2
- package/dist/es/chunks/chart-plot.js +2 -2
- package/dist/es/chunks/checkbox-card.js +4 -5
- package/dist/es/chunks/checkbox-label.js +4 -5
- package/dist/es/chunks/checkbox.js +5 -227
- package/dist/es/chunks/collapsible-content.js +4 -106
- package/dist/es/chunks/collapsible-trigger.js +2 -50
- package/dist/es/chunks/collapsible.js +2 -3
- package/dist/es/chunks/color-picker.js +10 -10
- package/dist/es/chunks/color-swatch.js +1 -1
- package/dist/es/chunks/combobox-anchor.js +4 -44
- package/dist/es/chunks/combobox-empty.js +4 -30
- package/dist/es/chunks/combobox-group.js +4 -5
- package/dist/es/chunks/combobox-input.js +4 -4
- package/dist/es/chunks/combobox-item.js +8 -66
- package/dist/es/chunks/combobox-list.js +6 -94
- package/dist/es/chunks/combobox-root.js +3 -5
- package/dist/es/chunks/combobox-separator.js +3 -3
- package/dist/es/chunks/combobox-trigger.js +5 -63
- package/dist/es/chunks/combobox.js +4 -4
- package/dist/es/chunks/compact-button.js +3 -3
- package/dist/es/chunks/components.js +65 -55
- package/dist/es/chunks/content-divider.js +5 -89
- package/dist/es/chunks/counter-input.js +8 -939
- package/dist/es/chunks/date-picker.js +3 -3
- package/dist/es/chunks/dialog-body.js +2 -2
- package/dist/es/chunks/dialog-content.js +1 -1
- package/dist/es/chunks/dialog-description.js +3 -4
- package/dist/es/chunks/dialog-footer.js +2 -2
- package/dist/es/chunks/dialog-title.js +3 -4
- package/dist/es/chunks/dialog-trigger.js +1 -1
- package/dist/es/chunks/dialog.js +1 -1
- package/dist/es/chunks/digit-input-group.js +4 -5
- package/dist/es/chunks/digit-input-slot.js +5 -263
- package/dist/es/chunks/digit-input.js +5 -6
- package/dist/es/chunks/drawer-body.js +4 -36
- package/dist/es/chunks/drawer-close.js +2 -2
- package/dist/es/chunks/drawer-content.js +7 -1147
- package/dist/es/chunks/drawer-description.js +4 -4
- package/dist/es/chunks/drawer-footer.js +2 -2
- package/dist/es/chunks/drawer-header.js +4 -4
- package/dist/es/chunks/drawer-title.js +4 -4
- package/dist/es/chunks/drawer-trigger.js +3 -51
- package/dist/es/chunks/drawer.js +3 -4
- package/dist/es/chunks/dropdown-menu-content.js +6 -534
- package/dist/es/chunks/dropdown-menu-group.js +3 -28
- package/dist/es/chunks/dropdown-menu-item.js +4 -124
- package/dist/es/chunks/dropdown-menu-label.js +4 -57
- package/dist/es/chunks/dropdown-menu-separator.js +4 -56
- package/dist/es/chunks/dropdown-menu-sub-content.js +5 -286
- package/dist/es/chunks/dropdown-menu-sub-trigger.js +4 -191
- package/dist/es/chunks/dropdown-menu-sub.js +3 -39
- package/dist/es/chunks/dropdown-menu-trigger.js +3 -88
- package/dist/es/chunks/dropdown-menu.js +5 -7
- package/dist/es/chunks/extra-settings.js +3 -3
- package/dist/es/chunks/fancy-button.js +4 -4
- package/dist/es/chunks/file-upload-area.js +3 -3
- package/dist/es/chunks/gradient-picker.js +3 -3
- package/dist/es/chunks/hint-text.js +2 -2
- package/dist/es/chunks/{label2.js → label.js} +4 -5
- package/dist/es/chunks/link-bubble.js +3 -3
- package/dist/es/chunks/link-button.js +4 -4
- package/dist/es/chunks/mochi.js +2 -2
- package/dist/es/chunks/modal-body.js +2 -2
- package/dist/es/chunks/modal-close.js +2 -2
- package/dist/es/chunks/modal-content.js +5 -7
- package/dist/es/chunks/modal-footer.js +2 -2
- package/dist/es/chunks/modal-header.js +6 -8
- package/dist/es/chunks/modal-trigger.js +2 -2
- package/dist/es/chunks/modal.js +2 -3
- package/dist/es/chunks/pagination-content.js +5 -86
- package/dist/es/chunks/pagination-ellipsis.js +5 -30
- package/dist/es/chunks/pagination-first.js +5 -40
- package/dist/es/chunks/pagination-item.js +5 -53
- package/dist/es/chunks/pagination-last.js +5 -40
- package/dist/es/chunks/pagination-next.js +5 -40
- package/dist/es/chunks/pagination-previous.js +5 -40
- package/dist/es/chunks/pagination.js +4 -5
- package/dist/es/chunks/popover-content.js +8 -705
- package/dist/es/chunks/popover-trigger.js +3 -61
- package/dist/es/chunks/popover.js +2 -3
- package/dist/es/chunks/progress-bar.js +4 -4
- package/dist/es/chunks/progress-circle.js +5 -5
- package/dist/es/chunks/radio-group-card.js +4 -5
- package/dist/es/chunks/radio-group-item.js +5 -302
- package/dist/es/chunks/radio-group-label.js +4 -5
- package/dist/es/chunks/radio-group.js +3 -4
- package/dist/es/chunks/range-calendar.js +21 -1033
- package/dist/es/chunks/range-picker.js +7 -7
- package/dist/es/chunks/rich-editor.js +13 -5859
- package/dist/es/chunks/scroll-area.js +8 -142
- package/dist/es/chunks/scroll-bar.js +6 -890
- package/dist/es/chunks/segmented-control-item.js +5 -163
- package/dist/es/chunks/segmented-control.js +4 -5
- package/dist/es/chunks/select-content.js +7 -310
- package/dist/es/chunks/select-group.js +2 -2
- package/dist/es/chunks/select-icon.js +2 -2
- package/dist/es/chunks/select-item.js +6 -227
- package/dist/es/chunks/select-label.js +3 -33
- package/dist/es/chunks/select-separator.js +4 -27
- package/dist/es/chunks/select-trigger.js +5 -163
- package/dist/es/chunks/select-value.js +4 -64
- package/dist/es/chunks/select.js +5 -7
- package/dist/es/chunks/sheet-close.js +3 -3
- package/dist/es/chunks/sheet-content.js +6 -8
- package/dist/es/chunks/sheet-description.js +4 -4
- package/dist/es/chunks/sheet-footer.js +2 -2
- package/dist/es/chunks/sheet-header.js +2 -2
- package/dist/es/chunks/sheet-title.js +4 -4
- package/dist/es/chunks/sheet-trigger.js +2 -2
- package/dist/es/chunks/sheet.js +2 -3
- package/dist/es/chunks/sidebar-content.js +2 -2
- package/dist/es/chunks/sidebar-element.js +3 -3
- package/dist/es/chunks/sidebar-footer.js +2 -2
- package/dist/es/chunks/sidebar-group-content.js +2 -2
- package/dist/es/chunks/sidebar-group-label.js +3 -3
- package/dist/es/chunks/sidebar-group.js +2 -2
- package/dist/es/chunks/sidebar-header.js +2 -2
- package/dist/es/chunks/sidebar-menu-action.js +3 -3
- package/dist/es/chunks/sidebar-menu-badge.js +2 -2
- package/dist/es/chunks/sidebar-menu-button.js +4 -4
- package/dist/es/chunks/sidebar-menu-item.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub-button.js +3 -3
- package/dist/es/chunks/sidebar-menu-sub-item.js +2 -2
- package/dist/es/chunks/sidebar-menu-sub.js +2 -2
- package/dist/es/chunks/sidebar-menu.js +2 -2
- package/dist/es/chunks/sidebar-provider.js +3 -3
- package/dist/es/chunks/sidebar-trigger.js +2 -2
- package/dist/es/chunks/sidebar.js +2 -2
- package/dist/es/chunks/slider.js +10 -759
- package/dist/es/chunks/social-button.js +4 -4
- package/dist/es/chunks/status-badge.js +2 -2
- package/dist/es/chunks/switch.js +5 -185
- package/dist/es/chunks/tab-menu-content.js +4 -81
- package/dist/es/chunks/tab-menu-item.js +4 -88
- package/dist/es/chunks/tab-menu-list.js +5 -62
- package/dist/es/chunks/tab-menu.js +2 -3
- package/dist/es/chunks/table-body.js +2 -2
- package/dist/es/chunks/table-caption.js +2 -2
- package/dist/es/chunks/table-cell.js +2 -2
- package/dist/es/chunks/table-footer.js +2 -2
- package/dist/es/chunks/table-head.js +2 -2
- package/dist/es/chunks/table-header.js +2 -2
- package/dist/es/chunks/table-row.js +2 -2
- package/dist/es/chunks/table.js +2 -2
- package/dist/es/chunks/table2.js +2 -2
- package/dist/es/chunks/tag.js +3 -3
- package/dist/es/chunks/text-input-affix.js +2 -2
- package/dist/es/chunks/text-input-button.js +2 -2
- package/dist/es/chunks/text-input.js +3 -3
- package/dist/es/chunks/textarea.js +2 -2
- package/dist/es/chunks/tooltip-content.js +7 -599
- package/dist/es/chunks/tooltip-provider.js +2 -2
- package/dist/es/chunks/tooltip-root.js +2 -3
- package/dist/es/chunks/tooltip-trigger.js +3 -107
- package/dist/es/chunks/tooltip.js +3 -3
- package/dist/es/command-group.js +3 -4
- package/dist/es/command-input.js +4 -5
- package/dist/es/command-item.js +2 -3
- package/dist/es/command-list.js +2 -3
- package/dist/es/command-root.js +3 -5
- package/dist/es/command-separator.js +3 -3
- package/dist/es/context.js +1 -1
- package/dist/es/index.js +54 -54
- package/dist/es/label.js +1 -1
- package/dist/es/use-chart-motion.js +1 -1
- package/dist/es/use-color-model.js +1 -1
- package/dist/es/use-sidebar.js +1 -1
- package/dist/es/use-tab-observer.js +1 -1
- package/package.json +3 -3
- package/src/components/button/button.vue +1 -0
- package/src/components/button/fancy-button.vue +1 -0
- package/src/components/button/link-button.vue +1 -0
- package/src/components/button/social-button.vue +1 -0
- package/dist/cjs/chunks/BubbleSelect.cjs +0 -331
- package/dist/cjs/chunks/CollapsibleRoot.cjs +0 -89
- package/dist/cjs/chunks/Collection.cjs +0 -84
- package/dist/cjs/chunks/ComboboxContent.cjs +0 -446
- package/dist/cjs/chunks/ComboboxGroup.cjs +0 -89
- package/dist/cjs/chunks/ComboboxInput.cjs +0 -269
- package/dist/cjs/chunks/ComboboxItem.cjs +0 -202
- package/dist/cjs/chunks/ComboboxLabel.cjs +0 -46
- package/dist/cjs/chunks/ComboboxRoot.cjs +0 -753
- package/dist/cjs/chunks/ComboboxSeparator.cjs +0 -34
- package/dist/cjs/chunks/ConfigProvider.cjs +0 -68
- package/dist/cjs/chunks/DialogClose.cjs +0 -40
- package/dist/cjs/chunks/DialogDescription.cjs +0 -37
- package/dist/cjs/chunks/DialogPortal.cjs +0 -524
- package/dist/cjs/chunks/DialogRoot.cjs +0 -80
- package/dist/cjs/chunks/DialogTitle.cjs +0 -37
- package/dist/cjs/chunks/DialogTrigger.cjs +0 -56
- package/dist/cjs/chunks/DismissableLayer.cjs +0 -268
- package/dist/cjs/chunks/DrawerClose.cjs +0 -40
- package/dist/cjs/chunks/DrawerDescription.cjs +0 -37
- package/dist/cjs/chunks/DrawerRoot.cjs +0 -366
- package/dist/cjs/chunks/DrawerTitle.cjs +0 -37
- package/dist/cjs/chunks/DropdownMenuPortal.cjs +0 -72
- package/dist/cjs/chunks/DropdownMenuRoot.cjs +0 -86
- package/dist/cjs/chunks/FocusScope.cjs +0 -377
- package/dist/cjs/chunks/Label.cjs +0 -41
- package/dist/cjs/chunks/MenuAnchor.cjs +0 -36
- package/dist/cjs/chunks/MenuContentImpl.cjs +0 -371
- package/dist/cjs/chunks/MenuGroup.cjs +0 -43
- package/dist/cjs/chunks/MenuItemImpl.cjs +0 -100
- package/dist/cjs/chunks/MenuRoot.cjs +0 -108
- package/dist/cjs/chunks/MenuSub.cjs +0 -67
- package/dist/cjs/chunks/PaginationRoot.cjs +0 -100
- package/dist/cjs/chunks/PinInputRoot.cjs +0 -152
- package/dist/cjs/chunks/PopoverRoot.cjs +0 -72
- package/dist/cjs/chunks/PopperAnchor.cjs +0 -47
- package/dist/cjs/chunks/PopperArrow.cjs +0 -151
- package/dist/cjs/chunks/PopperContent.cjs +0 -2099
- package/dist/cjs/chunks/PopperRoot.cjs +0 -31
- package/dist/cjs/chunks/Presence.cjs +0 -195
- package/dist/cjs/chunks/Primitive.cjs +0 -79
- package/dist/cjs/chunks/ProgressIndicator.cjs +0 -160
- package/dist/cjs/chunks/RadioGroupRoot.cjs +0 -142
- package/dist/cjs/chunks/RovingFocusGroup.cjs +0 -146
- package/dist/cjs/chunks/RovingFocusItem.cjs +0 -113
- package/dist/cjs/chunks/SelectGroup.cjs +0 -43
- package/dist/cjs/chunks/SelectItemAlignedPosition.cjs +0 -597
- package/dist/cjs/chunks/TabsRoot.cjs +0 -113
- package/dist/cjs/chunks/Teleport.cjs +0 -50
- package/dist/cjs/chunks/ToggleGroupRoot.cjs +0 -187
- package/dist/cjs/chunks/TooltipProvider.cjs +0 -86
- package/dist/cjs/chunks/TooltipRoot.cjs +0 -145
- package/dist/cjs/chunks/VisuallyHidden.cjs +0 -64
- package/dist/cjs/chunks/VisuallyHiddenInput.cjs +0 -146
- package/dist/cjs/chunks/clamp.cjs +0 -75
- package/dist/cjs/chunks/clsx.cjs +0 -21
- package/dist/cjs/chunks/createContext.cjs +0 -37
- package/dist/cjs/chunks/defu.cjs +0 -34
- package/dist/cjs/chunks/dist.cjs +0 -543
- package/dist/cjs/chunks/dist2.cjs +0 -538
- package/dist/cjs/chunks/dist3.cjs +0 -16177
- package/dist/cjs/chunks/getActiveElement.cjs +0 -14
- package/dist/cjs/chunks/handleAndDispatchCustomEvent.cjs +0 -18
- package/dist/cjs/chunks/isValueEqualOrExist.cjs +0 -24
- package/dist/cjs/chunks/menus.cjs +0 -1368
- package/dist/cjs/chunks/nullish.cjs +0 -11
- package/dist/cjs/chunks/ohash.D__AXeF1.cjs +0 -114
- package/dist/cjs/chunks/tinycolor.cjs +0 -904
- package/dist/cjs/chunks/useArrowNavigation.cjs +0 -65
- package/dist/cjs/chunks/useCalendar.cjs +0 -2533
- package/dist/cjs/chunks/useComposing.cjs +0 -45
- package/dist/cjs/chunks/useDirection.cjs +0 -19
- package/dist/cjs/chunks/useEmitAsProps.cjs +0 -33
- package/dist/cjs/chunks/useFocusGuards.cjs +0 -39
- package/dist/cjs/chunks/useFormControl.cjs +0 -13
- package/dist/cjs/chunks/useForwardExpose.cjs +0 -63
- package/dist/cjs/chunks/useForwardProps.cjs +0 -39
- package/dist/cjs/chunks/useForwardPropsEmits.cjs +0 -19
- package/dist/cjs/chunks/useForwardScopeId.cjs +0 -30
- package/dist/cjs/chunks/useHideOthers.cjs +0 -137
- package/dist/cjs/chunks/useId.cjs +0 -30
- package/dist/cjs/chunks/useKbd.cjs +0 -46
- package/dist/cjs/chunks/useLocale.cjs +0 -19
- package/dist/cjs/chunks/useNonce.cjs +0 -14
- package/dist/cjs/chunks/usePrimitiveElement.cjs +0 -17
- package/dist/cjs/chunks/useSize.cjs +0 -54
- package/dist/cjs/chunks/useTypeahead.cjs +0 -69
- package/dist/cjs/chunks/utils.cjs +0 -117
- package/dist/cjs/chunks/utils2.cjs +0 -73
- package/dist/cjs/chunks/utils3.cjs +0 -20
- package/dist/es/chunks/BubbleSelect.js +0 -290
- package/dist/es/chunks/CollapsibleRoot.js +0 -78
- package/dist/es/chunks/Collection.js +0 -79
- package/dist/es/chunks/ComboboxContent.js +0 -441
- package/dist/es/chunks/ComboboxGroup.js +0 -78
- package/dist/es/chunks/ComboboxInput.js +0 -264
- package/dist/es/chunks/ComboboxItem.js +0 -191
- package/dist/es/chunks/ComboboxLabel.js +0 -41
- package/dist/es/chunks/ComboboxRoot.js +0 -730
- package/dist/es/chunks/ComboboxSeparator.js +0 -29
- package/dist/es/chunks/ConfigProvider.js +0 -57
- package/dist/es/chunks/DialogClose.js +0 -35
- package/dist/es/chunks/DialogDescription.js +0 -32
- package/dist/es/chunks/DialogPortal.js +0 -507
- package/dist/es/chunks/DialogRoot.js +0 -69
- package/dist/es/chunks/DialogTitle.js +0 -32
- package/dist/es/chunks/DialogTrigger.js +0 -51
- package/dist/es/chunks/DismissableLayer.js +0 -257
- package/dist/es/chunks/DrawerClose.js +0 -35
- package/dist/es/chunks/DrawerDescription.js +0 -32
- package/dist/es/chunks/DrawerRoot.js +0 -325
- package/dist/es/chunks/DrawerTitle.js +0 -32
- package/dist/es/chunks/DropdownMenuPortal.js +0 -67
- package/dist/es/chunks/DropdownMenuRoot.js +0 -75
- package/dist/es/chunks/FocusScope.js +0 -360
- package/dist/es/chunks/Label.js +0 -36
- package/dist/es/chunks/MenuAnchor.js +0 -31
- package/dist/es/chunks/MenuContentImpl.js +0 -360
- package/dist/es/chunks/MenuGroup.js +0 -32
- package/dist/es/chunks/MenuItemImpl.js +0 -95
- package/dist/es/chunks/MenuRoot.js +0 -85
- package/dist/es/chunks/MenuSub.js +0 -56
- package/dist/es/chunks/PaginationRoot.js +0 -89
- package/dist/es/chunks/PinInputRoot.js +0 -141
- package/dist/es/chunks/PopoverRoot.js +0 -61
- package/dist/es/chunks/PopperAnchor.js +0 -42
- package/dist/es/chunks/PopperArrow.js +0 -146
- package/dist/es/chunks/PopperContent.js +0 -2029
- package/dist/es/chunks/PopperRoot.js +0 -20
- package/dist/es/chunks/Presence.js +0 -184
- package/dist/es/chunks/Primitive.js +0 -62
- package/dist/es/chunks/ProgressIndicator.js +0 -149
- package/dist/es/chunks/RadioGroupRoot.js +0 -131
- package/dist/es/chunks/RovingFocusGroup.js +0 -135
- package/dist/es/chunks/RovingFocusItem.js +0 -108
- package/dist/es/chunks/SelectGroup.js +0 -32
- package/dist/es/chunks/SelectItemAlignedPosition.js +0 -568
- package/dist/es/chunks/TabsRoot.js +0 -102
- package/dist/es/chunks/Teleport.js +0 -45
- package/dist/es/chunks/ToggleGroupRoot.js +0 -176
- package/dist/es/chunks/TooltipProvider.js +0 -75
- package/dist/es/chunks/TooltipRoot.js +0 -128
- package/dist/es/chunks/VisuallyHidden.js +0 -59
- package/dist/es/chunks/VisuallyHiddenInput.js +0 -141
- package/dist/es/chunks/clamp.js +0 -64
- package/dist/es/chunks/clsx.js +0 -16
- package/dist/es/chunks/createContext.js +0 -32
- package/dist/es/chunks/defu.js +0 -29
- package/dist/es/chunks/dist.js +0 -418
- package/dist/es/chunks/dist2.js +0 -461
- package/dist/es/chunks/dist3.js +0 -15890
- package/dist/es/chunks/getActiveElement.js +0 -9
- package/dist/es/chunks/handleAndDispatchCustomEvent.js +0 -13
- package/dist/es/chunks/isValueEqualOrExist.js +0 -19
- package/dist/es/chunks/menus.js +0 -1368
- package/dist/es/chunks/nullish.js +0 -6
- package/dist/es/chunks/ohash.D__AXeF1.js +0 -109
- package/dist/es/chunks/rolldown-runtime.js +0 -34
- package/dist/es/chunks/tinycolor.js +0 -899
- package/dist/es/chunks/useArrowNavigation.js +0 -60
- package/dist/es/chunks/useCalendar.js +0 -2426
- package/dist/es/chunks/useComposing.js +0 -40
- package/dist/es/chunks/useDirection.js +0 -14
- package/dist/es/chunks/useEmitAsProps.js +0 -28
- package/dist/es/chunks/useFocusGuards.js +0 -34
- package/dist/es/chunks/useFormControl.js +0 -8
- package/dist/es/chunks/useForwardExpose.js +0 -58
- package/dist/es/chunks/useForwardProps.js +0 -34
- package/dist/es/chunks/useForwardPropsEmits.js +0 -14
- package/dist/es/chunks/useForwardScopeId.js +0 -25
- package/dist/es/chunks/useHideOthers.js +0 -132
- package/dist/es/chunks/useId.js +0 -23
- package/dist/es/chunks/useKbd.js +0 -41
- package/dist/es/chunks/useLocale.js +0 -14
- package/dist/es/chunks/useNonce.js +0 -9
- package/dist/es/chunks/usePrimitiveElement.js +0 -12
- package/dist/es/chunks/useSize.js +0 -49
- package/dist/es/chunks/useTypeahead.js +0 -64
- package/dist/es/chunks/utils.js +0 -58
- package/dist/es/chunks/utils2.js +0 -44
- package/dist/es/chunks/utils3.js +0 -9
|
@@ -1,166 +1,8 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { t as isValueEqualOrExist } from "./isValueEqualOrExist.js";
|
|
4
|
-
import { p as useVModel } from "./dist2.js";
|
|
5
|
-
import { t as Primitive } from "./Primitive.js";
|
|
6
|
-
import { t as useFormControl } from "./useFormControl.js";
|
|
7
|
-
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
8
|
-
import { t as useForwardScopeId } from "./useForwardScopeId.js";
|
|
9
|
-
import { n as injectToggleGroupRootContext } from "./ToggleGroupRoot.js";
|
|
10
|
-
import { t as VisuallyHiddenInput_default } from "./VisuallyHiddenInput.js";
|
|
11
|
-
import { t as RovingFocusItem_default } from "./RovingFocusItem.js";
|
|
12
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
inheritAttrs: false,
|
|
17
|
-
__name: "Toggle",
|
|
18
|
-
props: {
|
|
19
|
-
defaultValue: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
required: false
|
|
22
|
-
},
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: [Boolean, null],
|
|
25
|
-
required: false,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
disabled: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
required: false,
|
|
31
|
-
default: false
|
|
32
|
-
},
|
|
33
|
-
asChild: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
required: false
|
|
36
|
-
},
|
|
37
|
-
as: {
|
|
38
|
-
type: null,
|
|
39
|
-
required: false,
|
|
40
|
-
default: "button"
|
|
41
|
-
},
|
|
42
|
-
name: {
|
|
43
|
-
type: String,
|
|
44
|
-
required: false
|
|
45
|
-
},
|
|
46
|
-
required: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
required: false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
emits: ["update:modelValue"],
|
|
52
|
-
setup(__props, { emit: __emit }) {
|
|
53
|
-
const props = __props;
|
|
54
|
-
const emits = __emit;
|
|
55
|
-
const { forwardRef, currentElement } = useForwardExpose();
|
|
56
|
-
const scopeIdAttrs = useForwardScopeId();
|
|
57
|
-
const toggleGroupContext = injectToggleGroupRootContext(null);
|
|
58
|
-
const modelValue = useVModel(props, "modelValue", emits, {
|
|
59
|
-
defaultValue: props.defaultValue,
|
|
60
|
-
passive: props.modelValue === void 0
|
|
61
|
-
});
|
|
62
|
-
function togglePressed() {
|
|
63
|
-
modelValue.value = !modelValue.value;
|
|
64
|
-
}
|
|
65
|
-
const dataState = computed(() => {
|
|
66
|
-
return modelValue.value ? "on" : "off";
|
|
67
|
-
});
|
|
68
|
-
const isFormControl = useFormControl(currentElement);
|
|
69
|
-
return (_ctx, _cache) => {
|
|
70
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(Primitive), mergeProps({
|
|
71
|
-
ref: unref(forwardRef),
|
|
72
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
73
|
-
"as-child": props.asChild,
|
|
74
|
-
as: _ctx.as,
|
|
75
|
-
"aria-pressed": unref(modelValue),
|
|
76
|
-
"data-state": dataState.value,
|
|
77
|
-
"data-disabled": _ctx.disabled ? "" : void 0,
|
|
78
|
-
disabled: _ctx.disabled
|
|
79
|
-
}, {
|
|
80
|
-
...unref(scopeIdAttrs),
|
|
81
|
-
..._ctx.$attrs
|
|
82
|
-
}, { onClick: togglePressed }), {
|
|
83
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
84
|
-
modelValue: unref(modelValue),
|
|
85
|
-
disabled: _ctx.disabled,
|
|
86
|
-
pressed: unref(modelValue),
|
|
87
|
-
state: dataState.value
|
|
88
|
-
})]),
|
|
89
|
-
_: 3
|
|
90
|
-
}, 16, [
|
|
91
|
-
"type",
|
|
92
|
-
"as-child",
|
|
93
|
-
"as",
|
|
94
|
-
"aria-pressed",
|
|
95
|
-
"data-state",
|
|
96
|
-
"data-disabled",
|
|
97
|
-
"disabled"
|
|
98
|
-
]), unref(isFormControl) && _ctx.name && !unref(toggleGroupContext) ? (openBlock(), createBlock(VisuallyHiddenInput_default, mergeProps({
|
|
99
|
-
key: 0,
|
|
100
|
-
type: "checkbox",
|
|
101
|
-
name: _ctx.name,
|
|
102
|
-
value: unref(modelValue),
|
|
103
|
-
required: _ctx.required
|
|
104
|
-
}, unref(scopeIdAttrs)), null, 16, [
|
|
105
|
-
"name",
|
|
106
|
-
"value",
|
|
107
|
-
"required"
|
|
108
|
-
])) : createCommentVNode("v-if", true)], 64);
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/ToggleGroup/ToggleGroupItem.js
|
|
114
|
-
var ToggleGroupItem_default = /* @__PURE__ */ defineComponent({
|
|
115
|
-
__name: "ToggleGroupItem",
|
|
116
|
-
props: {
|
|
117
|
-
value: {
|
|
118
|
-
type: null,
|
|
119
|
-
required: true
|
|
120
|
-
},
|
|
121
|
-
disabled: {
|
|
122
|
-
type: Boolean,
|
|
123
|
-
required: false
|
|
124
|
-
},
|
|
125
|
-
asChild: {
|
|
126
|
-
type: Boolean,
|
|
127
|
-
required: false
|
|
128
|
-
},
|
|
129
|
-
as: {
|
|
130
|
-
type: null,
|
|
131
|
-
required: false,
|
|
132
|
-
default: "button"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
setup(__props) {
|
|
136
|
-
const props = __props;
|
|
137
|
-
const rootContext = injectToggleGroupRootContext();
|
|
138
|
-
const disabled = computed(() => rootContext.disabled?.value || props.disabled);
|
|
139
|
-
const pressed = computed(() => isValueEqualOrExist(rootContext.modelValue.value, props.value));
|
|
140
|
-
const { forwardRef } = useForwardExpose();
|
|
141
|
-
const scopeIdAttrs = useForwardScopeId();
|
|
142
|
-
return (_ctx, _cache) => {
|
|
143
|
-
return openBlock(), createBlock(resolveDynamicComponent(unref(rootContext).rovingFocus.value ? unref(RovingFocusItem_default) : unref(Primitive)), mergeProps({ "as-child": "" }, unref(rootContext).rovingFocus.value ? {
|
|
144
|
-
focusable: !disabled.value,
|
|
145
|
-
active: pressed.value
|
|
146
|
-
} : {}), {
|
|
147
|
-
default: withCtx(() => [createVNode(unref(Toggle_default), mergeProps({
|
|
148
|
-
...unref(scopeIdAttrs),
|
|
149
|
-
...props
|
|
150
|
-
}, {
|
|
151
|
-
ref: unref(forwardRef),
|
|
152
|
-
disabled: disabled.value,
|
|
153
|
-
"model-value": pressed.value,
|
|
154
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(rootContext).changeModelValue(_ctx.value))
|
|
155
|
-
}), {
|
|
156
|
-
default: withCtx((slotProps) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))]),
|
|
157
|
-
_: 3
|
|
158
|
-
}, 16, ["disabled", "model-value"])]),
|
|
159
|
-
_: 3
|
|
160
|
-
}, 16);
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
});
|
|
3
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { ToggleGroupItem } from "reka-ui";
|
|
164
6
|
//#endregion
|
|
165
7
|
//#region src/components/segmented-control/segmented-control-item.vue
|
|
166
8
|
var segmented_control_item_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -186,8 +28,8 @@ var segmented_control_item_default = /*#__PURE__*/ _plugin_vue_export_helper_def
|
|
|
186
28
|
if ((e.key === "Enter" || e.key === " ") && item.getAttribute("data-state") === "on") e.preventDefault();
|
|
187
29
|
}
|
|
188
30
|
return (_ctx, _cache) => {
|
|
189
|
-
return openBlock(), createBlock(unref(
|
|
190
|
-
class: unref(clsx)("celeste-segmented-control-item", props.class),
|
|
31
|
+
return openBlock(), createBlock(unref(ToggleGroupItem), mergeProps(unref(delegatedProps), {
|
|
32
|
+
class: unref(clsx$1)("celeste-segmented-control-item", props.class),
|
|
191
33
|
onKeydown
|
|
192
34
|
}), {
|
|
193
35
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
|
-
import { t as ToggleGroupRoot_default } from "./ToggleGroupRoot.js";
|
|
5
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
3
|
import { useDirection } from "../use-direction.js";
|
|
7
4
|
import { useTabObserver } from "../use-tab-observer.js";
|
|
8
5
|
import { createBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
|
+
import clsx$1 from "clsx";
|
|
7
|
+
import { ToggleGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
9
8
|
//#region src/components/segmented-control/segmented-control.vue?vue&type=script&setup=true&lang.ts
|
|
10
9
|
var _hoisted_1 = ["hidden"];
|
|
11
10
|
//#endregion
|
|
@@ -41,10 +40,10 @@ var segmented_control_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
41
40
|
const dir = useDirection(() => props.dir);
|
|
42
41
|
const { listRef, indicator, ready } = useTabObserver("[data-state=\"on\"]");
|
|
43
42
|
return (_ctx, _cache) => {
|
|
44
|
-
return openBlock(), createBlock(unref(
|
|
43
|
+
return openBlock(), createBlock(unref(ToggleGroupRoot), mergeProps({
|
|
45
44
|
ref_key: "listRef",
|
|
46
45
|
ref: listRef,
|
|
47
|
-
class: unref(clsx)("celeste-segmented-control", props.class)
|
|
46
|
+
class: unref(clsx$1)("celeste-segmented-control", props.class)
|
|
48
47
|
}, unref(forwarded), {
|
|
49
48
|
type: "single",
|
|
50
49
|
dir: unref(dir)
|
|
@@ -1,311 +1,8 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { t as Primitive } from "./Primitive.js";
|
|
4
|
-
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
5
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
6
|
-
import { t as Presence_default } from "./Presence.js";
|
|
7
|
-
import { t as Teleport_default } from "./Teleport.js";
|
|
8
|
-
import { t as useNonce } from "./useNonce.js";
|
|
9
|
-
import { n as injectSelectRootContext, r as provideSelectRootContext } from "./BubbleSelect.js";
|
|
10
|
-
import { a as provideSelectContentContext, i as injectSelectContentContext, n as SelectContentDefaultContextValue, r as SelectContentImpl_default, t as injectSelectItemAlignedPositionContext } from "./SelectItemAlignedPosition.js";
|
|
11
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
inheritAttrs: false,
|
|
16
|
-
__name: "SelectProvider",
|
|
17
|
-
props: { context: {
|
|
18
|
-
type: Object,
|
|
19
|
-
required: true
|
|
20
|
-
} },
|
|
21
|
-
setup(__props) {
|
|
22
|
-
provideSelectRootContext(__props.context);
|
|
23
|
-
provideSelectContentContext(SelectContentDefaultContextValue);
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return renderSlot(_ctx.$slots, "default");
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Select/SelectContent.js
|
|
31
|
-
var _hoisted_1 = { key: 1 };
|
|
32
|
-
var SelectContent_default = /* @__PURE__ */ defineComponent({
|
|
33
|
-
inheritAttrs: false,
|
|
34
|
-
__name: "SelectContent",
|
|
35
|
-
props: {
|
|
36
|
-
forceMount: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
required: false
|
|
39
|
-
},
|
|
40
|
-
position: {
|
|
41
|
-
type: String,
|
|
42
|
-
required: false
|
|
43
|
-
},
|
|
44
|
-
bodyLock: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
required: false
|
|
47
|
-
},
|
|
48
|
-
memoDependencies: {
|
|
49
|
-
type: Array,
|
|
50
|
-
required: false
|
|
51
|
-
},
|
|
52
|
-
side: {
|
|
53
|
-
type: null,
|
|
54
|
-
required: false
|
|
55
|
-
},
|
|
56
|
-
sideOffset: {
|
|
57
|
-
type: Number,
|
|
58
|
-
required: false
|
|
59
|
-
},
|
|
60
|
-
sideFlip: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
required: false
|
|
63
|
-
},
|
|
64
|
-
align: {
|
|
65
|
-
type: null,
|
|
66
|
-
required: false
|
|
67
|
-
},
|
|
68
|
-
alignOffset: {
|
|
69
|
-
type: Number,
|
|
70
|
-
required: false
|
|
71
|
-
},
|
|
72
|
-
alignFlip: {
|
|
73
|
-
type: Boolean,
|
|
74
|
-
required: false
|
|
75
|
-
},
|
|
76
|
-
avoidCollisions: {
|
|
77
|
-
type: Boolean,
|
|
78
|
-
required: false
|
|
79
|
-
},
|
|
80
|
-
collisionBoundary: {
|
|
81
|
-
type: null,
|
|
82
|
-
required: false
|
|
83
|
-
},
|
|
84
|
-
collisionPadding: {
|
|
85
|
-
type: [Number, Object],
|
|
86
|
-
required: false
|
|
87
|
-
},
|
|
88
|
-
arrowPadding: {
|
|
89
|
-
type: Number,
|
|
90
|
-
required: false
|
|
91
|
-
},
|
|
92
|
-
hideShiftedArrow: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
required: false
|
|
95
|
-
},
|
|
96
|
-
sticky: {
|
|
97
|
-
type: String,
|
|
98
|
-
required: false
|
|
99
|
-
},
|
|
100
|
-
hideWhenDetached: {
|
|
101
|
-
type: Boolean,
|
|
102
|
-
required: false
|
|
103
|
-
},
|
|
104
|
-
positionStrategy: {
|
|
105
|
-
type: String,
|
|
106
|
-
required: false
|
|
107
|
-
},
|
|
108
|
-
updatePositionStrategy: {
|
|
109
|
-
type: String,
|
|
110
|
-
required: false
|
|
111
|
-
},
|
|
112
|
-
disableUpdateOnLayoutShift: {
|
|
113
|
-
type: Boolean,
|
|
114
|
-
required: false
|
|
115
|
-
},
|
|
116
|
-
prioritizePosition: {
|
|
117
|
-
type: Boolean,
|
|
118
|
-
required: false
|
|
119
|
-
},
|
|
120
|
-
reference: {
|
|
121
|
-
type: null,
|
|
122
|
-
required: false
|
|
123
|
-
},
|
|
124
|
-
dir: {
|
|
125
|
-
type: String,
|
|
126
|
-
required: false
|
|
127
|
-
},
|
|
128
|
-
asChild: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
required: false
|
|
131
|
-
},
|
|
132
|
-
as: {
|
|
133
|
-
type: null,
|
|
134
|
-
required: false
|
|
135
|
-
},
|
|
136
|
-
disableOutsidePointerEvents: {
|
|
137
|
-
type: Boolean,
|
|
138
|
-
required: false
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
emits: [
|
|
142
|
-
"closeAutoFocus",
|
|
143
|
-
"escapeKeyDown",
|
|
144
|
-
"pointerDownOutside"
|
|
145
|
-
],
|
|
146
|
-
setup(__props, { emit: __emit }) {
|
|
147
|
-
const props = __props;
|
|
148
|
-
const forwarded = useForwardPropsEmits(props, __emit);
|
|
149
|
-
const rootContext = injectSelectRootContext();
|
|
150
|
-
const fragment = ref();
|
|
151
|
-
onMounted(() => {
|
|
152
|
-
fragment.value = new DocumentFragment();
|
|
153
|
-
});
|
|
154
|
-
const presenceRef = ref();
|
|
155
|
-
const present = computed(() => props.forceMount || rootContext.open.value);
|
|
156
|
-
const renderPresence = ref(present.value);
|
|
157
|
-
let renderPresenceTimeout;
|
|
158
|
-
function clearRenderPresenceTimeout() {
|
|
159
|
-
if (renderPresenceTimeout) {
|
|
160
|
-
clearTimeout(renderPresenceTimeout);
|
|
161
|
-
renderPresenceTimeout = void 0;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
watch(present, (_value, _oldValue, onCleanup) => {
|
|
165
|
-
clearRenderPresenceTimeout();
|
|
166
|
-
renderPresenceTimeout = setTimeout(() => {
|
|
167
|
-
renderPresence.value = present.value;
|
|
168
|
-
renderPresenceTimeout = void 0;
|
|
169
|
-
});
|
|
170
|
-
onCleanup(clearRenderPresenceTimeout);
|
|
171
|
-
});
|
|
172
|
-
onUnmounted(clearRenderPresenceTimeout);
|
|
173
|
-
return (_ctx, _cache) => {
|
|
174
|
-
return present.value || renderPresence.value || presenceRef.value?.present ? (openBlock(), createBlock(unref(Presence_default), {
|
|
175
|
-
key: 0,
|
|
176
|
-
ref_key: "presenceRef",
|
|
177
|
-
ref: presenceRef,
|
|
178
|
-
present: present.value
|
|
179
|
-
}, {
|
|
180
|
-
default: withCtx(() => [createVNode(SelectContentImpl_default, normalizeProps(guardReactiveProps({
|
|
181
|
-
...unref(forwarded),
|
|
182
|
-
..._ctx.$attrs
|
|
183
|
-
})), {
|
|
184
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
185
|
-
_: 3
|
|
186
|
-
}, 16)]),
|
|
187
|
-
_: 3
|
|
188
|
-
}, 8, ["present"])) : fragment.value ? (openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(), createBlock(Teleport, { to: fragment.value }, [createVNode(SelectProvider_default, { context: unref(rootContext) }, {
|
|
189
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
190
|
-
_: 3
|
|
191
|
-
}, 8, ["context"])], 8, ["to"]))])) : createCommentVNode("v-if", true);
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Select/SelectPortal.js
|
|
197
|
-
var SelectPortal_default = /* @__PURE__ */ defineComponent({
|
|
198
|
-
__name: "SelectPortal",
|
|
199
|
-
props: {
|
|
200
|
-
to: {
|
|
201
|
-
type: null,
|
|
202
|
-
required: false
|
|
203
|
-
},
|
|
204
|
-
disabled: {
|
|
205
|
-
type: Boolean,
|
|
206
|
-
required: false
|
|
207
|
-
},
|
|
208
|
-
defer: {
|
|
209
|
-
type: Boolean,
|
|
210
|
-
required: false
|
|
211
|
-
},
|
|
212
|
-
forceMount: {
|
|
213
|
-
type: Boolean,
|
|
214
|
-
required: false
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
setup(__props) {
|
|
218
|
-
const props = __props;
|
|
219
|
-
return (_ctx, _cache) => {
|
|
220
|
-
return openBlock(), createBlock(unref(Teleport_default), normalizeProps(guardReactiveProps(props)), {
|
|
221
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
222
|
-
_: 3
|
|
223
|
-
}, 16);
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
//#endregion
|
|
228
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Select/SelectViewport.js
|
|
229
|
-
var SelectViewport_default = /* @__PURE__ */ defineComponent({
|
|
230
|
-
__name: "SelectViewport",
|
|
231
|
-
props: {
|
|
232
|
-
nonce: {
|
|
233
|
-
type: String,
|
|
234
|
-
required: false
|
|
235
|
-
},
|
|
236
|
-
asChild: {
|
|
237
|
-
type: Boolean,
|
|
238
|
-
required: false
|
|
239
|
-
},
|
|
240
|
-
as: {
|
|
241
|
-
type: null,
|
|
242
|
-
required: false
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
setup(__props) {
|
|
246
|
-
const props = __props;
|
|
247
|
-
const { nonce: propNonce } = toRefs(props);
|
|
248
|
-
const nonce = useNonce(propNonce);
|
|
249
|
-
const contentContext = injectSelectContentContext();
|
|
250
|
-
const alignedPositionContext = contentContext.position === "item-aligned" ? injectSelectItemAlignedPositionContext() : void 0;
|
|
251
|
-
const { forwardRef, currentElement } = useForwardExpose();
|
|
252
|
-
onMounted(() => {
|
|
253
|
-
contentContext?.onViewportChange(currentElement.value);
|
|
254
|
-
});
|
|
255
|
-
const prevScrollTopRef = ref(0);
|
|
256
|
-
function handleScroll(event) {
|
|
257
|
-
const viewport = event.currentTarget;
|
|
258
|
-
const { shouldExpandOnScrollRef, contentWrapper } = alignedPositionContext ?? {};
|
|
259
|
-
if (shouldExpandOnScrollRef?.value && contentWrapper?.value) {
|
|
260
|
-
const scrolledBy = Math.abs(prevScrollTopRef.value - viewport.scrollTop);
|
|
261
|
-
if (scrolledBy > 0) {
|
|
262
|
-
const availableHeight = window.innerHeight - 20;
|
|
263
|
-
const cssMinHeight = Number.parseFloat(contentWrapper.value.style.minHeight);
|
|
264
|
-
const cssHeight = Number.parseFloat(contentWrapper.value.style.height);
|
|
265
|
-
const prevHeight = Math.max(cssMinHeight, cssHeight);
|
|
266
|
-
if (prevHeight < availableHeight) {
|
|
267
|
-
const nextHeight = prevHeight + scrolledBy;
|
|
268
|
-
const clampedNextHeight = Math.min(availableHeight, nextHeight);
|
|
269
|
-
const heightDiff = nextHeight - clampedNextHeight;
|
|
270
|
-
contentWrapper.value.style.height = `${clampedNextHeight}px`;
|
|
271
|
-
if (contentWrapper.value.style.bottom === "0px") {
|
|
272
|
-
viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;
|
|
273
|
-
contentWrapper.value.style.justifyContent = "flex-end";
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
prevScrollTopRef.value = viewport.scrollTop;
|
|
279
|
-
}
|
|
280
|
-
return (_ctx, _cache) => {
|
|
281
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(Primitive), mergeProps({
|
|
282
|
-
ref: unref(forwardRef),
|
|
283
|
-
"data-reka-select-viewport": "",
|
|
284
|
-
role: "presentation"
|
|
285
|
-
}, {
|
|
286
|
-
..._ctx.$attrs,
|
|
287
|
-
...props
|
|
288
|
-
}, {
|
|
289
|
-
style: {
|
|
290
|
-
position: "relative",
|
|
291
|
-
flex: 1,
|
|
292
|
-
overflow: "hidden auto"
|
|
293
|
-
},
|
|
294
|
-
onScroll: handleScroll
|
|
295
|
-
}), {
|
|
296
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
297
|
-
_: 3
|
|
298
|
-
}, 16), createVNode(unref(Primitive), {
|
|
299
|
-
as: "style",
|
|
300
|
-
nonce: unref(nonce)
|
|
301
|
-
}, {
|
|
302
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode(" /* Hide scrollbars cross-browser and enable momentum scroll for touch devices */ [data-reka-select-viewport] { scrollbar-width:none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-reka-select-viewport]::-webkit-scrollbar { display: none; } ")])),
|
|
303
|
-
_: 1,
|
|
304
|
-
__: [0]
|
|
305
|
-
}, 8, ["nonce"])], 64);
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
});
|
|
3
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { SelectContent, SelectPortal, SelectViewport, useForwardPropsEmits } from "reka-ui";
|
|
309
6
|
//#endregion
|
|
310
7
|
//#region src/components/select/select-content.vue
|
|
311
8
|
var select_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -357,13 +54,13 @@ var select_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
357
54
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
358
55
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
359
56
|
return (_ctx, _cache) => {
|
|
360
|
-
return openBlock(), createBlock(unref(
|
|
361
|
-
default: withCtx(() => [createVNode(unref(
|
|
57
|
+
return openBlock(), createBlock(unref(SelectPortal), null, {
|
|
58
|
+
default: withCtx(() => [createVNode(unref(SelectContent), mergeProps(unref(forwarded), {
|
|
362
59
|
position: "popper",
|
|
363
60
|
"data-width": __props.width,
|
|
364
|
-
class: unref(clsx)("celeste-select-content", props.class)
|
|
61
|
+
class: unref(clsx$1)("celeste-select-content", props.class)
|
|
365
62
|
}), {
|
|
366
|
-
default: withCtx(() => [createVNode(unref(
|
|
63
|
+
default: withCtx(() => [createVNode(unref(SelectViewport), { class: "celeste-select-view-port" }, {
|
|
367
64
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
368
65
|
_: 3
|
|
369
66
|
})]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as SelectGroup_default } from "./SelectGroup.js";
|
|
2
1
|
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { SelectGroup } from "reka-ui";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/select/select-group.vue
|
|
5
5
|
var select_group_default = /* @__PURE__ */ defineComponent({
|
|
@@ -11,7 +11,7 @@ var select_group_default = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
setup(__props) {
|
|
12
12
|
const props = __props;
|
|
13
13
|
return (_ctx, _cache) => {
|
|
14
|
-
return openBlock(), createBlock(unref(
|
|
14
|
+
return openBlock(), createBlock(unref(SelectGroup), normalizeProps(guardReactiveProps(props)), {
|
|
15
15
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
16
16
|
_: 3
|
|
17
17
|
}, 16);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
4
3
|
import { createElementBlock, defineComponent, mergeProps, openBlock, renderSlot, unref } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/select/select-icon.vue
|
|
7
7
|
var select_icon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -17,7 +17,7 @@ var select_icon_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
17
17
|
const props = __props;
|
|
18
18
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
19
19
|
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createElementBlock("span", mergeProps(unref(delegatedProps), { class: unref(clsx)("celeste-select-icon", props.class) }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16);
|
|
20
|
+
return openBlock(), createElementBlock("span", mergeProps(unref(delegatedProps), { class: unref(clsx$1)("celeste-select-icon", props.class) }), [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 16);
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
}), [["__scopeId", "data-v-c6783f07"]]);
|