@youcan/celeste 0.21.2 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/README.md +1 -1
- package/ai/component-registry.json +2 -2
- package/ai/icons.json +2 -2
- package/ai/tokens.json +2 -2
- package/dist/celeste.css +3057 -3057
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +6 -4
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/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,195 +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 useForwardExpose } from "./useForwardExpose.js";
|
|
4
|
-
import { t as useForwardProps } from "./useForwardProps.js";
|
|
5
|
-
import { t as useId } from "./useId.js";
|
|
6
|
-
import { c as getOpenState, l as isMouseEvent, o as SUB_OPEN_KEYS } from "./utils.js";
|
|
7
|
-
import { t as MenuAnchor_default } from "./MenuAnchor.js";
|
|
8
|
-
import { n as injectMenuContext, r as injectMenuRootContext } from "./MenuRoot.js";
|
|
9
|
-
import { n as injectMenuContentContext } from "./MenuContentImpl.js";
|
|
10
|
-
import { t as MenuItemImpl_default } from "./MenuItemImpl.js";
|
|
11
|
-
import { n as injectMenuSubContext } from "./MenuSub.js";
|
|
12
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
13
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
__name: "MenuSubTrigger",
|
|
17
|
-
props: {
|
|
18
|
-
disabled: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
required: false
|
|
21
|
-
},
|
|
22
|
-
textValue: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
asChild: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
as: {
|
|
31
|
-
type: null,
|
|
32
|
-
required: false
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
setup(__props) {
|
|
36
|
-
const props = __props;
|
|
37
|
-
const menuContext = injectMenuContext();
|
|
38
|
-
const rootContext = injectMenuRootContext();
|
|
39
|
-
const subContext = injectMenuSubContext();
|
|
40
|
-
const contentContext = injectMenuContentContext();
|
|
41
|
-
watch(menuContext.open, (open) => {
|
|
42
|
-
if (open) contentContext.activeSubmenuContext.value = {
|
|
43
|
-
onOpenChange: menuContext.onOpenChange,
|
|
44
|
-
trigger: subContext.trigger
|
|
45
|
-
};
|
|
46
|
-
else if (contentContext.activeSubmenuContext.value?.trigger.value === subContext.trigger.value) contentContext.activeSubmenuContext.value = void 0;
|
|
47
|
-
});
|
|
48
|
-
const openTimerRef = ref(null);
|
|
49
|
-
subContext.triggerId ||= useId(void 0, "reka-menu-sub-trigger");
|
|
50
|
-
function clearOpenTimer() {
|
|
51
|
-
if (openTimerRef.value) window.clearTimeout(openTimerRef.value);
|
|
52
|
-
openTimerRef.value = null;
|
|
53
|
-
}
|
|
54
|
-
onUnmounted(() => {
|
|
55
|
-
clearOpenTimer();
|
|
56
|
-
});
|
|
57
|
-
function handlePointerMove(event) {
|
|
58
|
-
if (!isMouseEvent(event)) return;
|
|
59
|
-
if (contentContext.onItemEnter(event)) return;
|
|
60
|
-
if (!props.disabled && !menuContext.open.value && !openTimerRef.value) {
|
|
61
|
-
contentContext.onPointerGraceIntentChange(null);
|
|
62
|
-
openTimerRef.value = window.setTimeout(() => {
|
|
63
|
-
menuContext.onOpenChange(true);
|
|
64
|
-
clearOpenTimer();
|
|
65
|
-
}, 100);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
async function handlePointerLeave(event) {
|
|
69
|
-
if (!isMouseEvent(event)) return;
|
|
70
|
-
clearOpenTimer();
|
|
71
|
-
const contentRect = menuContext.content.value?.getBoundingClientRect();
|
|
72
|
-
if (contentRect?.width) {
|
|
73
|
-
const side = menuContext.content.value?.dataset.side;
|
|
74
|
-
const rightSide = side === "right";
|
|
75
|
-
const bleed = rightSide ? -5 : 5;
|
|
76
|
-
const contentNearEdge = contentRect[rightSide ? "left" : "right"];
|
|
77
|
-
const contentFarEdge = contentRect[rightSide ? "right" : "left"];
|
|
78
|
-
contentContext.onPointerGraceIntentChange({
|
|
79
|
-
area: [
|
|
80
|
-
{
|
|
81
|
-
x: event.clientX + bleed,
|
|
82
|
-
y: event.clientY
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
x: contentNearEdge,
|
|
86
|
-
y: contentRect.top
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
x: contentFarEdge,
|
|
90
|
-
y: contentRect.top
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
x: contentFarEdge,
|
|
94
|
-
y: contentRect.bottom
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
x: contentNearEdge,
|
|
98
|
-
y: contentRect.bottom
|
|
99
|
-
}
|
|
100
|
-
],
|
|
101
|
-
side
|
|
102
|
-
});
|
|
103
|
-
window.clearTimeout(contentContext.pointerGraceTimerRef.value);
|
|
104
|
-
contentContext.pointerGraceTimerRef.value = window.setTimeout(() => contentContext.onPointerGraceIntentChange(null), 300);
|
|
105
|
-
} else {
|
|
106
|
-
if (contentContext.onTriggerLeave(event)) return;
|
|
107
|
-
contentContext.onPointerGraceIntentChange(null);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
async function handleKeyDown(event) {
|
|
111
|
-
const isTypingAhead = contentContext.searchRef.value !== "";
|
|
112
|
-
if (props.disabled || isTypingAhead && event.key === " ") return;
|
|
113
|
-
if (SUB_OPEN_KEYS[rootContext.dir.value].includes(event.key)) {
|
|
114
|
-
menuContext.onOpenChange(true);
|
|
115
|
-
await nextTick();
|
|
116
|
-
menuContext.content.value?.focus();
|
|
117
|
-
event.preventDefault();
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return (_ctx, _cache) => {
|
|
121
|
-
return openBlock(), createBlock(MenuAnchor_default, { "as-child": "" }, {
|
|
122
|
-
default: withCtx(() => [createVNode(MenuItemImpl_default, mergeProps(props, {
|
|
123
|
-
id: unref(subContext).triggerId,
|
|
124
|
-
ref: (vnode) => {
|
|
125
|
-
if (!vnode) return void 0;
|
|
126
|
-
unref(subContext)?.onTriggerChange(vnode?.$el);
|
|
127
|
-
},
|
|
128
|
-
"aria-haspopup": "menu",
|
|
129
|
-
"aria-expanded": unref(menuContext).open.value,
|
|
130
|
-
"aria-controls": unref(subContext).contentId,
|
|
131
|
-
"data-state": unref(getOpenState)(unref(menuContext).open.value),
|
|
132
|
-
onClick: _cache[0] || (_cache[0] = async (event) => {
|
|
133
|
-
if (props.disabled || event.defaultPrevented) return;
|
|
134
|
-
/**
|
|
135
|
-
* We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)
|
|
136
|
-
* and we rely heavily on `onFocusOutside` for submenus to close when switching
|
|
137
|
-
* between separate submenus.
|
|
138
|
-
*/
|
|
139
|
-
event.currentTarget?.focus();
|
|
140
|
-
if (!unref(menuContext).open.value) unref(menuContext).onOpenChange(true);
|
|
141
|
-
}),
|
|
142
|
-
onPointermove: handlePointerMove,
|
|
143
|
-
onPointerleave: handlePointerLeave,
|
|
144
|
-
onKeydown: handleKeyDown
|
|
145
|
-
}), {
|
|
146
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
147
|
-
_: 3
|
|
148
|
-
}, 16, [
|
|
149
|
-
"id",
|
|
150
|
-
"aria-expanded",
|
|
151
|
-
"aria-controls",
|
|
152
|
-
"data-state"
|
|
153
|
-
])]),
|
|
154
|
-
_: 3
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSubTrigger.js
|
|
161
|
-
var DropdownMenuSubTrigger_default = /* @__PURE__ */ defineComponent({
|
|
162
|
-
__name: "DropdownMenuSubTrigger",
|
|
163
|
-
props: {
|
|
164
|
-
disabled: {
|
|
165
|
-
type: Boolean,
|
|
166
|
-
required: false
|
|
167
|
-
},
|
|
168
|
-
textValue: {
|
|
169
|
-
type: String,
|
|
170
|
-
required: false
|
|
171
|
-
},
|
|
172
|
-
asChild: {
|
|
173
|
-
type: Boolean,
|
|
174
|
-
required: false
|
|
175
|
-
},
|
|
176
|
-
as: {
|
|
177
|
-
type: null,
|
|
178
|
-
required: false
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
setup(__props) {
|
|
182
|
-
const props = __props;
|
|
183
|
-
useForwardExpose();
|
|
184
|
-
return (_ctx, _cache) => {
|
|
185
|
-
return openBlock(), createBlock(unref(MenuSubTrigger_default), normalizeProps(guardReactiveProps(props)), {
|
|
186
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
187
|
-
_: 3
|
|
188
|
-
}, 16);
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
//#endregion
|
|
3
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { DropdownMenuSubTrigger, useForwardProps } from "reka-ui";
|
|
193
6
|
//#region src/components/dropdown-menu/dropdown-menu-sub-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
194
7
|
var _hoisted_1 = {
|
|
195
8
|
key: 0,
|
|
@@ -218,7 +31,7 @@ var dropdown_menu_sub_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_
|
|
|
218
31
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
219
32
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
220
33
|
return (_ctx, _cache) => {
|
|
221
|
-
return openBlock(), createBlock(unref(
|
|
34
|
+
return openBlock(), createBlock(unref(DropdownMenuSubTrigger), mergeProps(unref(forwardedProps), { class: unref(clsx$1)(props.class, "celeste-dropdown-menu-sub-trigger") }), {
|
|
222
35
|
default: withCtx(() => [
|
|
223
36
|
_ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "prefix", {}, void 0, true)])) : createCommentVNode("", true),
|
|
224
37
|
createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
|
-
import { t as MenuSub_default } from "./MenuSub.js";
|
|
5
|
-
import { createBlock, defineComponent, guardReactiveProps, isRef, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
6
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuSub.js
|
|
7
|
-
var DropdownMenuSub_default = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "DropdownMenuSub",
|
|
9
|
-
props: {
|
|
10
|
-
defaultOpen: {
|
|
11
|
-
type: Boolean,
|
|
12
|
-
required: false
|
|
13
|
-
},
|
|
14
|
-
open: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
required: false,
|
|
17
|
-
default: void 0
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
emits: ["update:open"],
|
|
21
|
-
setup(__props, { emit: __emit }) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const open = useVModel(props, "open", __emit, {
|
|
24
|
-
passive: props.open === void 0,
|
|
25
|
-
defaultValue: props.defaultOpen ?? false
|
|
26
|
-
});
|
|
27
|
-
useForwardExpose();
|
|
28
|
-
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createBlock(unref(MenuSub_default), {
|
|
30
|
-
open: unref(open),
|
|
31
|
-
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => isRef(open) ? open.value = $event : null)
|
|
32
|
-
}, {
|
|
33
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { open: unref(open) })]),
|
|
34
|
-
_: 3
|
|
35
|
-
}, 8, ["open"]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
1
|
+
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DropdownMenuSub, useForwardPropsEmits } from "reka-ui";
|
|
39
3
|
//#endregion
|
|
40
4
|
//#region src/components/dropdown-menu/dropdown-menu-sub.vue
|
|
41
5
|
var dropdown_menu_sub_default = /* @__PURE__ */ defineComponent({
|
|
@@ -48,7 +12,7 @@ var dropdown_menu_sub_default = /* @__PURE__ */ defineComponent({
|
|
|
48
12
|
setup(__props, { emit: __emit }) {
|
|
49
13
|
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
50
14
|
return (_ctx, _cache) => {
|
|
51
|
-
return openBlock(), createBlock(unref(
|
|
15
|
+
return openBlock(), createBlock(unref(DropdownMenuSub), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
52
16
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
53
17
|
_: 3
|
|
54
18
|
}, 16);
|
|
@@ -1,91 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as useForwardProps } from "./useForwardProps.js";
|
|
5
|
-
import { t as useId } from "./useId.js";
|
|
6
|
-
import { t as MenuAnchor_default } from "./MenuAnchor.js";
|
|
7
|
-
import { n as injectDropdownMenuRootContext } from "./DropdownMenuRoot.js";
|
|
8
|
-
import { createBlock, createVNode, defineComponent, mergeProps, nextTick, onMounted, openBlock, renderSlot, unref, withCtx, withKeys } from "vue";
|
|
9
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DropdownMenu/DropdownMenuTrigger.js
|
|
10
|
-
var DropdownMenuTrigger_default = /* @__PURE__ */ defineComponent({
|
|
11
|
-
__name: "DropdownMenuTrigger",
|
|
12
|
-
props: {
|
|
13
|
-
disabled: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
required: false
|
|
16
|
-
},
|
|
17
|
-
asChild: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
required: false
|
|
20
|
-
},
|
|
21
|
-
as: {
|
|
22
|
-
type: null,
|
|
23
|
-
required: false,
|
|
24
|
-
default: "button"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
setup(__props) {
|
|
28
|
-
const props = __props;
|
|
29
|
-
const rootContext = injectDropdownMenuRootContext();
|
|
30
|
-
const { forwardRef, currentElement: triggerElement } = useForwardExpose();
|
|
31
|
-
onMounted(() => {
|
|
32
|
-
rootContext.triggerElement = triggerElement;
|
|
33
|
-
});
|
|
34
|
-
rootContext.triggerId ||= useId(void 0, "reka-dropdown-menu-trigger");
|
|
35
|
-
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createBlock(unref(MenuAnchor_default), { "as-child": "" }, {
|
|
37
|
-
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
38
|
-
id: unref(rootContext).triggerId,
|
|
39
|
-
ref: unref(forwardRef),
|
|
40
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
41
|
-
"as-child": props.asChild,
|
|
42
|
-
as: _ctx.as,
|
|
43
|
-
"aria-haspopup": "menu",
|
|
44
|
-
"aria-expanded": unref(rootContext).open.value,
|
|
45
|
-
"aria-controls": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,
|
|
46
|
-
"data-disabled": _ctx.disabled ? "" : void 0,
|
|
47
|
-
disabled: _ctx.disabled,
|
|
48
|
-
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
49
|
-
onClick: _cache[0] || (_cache[0] = async (event) => {
|
|
50
|
-
if (!_ctx.disabled && event.button === 0 && event.ctrlKey === false) {
|
|
51
|
-
unref(rootContext)?.onOpenToggle();
|
|
52
|
-
await nextTick();
|
|
53
|
-
if (unref(rootContext).open.value) event.preventDefault();
|
|
54
|
-
}
|
|
55
|
-
}),
|
|
56
|
-
onKeydown: _cache[1] || (_cache[1] = withKeys((event) => {
|
|
57
|
-
if (_ctx.disabled) return;
|
|
58
|
-
if (["Enter", " "].includes(event.key)) unref(rootContext).onOpenToggle();
|
|
59
|
-
if (event.key === "ArrowDown") unref(rootContext).onOpenChange(true);
|
|
60
|
-
if ([
|
|
61
|
-
"Enter",
|
|
62
|
-
" ",
|
|
63
|
-
"ArrowDown"
|
|
64
|
-
].includes(event.key)) event.preventDefault();
|
|
65
|
-
}, [
|
|
66
|
-
"enter",
|
|
67
|
-
"space",
|
|
68
|
-
"arrow-down"
|
|
69
|
-
]))
|
|
70
|
-
}, {
|
|
71
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
72
|
-
_: 3
|
|
73
|
-
}, 8, [
|
|
74
|
-
"id",
|
|
75
|
-
"type",
|
|
76
|
-
"as-child",
|
|
77
|
-
"as",
|
|
78
|
-
"aria-expanded",
|
|
79
|
-
"aria-controls",
|
|
80
|
-
"data-disabled",
|
|
81
|
-
"disabled",
|
|
82
|
-
"data-state"
|
|
83
|
-
])]),
|
|
84
|
-
_: 3
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
});
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { DropdownMenuTrigger, useForwardProps } from "reka-ui";
|
|
89
4
|
//#endregion
|
|
90
5
|
//#region src/components/dropdown-menu/dropdown-menu-trigger.vue
|
|
91
6
|
var dropdown_menu_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -98,7 +13,7 @@ var dropdown_menu_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_defa
|
|
|
98
13
|
setup(__props) {
|
|
99
14
|
const forwardedProps = useForwardProps(__props);
|
|
100
15
|
return (_ctx, _cache) => {
|
|
101
|
-
return openBlock(), createBlock(unref(
|
|
16
|
+
return openBlock(), createBlock(unref(DropdownMenuTrigger), mergeProps({ class: "celeste-dropdown-menu-trigger" }, unref(forwardedProps), { as: "div" }), {
|
|
102
17
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
103
18
|
_: 3
|
|
104
19
|
}, 16);
|
|
@@ -1,11 +1,9 @@
|
|
|
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 ConfigProvider_default } from "./ConfigProvider.js";
|
|
4
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
5
|
-
import { t as DropdownMenuRoot_default } from "./DropdownMenuRoot.js";
|
|
6
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
7
3
|
import { useDirection } from "../use-direction.js";
|
|
8
4
|
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
5
|
+
import clsx$1 from "clsx";
|
|
6
|
+
import { ConfigProvider, DropdownMenuRoot, useForwardPropsEmits } from "reka-ui";
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/components/dropdown-menu/dropdown-menu.vue
|
|
11
9
|
var dropdown_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -31,11 +29,11 @@ var dropdown_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
31
29
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
32
30
|
const dir = useDirection(() => props.dir);
|
|
33
31
|
return (_ctx, _cache) => {
|
|
34
|
-
return openBlock(), createBlock(unref(
|
|
35
|
-
class: unref(clsx)("celeste-dropdown-menu", props.class),
|
|
32
|
+
return openBlock(), createBlock(unref(DropdownMenuRoot), mergeProps(unref(forwarded), {
|
|
33
|
+
class: unref(clsx$1)("celeste-dropdown-menu", props.class),
|
|
36
34
|
dir: unref(dir)
|
|
37
35
|
}), {
|
|
38
|
-
default: withCtx(() => [createVNode(unref(
|
|
36
|
+
default: withCtx(() => [createVNode(unref(ConfigProvider), { dir: unref(dir) }, {
|
|
39
37
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
40
38
|
_: 3
|
|
41
39
|
}, 8, ["dir"])]),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as select_content_default } from "./select-content.js";
|
|
3
|
-
import { t as select_trigger_default } from "./select-trigger.js";
|
|
4
|
-
import { t as select_item_default } from "./select-item.js";
|
|
5
2
|
import { t as compact_button_default } from "./compact-button.js";
|
|
3
|
+
import { t as select_content_default } from "./select-content.js";
|
|
6
4
|
import { t as select_icon_default } from "./select-icon.js";
|
|
5
|
+
import { t as select_item_default } from "./select-item.js";
|
|
6
|
+
import { t as select_trigger_default } from "./select-trigger.js";
|
|
7
7
|
import { t as select_default } from "./select.js";
|
|
8
8
|
import { t as tooltip_default } from "./tooltip.js";
|
|
9
9
|
import { Fragment, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, withCtx } from "vue";
|
|
@@ -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
|
-
import { t as Primitive } from "./Primitive.js";
|
|
4
2
|
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { Primitive } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/button/fancy-button.vue
|
|
7
7
|
var fancy_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -25,7 +25,7 @@ var fancy_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
25
25
|
return openBlock(), createBlock(unref(Primitive), {
|
|
26
26
|
as: __props.as,
|
|
27
27
|
"as-child": __props.asChild,
|
|
28
|
-
class: normalizeClass(unref(clsx)("celeste-fbutton", `celeste-fbutton-${__props.intent}`, `celeste-fbutton-${__props.size}`, props.class))
|
|
28
|
+
class: normalizeClass(unref(clsx$1)("celeste-fbutton", `celeste-fbutton-${__props.intent}`, `celeste-fbutton-${__props.size}`, props.class))
|
|
29
29
|
}, {
|
|
30
30
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
31
31
|
_: 3
|
|
@@ -1,8 +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 { a as useDropZone } from "./dist2.js";
|
|
4
2
|
import { t as button_default } from "./button.js";
|
|
5
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, mergeProps, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, useModel, useTemplateRef, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { useDropZone } from "@vueuse/core";
|
|
6
6
|
//#region src/components/file-upload/file-upload-area.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = { class: "celeste-file-upload-area-content" };
|
|
8
8
|
var _hoisted_2 = { class: "celeste-file-upload-area-label" };
|
|
@@ -106,7 +106,7 @@ var file_upload_area_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
106
106
|
return openBlock(), createBlock(resolveDynamicComponent(uploadComponent.value), {
|
|
107
107
|
ref_key: "dropZoneRef",
|
|
108
108
|
ref: dropZoneRef,
|
|
109
|
-
class: normalizeClass(unref(clsx)("celeste-file-upload-area", props.class)),
|
|
109
|
+
class: normalizeClass(unref(clsx$1)("celeste-file-upload-area", props.class)),
|
|
110
110
|
"data-over-drop-zone": unref(isOverDropZone),
|
|
111
111
|
onClick: handleTriggerClick
|
|
112
112
|
}, {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as popover_content_default } from "./popover-content.js";
|
|
3
|
-
import { t as popover_trigger_default } from "./popover-trigger.js";
|
|
4
2
|
import "./button.js";
|
|
5
3
|
import { t as compact_button_default } from "./compact-button.js";
|
|
6
4
|
import "./fancy-button.js";
|
|
7
5
|
import "./link-button.js";
|
|
8
6
|
import "./social-button.js";
|
|
9
|
-
import { t as
|
|
7
|
+
import { t as popover_content_default } from "./popover-content.js";
|
|
8
|
+
import { t as popover_trigger_default } from "./popover-trigger.js";
|
|
10
9
|
import { t as popover_default } from "./popover.js";
|
|
11
10
|
import "./text-input-affix.js";
|
|
12
11
|
import "./text-input-button.js";
|
|
@@ -14,6 +13,7 @@ import { t as text_input_default } from "./text-input.js";
|
|
|
14
13
|
import { parseGradient, stringifyGradient } from "../gradient.js";
|
|
15
14
|
import { t as tooltip_default } from "./tooltip.js";
|
|
16
15
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeStyle, openBlock, reactive, ref, renderList, toDisplayString, unref, watch, withCtx, withModifiers } from "vue";
|
|
16
|
+
import tinycolor from "tinycolor2";
|
|
17
17
|
//#region src/components/color-picker/gradient-picker.vue?vue&type=script&setup=true&lang.ts
|
|
18
18
|
var _hoisted_1 = {
|
|
19
19
|
type: "button",
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { createCommentVNode, createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
4
|
//#region src/components/hint-text/hint-text.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["role"];
|
|
6
6
|
var _hoisted_2 = { key: 1 };
|
|
@@ -25,7 +25,7 @@ var hint_text_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
25
25
|
return (_ctx, _cache) => {
|
|
26
26
|
return openBlock(), createElementBlock("div", {
|
|
27
27
|
role: props.state === "error" ? "alert" : "note",
|
|
28
|
-
class: normalizeClass(unref(clsx)("celeste-hint-text", `celeste-hint-text-${__props.state}`, props.class))
|
|
28
|
+
class: normalizeClass(unref(clsx$1)("celeste-hint-text", `celeste-hint-text-${__props.state}`, props.class))
|
|
29
29
|
}, [__props.icon ? (openBlock(), createElementBlock("i", {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: normalizeClass(__props.icon)
|
|
@@ -1,10 +1,9 @@
|
|
|
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 Label_default } from "./Label.js";
|
|
5
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
3
|
import { t as tooltip_default } from "./tooltip.js";
|
|
7
4
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
+
import clsx$1 from "clsx";
|
|
6
|
+
import { Label, Primitive } from "reka-ui";
|
|
8
7
|
//#region src/components/label/label.vue?vue&type=script&setup=true&lang.ts
|
|
9
8
|
var _hoisted_1 = {
|
|
10
9
|
key: 0,
|
|
@@ -34,10 +33,10 @@ var label_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
34
33
|
const props = __props;
|
|
35
34
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
36
35
|
return (_ctx, _cache) => {
|
|
37
|
-
return openBlock(), createBlock(unref(
|
|
36
|
+
return openBlock(), createBlock(unref(Label), mergeProps(unref(delegatedProps), {
|
|
38
37
|
"aria-required": __props.required,
|
|
39
38
|
"aria-disabled": __props.disabled,
|
|
40
|
-
class: unref(clsx)("celeste-label", props.class)
|
|
39
|
+
class: unref(clsx$1)("celeste-label", props.class)
|
|
41
40
|
}), {
|
|
42
41
|
default: withCtx(() => [
|
|
43
42
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
2
|
-
import { t as switch_default } from "./switch.js";
|
|
3
2
|
import { t as button_default } from "./button.js";
|
|
4
3
|
import { t as compact_button_default } from "./compact-button.js";
|
|
5
4
|
import { t as link_button_default } from "./link-button.js";
|
|
6
5
|
import { t as text_input_affix_default } from "./text-input-affix.js";
|
|
7
6
|
import { t as text_input_default } from "./text-input.js";
|
|
8
|
-
import { t as label_default } from "./
|
|
7
|
+
import { t as label_default } from "./label.js";
|
|
8
|
+
import { t as switch_default } from "./switch.js";
|
|
9
9
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, nextTick, onMounted, onUnmounted, openBlock, ref, toDisplayString, unref, withCtx, withKeys } from "vue";
|
|
10
10
|
//#region src/components/rich-editor/link-bubble.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var _hoisted_1 = {
|
|
@@ -30,7 +30,7 @@ var link_bubble_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
30
30
|
setup(__props, { emit: __emit }) {
|
|
31
31
|
const props = __props;
|
|
32
32
|
const emit = __emit;
|
|
33
|
-
const BubbleMenu = defineAsyncComponent(() => import("
|
|
33
|
+
const BubbleMenu = defineAsyncComponent(() => import("@tiptap/vue-3/menus").then((m) => m.BubbleMenu));
|
|
34
34
|
const href = ref("");
|
|
35
35
|
const openInNewTab = ref(false);
|
|
36
36
|
const editing = ref(false);
|
|
@@ -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
|
-
import { t as Primitive } from "./Primitive.js";
|
|
4
2
|
import { createBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { Primitive } from "reka-ui";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/components/button/link-button.vue
|
|
7
7
|
var link_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -28,7 +28,7 @@ var link_button_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
28
28
|
as: __props.as,
|
|
29
29
|
disabled: __props.disabled,
|
|
30
30
|
"as-child": __props.asChild,
|
|
31
|
-
class: normalizeClass(unref(clsx)("celeste-link-button", `celeste-link-button-${__props.intent}`, `celeste-link-button-${__props.size}`, __props.disabled && "celeste-link-button-disabled", __props.underline && "celeste-link-button-underline", props.class)),
|
|
31
|
+
class: normalizeClass(unref(clsx$1)("celeste-link-button", `celeste-link-button-${__props.intent}`, `celeste-link-button-${__props.size}`, __props.disabled && "celeste-link-button-disabled", __props.underline && "celeste-link-button-underline", props.class)),
|
|
32
32
|
role: __props.as === "a" ? "link" : "button"
|
|
33
33
|
}, {
|
|
34
34
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
package/dist/es/chunks/mochi.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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 { computed, createElementBlock, createElementVNode, defineComponent, mergeModels, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, unref, useCssVars, useModel, watch } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
4
|
//#region src/components/mochi/mochi.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _hoisted_1 = ["data-anim"];
|
|
6
6
|
var DROP_DURATION = 2010;
|
|
@@ -148,7 +148,7 @@ var mochi_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__
|
|
|
148
148
|
});
|
|
149
149
|
return (_ctx, _cache) => {
|
|
150
150
|
return openBlock(), createElementBlock("div", {
|
|
151
|
-
class: normalizeClass(unref(clsx)("celeste-mochi", peek.value && `celeste-mochi-peek-${peek.value}`, props.thinking && "celeste-mochi-thinking", props.class)),
|
|
151
|
+
class: normalizeClass(unref(clsx$1)("celeste-mochi", peek.value && `celeste-mochi-peek-${peek.value}`, props.thinking && "celeste-mochi-thinking", props.class)),
|
|
152
152
|
"data-anim": anim.value || void 0,
|
|
153
153
|
"aria-hidden": "true"
|
|
154
154
|
}, [createElementVNode("div", { class: "celeste-mochi-stage" }, [createElementVNode("div", { class: "celeste-mochi-chan" }, [createElementVNode("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { createElementBlock, defineComponent, normalizeClass, openBlock, renderSlot, unref } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/modal/modal-body.vue
|
|
6
6
|
var modal_body_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -15,7 +15,7 @@ var modal_body_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
15
15
|
setup(__props) {
|
|
16
16
|
const props = __props;
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(clsx)("celeste-modal-body", props.class)) }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2);
|
|
18
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(clsx$1)("celeste-modal-body", props.class)) }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
}), [["__scopeId", "data-v-8872ed90"]]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as DialogClose_default } from "./DialogClose.js";
|
|
2
1
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { DialogClose } from "reka-ui";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/components/modal/modal-close.vue
|
|
5
5
|
var modal_close_default = /* @__PURE__ */ defineComponent({
|
|
@@ -11,7 +11,7 @@ var modal_close_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(DialogClose), mergeProps(props, { "as-child": "" }), {
|
|
15
15
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
16
16
|
_: 3
|
|
17
17
|
}, 16);
|
|
@@ -1,10 +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 useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
4
|
-
import { n as injectDialogRootContext } from "./DialogRoot.js";
|
|
5
|
-
import { n as DialogOverlay_default, r as DialogContent_default, t as DialogPortal_default } from "./DialogPortal.js";
|
|
6
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
7
3
|
import { Transition, createBlock, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { DialogContent, DialogOverlay, DialogPortal, injectDialogRootContext, useForwardPropsEmits } from "reka-ui";
|
|
8
6
|
//#endregion
|
|
9
7
|
//#region src/components/modal/modal-content.vue
|
|
10
8
|
var modal_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -44,10 +42,10 @@ var modal_content_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
44
42
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
45
43
|
const root = injectDialogRootContext();
|
|
46
44
|
return (_ctx, _cache) => {
|
|
47
|
-
return openBlock(), createBlock(unref(
|
|
48
|
-
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(root).modal.value ? unref(
|
|
45
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
46
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(root).modal.value ? unref(DialogOverlay) : "div"), { class: normalizeClass(unref(root).modal.value ? "celeste-modal-overlay" : "celeste-modal-viewport") }, {
|
|
49
47
|
default: withCtx(() => [createVNode(Transition, { name: "fade" }, {
|
|
50
|
-
default: withCtx(() => [createVNode(unref(
|
|
48
|
+
default: withCtx(() => [createVNode(unref(DialogContent), mergeProps(unref(forwarded), { class: unref(clsx$1)("celeste-modal-content", props.class) }), {
|
|
51
49
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
52
50
|
_: 3
|
|
53
51
|
}, 16, ["class"])]),
|