@youcan/celeste 0.21.1 → 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 +3054 -3050
- 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 +12 -10
- 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 +4 -4
- 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/text-input/text-input.vue +21 -14
- 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,64 +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 useId } from "./useId.js";
|
|
5
|
-
import { t as PopperAnchor_default } from "./PopperAnchor.js";
|
|
6
|
-
import { n as injectPopoverRootContext } from "./PopoverRoot.js";
|
|
7
|
-
import { createBlock, createVNode, defineComponent, mergeProps, onMounted, openBlock, renderSlot, resolveDynamicComponent, unref, withCtx } from "vue";
|
|
8
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js
|
|
9
|
-
var PopoverTrigger_default = /* @__PURE__ */ defineComponent({
|
|
10
|
-
__name: "PopoverTrigger",
|
|
11
|
-
props: {
|
|
12
|
-
asChild: {
|
|
13
|
-
type: Boolean,
|
|
14
|
-
required: false
|
|
15
|
-
},
|
|
16
|
-
as: {
|
|
17
|
-
type: null,
|
|
18
|
-
required: false,
|
|
19
|
-
default: "button"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(__props) {
|
|
23
|
-
const props = __props;
|
|
24
|
-
const rootContext = injectPopoverRootContext();
|
|
25
|
-
const { forwardRef, currentElement: triggerElement } = useForwardExpose();
|
|
26
|
-
rootContext.triggerId ||= useId(void 0, "reka-popover-trigger");
|
|
27
|
-
rootContext.contentId ||= useId(void 0, "reka-popover-content");
|
|
28
|
-
onMounted(() => {
|
|
29
|
-
rootContext.triggerElement.value = triggerElement.value;
|
|
30
|
-
});
|
|
31
|
-
return (_ctx, _cache) => {
|
|
32
|
-
return openBlock(), createBlock(resolveDynamicComponent(unref(rootContext).hasCustomAnchor.value ? unref(Primitive) : unref(PopperAnchor_default)), { "as-child": "" }, {
|
|
33
|
-
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
34
|
-
id: unref(rootContext).triggerId,
|
|
35
|
-
ref: unref(forwardRef),
|
|
36
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
37
|
-
"aria-haspopup": "dialog",
|
|
38
|
-
"aria-expanded": unref(rootContext).open.value,
|
|
39
|
-
"aria-controls": unref(rootContext).open.value ? unref(rootContext).contentId : void 0,
|
|
40
|
-
"data-state": unref(rootContext).open.value ? "open" : "closed",
|
|
41
|
-
as: _ctx.as,
|
|
42
|
-
"as-child": props.asChild,
|
|
43
|
-
onClick: unref(rootContext).onOpenToggle
|
|
44
|
-
}, {
|
|
45
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
46
|
-
_: 3
|
|
47
|
-
}, 8, [
|
|
48
|
-
"id",
|
|
49
|
-
"type",
|
|
50
|
-
"aria-expanded",
|
|
51
|
-
"aria-controls",
|
|
52
|
-
"data-state",
|
|
53
|
-
"as",
|
|
54
|
-
"as-child",
|
|
55
|
-
"onClick"
|
|
56
|
-
])]),
|
|
57
|
-
_: 3
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
2
|
+
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
3
|
+
import { PopoverTrigger } from "reka-ui";
|
|
62
4
|
//#endregion
|
|
63
5
|
//#region src/components/popover/popover-trigger.vue
|
|
64
6
|
var popover_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -70,7 +12,7 @@ var popover_trigger_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
70
12
|
setup(__props) {
|
|
71
13
|
const props = __props;
|
|
72
14
|
return (_ctx, _cache) => {
|
|
73
|
-
return openBlock(), createBlock(unref(
|
|
15
|
+
return openBlock(), createBlock(unref(PopoverTrigger), mergeProps({ class: "celeste-popover-trigger" }, props, { as: "div" }), {
|
|
74
16
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
75
17
|
_: 3
|
|
76
18
|
}, 16);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
2
|
-
import { t as PopoverRoot_default } from "./PopoverRoot.js";
|
|
3
1
|
import { createBlock, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
2
|
+
import { PopoverRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
3
|
//#endregion
|
|
5
4
|
//#region src/components/popover/popover.vue
|
|
6
5
|
var popover_default = /* @__PURE__ */ defineComponent({
|
|
@@ -14,7 +13,7 @@ var popover_default = /* @__PURE__ */ defineComponent({
|
|
|
14
13
|
setup(__props, { emit: __emit }) {
|
|
15
14
|
const forwarded = useForwardPropsEmits(__props, __emit);
|
|
16
15
|
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createBlock(unref(
|
|
16
|
+
return openBlock(), createBlock(unref(PopoverRoot), normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
18
17
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
19
18
|
_: 3
|
|
20
19
|
}, 16);
|
|
@@ -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 { n as ProgressRoot_default, t as ProgressIndicator_default } from "./ProgressIndicator.js";
|
|
4
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
5
3
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, useCssVars, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { ProgressIndicator, ProgressRoot } from "reka-ui";
|
|
6
6
|
//#region src/components/progress/progress-bar.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = ["data-layout"];
|
|
8
8
|
var _hoisted_2 = {
|
|
@@ -58,8 +58,8 @@ var progress_bar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
58
58
|
"data-layout": __props.layout
|
|
59
59
|
}, [
|
|
60
60
|
__props.layout !== "bare" ? (openBlock(), createElementBlock("div", _hoisted_2, [props.title && __props.layout !== "inline" ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.title), 1)) : createCommentVNode("", true), createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(progress.value) + "% ", 1)], true)])])) : createCommentVNode("", true),
|
|
61
|
-
createVNode(unref(
|
|
62
|
-
default: withCtx(() => [createVNode(unref(
|
|
61
|
+
createVNode(unref(ProgressRoot), mergeProps(unref(delegatedProps), { class: unref(clsx$1)("celeste-progress-bar", props.class) }), {
|
|
62
|
+
default: withCtx(() => [createVNode(unref(ProgressIndicator), {
|
|
63
63
|
class: "celeste-progress-bar-indicator",
|
|
64
64
|
"data-color": __props.color
|
|
65
65
|
}, null, 8, ["data-color"])]),
|
|
@@ -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 { n as ProgressRoot_default, t as ProgressIndicator_default } from "./ProgressIndicator.js";
|
|
4
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
5
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, toDisplayString, unref, useCssVars, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { ProgressIndicator, ProgressRoot } from "reka-ui";
|
|
6
6
|
//#region src/components/progress/progress-circle.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var _hoisted_1 = ["width", "height"];
|
|
8
8
|
var _hoisted_2 = [
|
|
@@ -58,12 +58,12 @@ var progress_circle_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
58
58
|
});
|
|
59
59
|
const circleSize = computed(() => `${props.size}px`);
|
|
60
60
|
return (_ctx, _cache) => {
|
|
61
|
-
return openBlock(), createBlock(unref(
|
|
61
|
+
return openBlock(), createBlock(unref(ProgressRoot), mergeProps(unref(delegatedProps), {
|
|
62
62
|
value: props.modelValue,
|
|
63
|
-
class: unref(clsx)("celeste-progress-circle", props.class),
|
|
63
|
+
class: unref(clsx$1)("celeste-progress-circle", props.class),
|
|
64
64
|
as: "div"
|
|
65
65
|
}), {
|
|
66
|
-
default: withCtx(() => [createVNode(unref(
|
|
66
|
+
default: withCtx(() => [createVNode(unref(ProgressIndicator), { "as-child": "" }, {
|
|
67
67
|
default: withCtx(() => [(openBlock(), createElementBlock("svg", {
|
|
68
68
|
class: "celeste-progress-circle-svg",
|
|
69
69
|
width: props.size,
|
|
@@ -1,9 +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 Label_default } from "./Label.js";
|
|
5
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
3
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { Label, Primitive } from "reka-ui";
|
|
7
6
|
//#region src/components/radio-group/radio-group-card.vue?vue&type=script&setup=true&lang.ts
|
|
8
7
|
var _hoisted_1 = { class: "celeste-radio-card-content" };
|
|
9
8
|
var _hoisted_2 = { role: "presentation" };
|
|
@@ -33,10 +32,10 @@ var radio_group_card_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
33
32
|
const props = __props;
|
|
34
33
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
35
34
|
return (_ctx, _cache) => {
|
|
36
|
-
return openBlock(), createBlock(unref(
|
|
35
|
+
return openBlock(), createBlock(unref(Label), mergeProps(unref(delegatedProps), {
|
|
37
36
|
"aria-required": __props.required,
|
|
38
37
|
"aria-disabled": __props.disabled,
|
|
39
|
-
class: unref(clsx)("celeste-radio-card", props.class, { "celeste-radio-card-disabled": __props.disabled })
|
|
38
|
+
class: unref(clsx$1)("celeste-radio-card", props.class, { "celeste-radio-card-disabled": __props.disabled })
|
|
40
39
|
}), {
|
|
41
40
|
default: withCtx(() => [
|
|
42
41
|
_ctx.$slots.image || _ctx.$slots.icon ? (openBlock(), createElementBlock("div", {
|
|
@@ -1,304 +1,7 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
|
-
import { t as isEqual } from "./ohash.D__AXeF1.js";
|
|
3
|
-
import { t as createContext } from "./createContext.js";
|
|
4
|
-
import { t as handleAndDispatchCustomEvent } from "./handleAndDispatchCustomEvent.js";
|
|
5
|
-
import { p as useVModel, s as useEventListener } from "./dist2.js";
|
|
6
|
-
import { t as Primitive } from "./Primitive.js";
|
|
7
|
-
import { t as useFormControl } from "./useFormControl.js";
|
|
8
|
-
import { t as useForwardExpose } from "./useForwardExpose.js";
|
|
9
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
10
|
-
import { t as useForwardScopeId } from "./useForwardScopeId.js";
|
|
11
|
-
import { t as Presence_default } from "./Presence.js";
|
|
12
|
-
import { t as VisuallyHiddenInput_default } from "./VisuallyHiddenInput.js";
|
|
13
|
-
import { t as RovingFocusItem_default } from "./RovingFocusItem.js";
|
|
14
|
-
import { n as injectRadioGroupRootContext } from "./RadioGroupRoot.js";
|
|
15
1
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function handleSelect(event, value, callback) {
|
|
20
|
-
handleAndDispatchCustomEvent(RADIO_SELECT, callback, {
|
|
21
|
-
originalEvent: event,
|
|
22
|
-
value
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/Radio.js
|
|
27
|
-
var Radio_default = /* @__PURE__ */ defineComponent({
|
|
28
|
-
inheritAttrs: false,
|
|
29
|
-
__name: "Radio",
|
|
30
|
-
props: {
|
|
31
|
-
id: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: false
|
|
34
|
-
},
|
|
35
|
-
value: {
|
|
36
|
-
type: null,
|
|
37
|
-
required: false
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
required: false,
|
|
42
|
-
default: false
|
|
43
|
-
},
|
|
44
|
-
checked: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
required: false,
|
|
47
|
-
default: void 0
|
|
48
|
-
},
|
|
49
|
-
asChild: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
required: false
|
|
52
|
-
},
|
|
53
|
-
as: {
|
|
54
|
-
type: null,
|
|
55
|
-
required: false,
|
|
56
|
-
default: "button"
|
|
57
|
-
},
|
|
58
|
-
name: {
|
|
59
|
-
type: String,
|
|
60
|
-
required: false
|
|
61
|
-
},
|
|
62
|
-
required: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
required: false
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
emits: ["update:checked", "select"],
|
|
68
|
-
setup(__props, { emit: __emit }) {
|
|
69
|
-
const props = __props;
|
|
70
|
-
const emits = __emit;
|
|
71
|
-
const checked = useVModel(props, "checked", emits, { passive: props.checked === void 0 });
|
|
72
|
-
const { value } = toRefs(props);
|
|
73
|
-
const { forwardRef, currentElement: triggerElement } = useForwardExpose();
|
|
74
|
-
const isFormControl = useFormControl(triggerElement);
|
|
75
|
-
const scopeIdAttrs = useForwardScopeId();
|
|
76
|
-
const ariaLabel = computed(() => props.id && triggerElement.value ? document.querySelector(`[for="${props.id}"]`)?.innerText : void 0);
|
|
77
|
-
function handleClick(event) {
|
|
78
|
-
if (props.disabled) return;
|
|
79
|
-
handleSelect(event, props.value, (ev) => {
|
|
80
|
-
emits("select", ev);
|
|
81
|
-
if (ev?.defaultPrevented) return;
|
|
82
|
-
checked.value = true;
|
|
83
|
-
if (isFormControl.value) ev.stopPropagation();
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return (_ctx, _cache) => {
|
|
87
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(unref(Primitive), mergeProps({
|
|
88
|
-
id: _ctx.id,
|
|
89
|
-
ref: unref(forwardRef),
|
|
90
|
-
role: "radio",
|
|
91
|
-
type: _ctx.as === "button" ? "button" : void 0,
|
|
92
|
-
as: _ctx.as,
|
|
93
|
-
"aria-checked": unref(checked) ?? false,
|
|
94
|
-
"aria-label": ariaLabel.value,
|
|
95
|
-
"as-child": _ctx.asChild,
|
|
96
|
-
disabled: _ctx.disabled ? "" : void 0,
|
|
97
|
-
"data-state": unref(checked) ? "checked" : "unchecked",
|
|
98
|
-
"data-disabled": _ctx.disabled ? "" : void 0,
|
|
99
|
-
value: unref(value),
|
|
100
|
-
required: _ctx.required,
|
|
101
|
-
name: _ctx.name
|
|
102
|
-
}, {
|
|
103
|
-
...unref(scopeIdAttrs),
|
|
104
|
-
..._ctx.$attrs
|
|
105
|
-
}, { onClick: withModifiers(handleClick, ["stop"]) }), {
|
|
106
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", { checked: unref(checked) })]),
|
|
107
|
-
_: 3
|
|
108
|
-
}, 16, [
|
|
109
|
-
"id",
|
|
110
|
-
"type",
|
|
111
|
-
"as",
|
|
112
|
-
"aria-checked",
|
|
113
|
-
"aria-label",
|
|
114
|
-
"as-child",
|
|
115
|
-
"disabled",
|
|
116
|
-
"data-state",
|
|
117
|
-
"data-disabled",
|
|
118
|
-
"value",
|
|
119
|
-
"required",
|
|
120
|
-
"name"
|
|
121
|
-
]), unref(isFormControl) && _ctx.name ? (openBlock(), createBlock(unref(VisuallyHiddenInput_default), mergeProps({
|
|
122
|
-
key: 0,
|
|
123
|
-
type: "radio",
|
|
124
|
-
tabindex: "-1",
|
|
125
|
-
value: unref(value),
|
|
126
|
-
checked: !!unref(checked),
|
|
127
|
-
name: _ctx.name,
|
|
128
|
-
disabled: _ctx.disabled,
|
|
129
|
-
required: _ctx.required
|
|
130
|
-
}, unref(scopeIdAttrs)), null, 16, [
|
|
131
|
-
"value",
|
|
132
|
-
"checked",
|
|
133
|
-
"name",
|
|
134
|
-
"disabled",
|
|
135
|
-
"required"
|
|
136
|
-
])) : createCommentVNode("v-if", true)], 64);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/RadioGroupItem.js
|
|
142
|
-
var [injectRadioGroupItemContext, provideRadiogroupItemContext] = /*#__PURE__*/ createContext("RadioGroupItem");
|
|
143
|
-
var RadioGroupItem_default = /* @__PURE__ */ defineComponent({
|
|
144
|
-
inheritAttrs: false,
|
|
145
|
-
__name: "RadioGroupItem",
|
|
146
|
-
props: {
|
|
147
|
-
id: {
|
|
148
|
-
type: String,
|
|
149
|
-
required: false
|
|
150
|
-
},
|
|
151
|
-
value: {
|
|
152
|
-
type: null,
|
|
153
|
-
required: false
|
|
154
|
-
},
|
|
155
|
-
disabled: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
required: false,
|
|
158
|
-
default: false
|
|
159
|
-
},
|
|
160
|
-
asChild: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
required: false
|
|
163
|
-
},
|
|
164
|
-
as: {
|
|
165
|
-
type: null,
|
|
166
|
-
required: false,
|
|
167
|
-
default: "button"
|
|
168
|
-
},
|
|
169
|
-
name: {
|
|
170
|
-
type: String,
|
|
171
|
-
required: false
|
|
172
|
-
},
|
|
173
|
-
required: {
|
|
174
|
-
type: Boolean,
|
|
175
|
-
required: false
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
emits: ["select"],
|
|
179
|
-
setup(__props, { emit: __emit }) {
|
|
180
|
-
const props = __props;
|
|
181
|
-
const emits = __emit;
|
|
182
|
-
const { forwardRef, currentElement } = useForwardExpose();
|
|
183
|
-
const rootContext = injectRadioGroupRootContext();
|
|
184
|
-
const disabled = computed(() => rootContext.disabled.value || props.disabled);
|
|
185
|
-
const required = computed(() => rootContext.required.value || props.required);
|
|
186
|
-
const checked = computed(() => isEqual(rootContext.modelValue?.value, props.value));
|
|
187
|
-
provideRadiogroupItemContext({
|
|
188
|
-
disabled,
|
|
189
|
-
checked
|
|
190
|
-
});
|
|
191
|
-
const isArrowKeyPressed = ref(false);
|
|
192
|
-
const ARROW_KEYS = [
|
|
193
|
-
"ArrowUp",
|
|
194
|
-
"ArrowDown",
|
|
195
|
-
"ArrowLeft",
|
|
196
|
-
"ArrowRight"
|
|
197
|
-
];
|
|
198
|
-
useEventListener("keydown", (event) => {
|
|
199
|
-
if (ARROW_KEYS.includes(event.key)) isArrowKeyPressed.value = true;
|
|
200
|
-
});
|
|
201
|
-
useEventListener("keyup", () => {
|
|
202
|
-
isArrowKeyPressed.value = false;
|
|
203
|
-
});
|
|
204
|
-
function handleFocus() {
|
|
205
|
-
setTimeout(() => {
|
|
206
|
-
/**
|
|
207
|
-
* Our `RovingFocusGroup` will focus the radio when navigating with arrow keys
|
|
208
|
-
* and we need to 'check' it in that case. We click it to 'check' it (instead
|
|
209
|
-
* of updating `context.value`) so that the radio change event fires.
|
|
210
|
-
*/
|
|
211
|
-
if (isArrowKeyPressed.value) currentElement.value?.click();
|
|
212
|
-
}, 0);
|
|
213
|
-
}
|
|
214
|
-
const scopeIdAttrs = useForwardScopeId();
|
|
215
|
-
return (_ctx, _cache) => {
|
|
216
|
-
return openBlock(), createBlock(unref(RovingFocusItem_default), {
|
|
217
|
-
checked: checked.value,
|
|
218
|
-
disabled: disabled.value,
|
|
219
|
-
"as-child": "",
|
|
220
|
-
focusable: !disabled.value,
|
|
221
|
-
active: checked.value
|
|
222
|
-
}, {
|
|
223
|
-
default: withCtx(() => [createVNode(Radio_default, mergeProps({
|
|
224
|
-
...unref(scopeIdAttrs),
|
|
225
|
-
..._ctx.$attrs,
|
|
226
|
-
...props
|
|
227
|
-
}, {
|
|
228
|
-
ref: unref(forwardRef),
|
|
229
|
-
checked: checked.value,
|
|
230
|
-
required: required.value,
|
|
231
|
-
disabled: disabled.value,
|
|
232
|
-
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => unref(rootContext).changeModelValue(_ctx.value)),
|
|
233
|
-
onSelect: _cache[1] || (_cache[1] = ($event) => emits("select", $event)),
|
|
234
|
-
onKeydown: _cache[2] || (_cache[2] = withKeys(withModifiers(() => {}, ["prevent"]), ["enter"])),
|
|
235
|
-
onFocus: handleFocus
|
|
236
|
-
}), {
|
|
237
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {
|
|
238
|
-
checked: checked.value,
|
|
239
|
-
required: required.value,
|
|
240
|
-
disabled: disabled.value
|
|
241
|
-
})]),
|
|
242
|
-
_: 3
|
|
243
|
-
}, 16, [
|
|
244
|
-
"checked",
|
|
245
|
-
"required",
|
|
246
|
-
"disabled"
|
|
247
|
-
])]),
|
|
248
|
-
_: 3
|
|
249
|
-
}, 8, [
|
|
250
|
-
"checked",
|
|
251
|
-
"disabled",
|
|
252
|
-
"focusable",
|
|
253
|
-
"active"
|
|
254
|
-
]);
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/RadioGroup/RadioGroupIndicator.js
|
|
260
|
-
var RadioGroupIndicator_default = /* @__PURE__ */ defineComponent({
|
|
261
|
-
__name: "RadioGroupIndicator",
|
|
262
|
-
props: {
|
|
263
|
-
forceMount: {
|
|
264
|
-
type: Boolean,
|
|
265
|
-
required: false
|
|
266
|
-
},
|
|
267
|
-
asChild: {
|
|
268
|
-
type: Boolean,
|
|
269
|
-
required: false
|
|
270
|
-
},
|
|
271
|
-
as: {
|
|
272
|
-
type: null,
|
|
273
|
-
required: false,
|
|
274
|
-
default: "span"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
setup(__props) {
|
|
278
|
-
const { forwardRef } = useForwardExpose();
|
|
279
|
-
const itemContext = injectRadioGroupItemContext();
|
|
280
|
-
return (_ctx, _cache) => {
|
|
281
|
-
return openBlock(), createBlock(unref(Presence_default), { present: _ctx.forceMount || unref(itemContext).checked.value }, {
|
|
282
|
-
default: withCtx(() => [createVNode(unref(Primitive), mergeProps({
|
|
283
|
-
ref: unref(forwardRef),
|
|
284
|
-
"data-state": unref(itemContext).checked.value ? "checked" : "unchecked",
|
|
285
|
-
"data-disabled": unref(itemContext).disabled.value ? "" : void 0,
|
|
286
|
-
"as-child": _ctx.asChild,
|
|
287
|
-
as: _ctx.as
|
|
288
|
-
}, _ctx.$attrs), {
|
|
289
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
290
|
-
_: 3
|
|
291
|
-
}, 16, [
|
|
292
|
-
"data-state",
|
|
293
|
-
"data-disabled",
|
|
294
|
-
"as-child",
|
|
295
|
-
"as"
|
|
296
|
-
])]),
|
|
297
|
-
_: 3
|
|
298
|
-
}, 8, ["present"]);
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
});
|
|
2
|
+
import { createBlock, createVNode, defineComponent, mergeProps, openBlock, unref, withCtx } from "vue";
|
|
3
|
+
import clsx$1 from "clsx";
|
|
4
|
+
import { RadioGroupIndicator, RadioGroupItem, useForwardPropsEmits } from "reka-ui";
|
|
302
5
|
//#endregion
|
|
303
6
|
//#region src/components/radio-group/radio-group-item.vue
|
|
304
7
|
var radio_group_item_default = /* @__PURE__ */ defineComponent({
|
|
@@ -324,8 +27,8 @@ var radio_group_item_default = /* @__PURE__ */ defineComponent({
|
|
|
324
27
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
325
28
|
const forwarded = useForwardPropsEmits(delegatedProps);
|
|
326
29
|
return (_ctx, _cache) => {
|
|
327
|
-
return openBlock(), createBlock(unref(
|
|
328
|
-
default: withCtx(() => [createVNode(unref(
|
|
30
|
+
return openBlock(), createBlock(unref(RadioGroupItem), mergeProps(unref(forwarded), { class: unref(clsx$1)("celeste-radio-item", props.class) }), {
|
|
31
|
+
default: withCtx(() => [createVNode(unref(RadioGroupIndicator), { class: "celeste-radio-indicator" })]),
|
|
329
32
|
_: 1
|
|
330
33
|
}, 16, ["class"]);
|
|
331
34
|
};
|
|
@@ -1,9 +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 Label_default } from "./Label.js";
|
|
5
2
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
6
3
|
import { createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { Label, Primitive } from "reka-ui";
|
|
7
6
|
//#region src/components/radio-group/radio-group-label.vue?vue&type=script&setup=true&lang.ts
|
|
8
7
|
var _hoisted_1 = { role: "presentation" };
|
|
9
8
|
var _hoisted_2 = {
|
|
@@ -36,10 +35,10 @@ var radio_group_label_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
|
|
|
36
35
|
const props = __props;
|
|
37
36
|
const delegatedProps = useDelegatedProps(props, "class");
|
|
38
37
|
return (_ctx, _cache) => {
|
|
39
|
-
return openBlock(), createBlock(unref(
|
|
38
|
+
return openBlock(), createBlock(unref(Label), mergeProps(unref(delegatedProps), {
|
|
40
39
|
"aria-required": __props.required,
|
|
41
40
|
"aria-disabled": __props.disabled,
|
|
42
|
-
class: unref(clsx)("celeste-radio-label", props.class)
|
|
41
|
+
class: unref(clsx$1)("celeste-radio-label", props.class)
|
|
43
42
|
}), {
|
|
44
43
|
default: withCtx(() => [createVNode(unref(Primitive), {
|
|
45
44
|
"as-child": "",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as clsx } from "./clsx.js";
|
|
2
|
-
import { t as useForwardPropsEmits } from "./useForwardPropsEmits.js";
|
|
3
|
-
import { t as RadioGroupRoot_default } from "./RadioGroupRoot.js";
|
|
4
1
|
import { useDelegatedProps } from "../use-delegated-props.js";
|
|
5
2
|
import { useDirection } from "../use-direction.js";
|
|
6
3
|
import { createBlock, defineComponent, mergeProps, openBlock, renderSlot, unref, withCtx } from "vue";
|
|
4
|
+
import clsx$1 from "clsx";
|
|
5
|
+
import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
7
6
|
//#endregion
|
|
8
7
|
//#region src/components/radio-group/radio-group.vue
|
|
9
8
|
var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
@@ -35,7 +34,7 @@ var radio_group_default = /* @__PURE__ */ defineComponent({
|
|
|
35
34
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
36
35
|
const dir = useDirection(() => props.dir);
|
|
37
36
|
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(unref(
|
|
37
|
+
return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps({ class: unref(clsx$1)("celeste-radio-wrapper", props.class) }, unref(forwarded), { dir: unref(dir) }), {
|
|
39
38
|
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
40
39
|
_: 3
|
|
41
40
|
}, 16, ["class", "dir"]);
|