@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,141 +0,0 @@
|
|
|
1
|
-
import { t as usePrimitiveElement } from "./usePrimitiveElement.js";
|
|
2
|
-
import { t as VisuallyHidden_default } from "./VisuallyHidden.js";
|
|
3
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList, watch } from "vue";
|
|
4
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js
|
|
5
|
-
var VisuallyHiddenInputBubble_default = /* @__PURE__ */ defineComponent({
|
|
6
|
-
inheritAttrs: false,
|
|
7
|
-
__name: "VisuallyHiddenInputBubble",
|
|
8
|
-
props: {
|
|
9
|
-
name: {
|
|
10
|
-
type: String,
|
|
11
|
-
required: true
|
|
12
|
-
},
|
|
13
|
-
value: {
|
|
14
|
-
type: null,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
checked: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
required: false,
|
|
20
|
-
default: void 0
|
|
21
|
-
},
|
|
22
|
-
required: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
required: false
|
|
25
|
-
},
|
|
26
|
-
disabled: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
required: false
|
|
29
|
-
},
|
|
30
|
-
feature: {
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
33
|
-
default: "fully-hidden"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
setup(__props) {
|
|
37
|
-
const props = __props;
|
|
38
|
-
const { primitiveElement, currentElement } = usePrimitiveElement();
|
|
39
|
-
const valueState = computed(() => props.checked ?? props.value);
|
|
40
|
-
watch(valueState, (cur, prev) => {
|
|
41
|
-
if (!currentElement.value) return;
|
|
42
|
-
const input = currentElement.value;
|
|
43
|
-
const inputProto = window.HTMLInputElement.prototype;
|
|
44
|
-
const setValue = Object.getOwnPropertyDescriptor(inputProto, "value").set;
|
|
45
|
-
if (setValue && cur !== prev) {
|
|
46
|
-
const inputEvent = new Event("input", { bubbles: true });
|
|
47
|
-
const changeEvent = new Event("change", { bubbles: true });
|
|
48
|
-
setValue.call(input, cur);
|
|
49
|
-
input.dispatchEvent(inputEvent);
|
|
50
|
-
input.dispatchEvent(changeEvent);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createBlock(VisuallyHidden_default, mergeProps({
|
|
55
|
-
ref_key: "primitiveElement",
|
|
56
|
-
ref: primitiveElement
|
|
57
|
-
}, {
|
|
58
|
-
...props,
|
|
59
|
-
..._ctx.$attrs
|
|
60
|
-
}, { as: "input" }), null, 16);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js
|
|
66
|
-
var VisuallyHiddenInput_default = /* @__PURE__ */ defineComponent({
|
|
67
|
-
inheritAttrs: false,
|
|
68
|
-
__name: "VisuallyHiddenInput",
|
|
69
|
-
props: {
|
|
70
|
-
name: {
|
|
71
|
-
type: String,
|
|
72
|
-
required: true
|
|
73
|
-
},
|
|
74
|
-
value: {
|
|
75
|
-
type: null,
|
|
76
|
-
required: true
|
|
77
|
-
},
|
|
78
|
-
checked: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
required: false,
|
|
81
|
-
default: void 0
|
|
82
|
-
},
|
|
83
|
-
required: {
|
|
84
|
-
type: Boolean,
|
|
85
|
-
required: false
|
|
86
|
-
},
|
|
87
|
-
disabled: {
|
|
88
|
-
type: Boolean,
|
|
89
|
-
required: false
|
|
90
|
-
},
|
|
91
|
-
feature: {
|
|
92
|
-
type: String,
|
|
93
|
-
required: false,
|
|
94
|
-
default: "fully-hidden"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
setup(__props) {
|
|
98
|
-
const props = __props;
|
|
99
|
-
const isFormArrayEmptyAndRequired = computed(() => typeof props.value === "object" && Array.isArray(props.value) && props.value.length === 0 && props.required);
|
|
100
|
-
const parsedValue = computed(() => {
|
|
101
|
-
if (typeof props.value === "string" || typeof props.value === "number" || typeof props.value === "boolean" || props.value === null || props.value === void 0) return [{
|
|
102
|
-
name: props.name,
|
|
103
|
-
value: props.value
|
|
104
|
-
}];
|
|
105
|
-
else if (typeof props.value === "object" && Array.isArray(props.value)) return props.value.flatMap((obj, index) => {
|
|
106
|
-
if (typeof obj === "object") return Object.entries(obj).map(([key, value]) => ({
|
|
107
|
-
name: `${props.name}[${index}][${key}]`,
|
|
108
|
-
value
|
|
109
|
-
}));
|
|
110
|
-
else return {
|
|
111
|
-
name: `${props.name}[${index}]`,
|
|
112
|
-
value: obj
|
|
113
|
-
};
|
|
114
|
-
});
|
|
115
|
-
else if (props.value !== null && typeof props.value === "object" && !Array.isArray(props.value)) return Object.entries(props.value).map(([key, value]) => ({
|
|
116
|
-
name: `${props.name}[${key}]`,
|
|
117
|
-
value
|
|
118
|
-
}));
|
|
119
|
-
return [];
|
|
120
|
-
});
|
|
121
|
-
return (_ctx, _cache) => {
|
|
122
|
-
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" We render single input if it's required "), isFormArrayEmptyAndRequired.value ? (openBlock(), createBlock(VisuallyHiddenInputBubble_default, mergeProps({ key: _ctx.name }, {
|
|
123
|
-
...props,
|
|
124
|
-
..._ctx.$attrs
|
|
125
|
-
}, {
|
|
126
|
-
name: _ctx.name,
|
|
127
|
-
value: _ctx.value
|
|
128
|
-
}), null, 16, ["name", "value"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(parsedValue.value, (parsed) => {
|
|
129
|
-
return openBlock(), createBlock(VisuallyHiddenInputBubble_default, mergeProps({ key: parsed.name }, { ref_for: true }, {
|
|
130
|
-
...props,
|
|
131
|
-
..._ctx.$attrs
|
|
132
|
-
}, {
|
|
133
|
-
name: parsed.name,
|
|
134
|
-
value: parsed.value
|
|
135
|
-
}), null, 16, ["name", "value"]);
|
|
136
|
-
}), 128))], 2112);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
//#endregion
|
|
141
|
-
export { VisuallyHiddenInput_default as t };
|
package/dist/es/chunks/clamp.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/clamp.js
|
|
2
|
-
/**
|
|
3
|
-
* The `clamp` function restricts a number within a specified range by returning the value itself if it
|
|
4
|
-
* falls within the range, or the closest boundary value if it exceeds the range.
|
|
5
|
-
* @param {number} value - The `value` parameter represents the number that you want to clamp within
|
|
6
|
-
* the specified range defined by `min` and `max` values.
|
|
7
|
-
* @param {number} min - If the `value` parameter is less than the `min` value, the
|
|
8
|
-
* function will return the `min` value.
|
|
9
|
-
* @param {number} max - If the `value` parameter is greater than the `max` value,
|
|
10
|
-
* the function will return `max`.
|
|
11
|
-
* @returns The `clamp` function returns the value of `value` constrained within the range defined by
|
|
12
|
-
* `min` and `max`.
|
|
13
|
-
*/
|
|
14
|
-
function clamp(value, min = Number.NEGATIVE_INFINITY, max = Number.POSITIVE_INFINITY) {
|
|
15
|
-
return Math.min(max, Math.max(min, value));
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The function `roundToStepPrecision` rounds a number to a specified precision step.
|
|
19
|
-
* @param {number} value - The `value` parameter is the number that you want to round to a specific
|
|
20
|
-
* precision based on the `step` parameter.
|
|
21
|
-
* @param {number} step - The `step` parameter in the `roundToStepPrecision` function represents the
|
|
22
|
-
* interval at which you want to round the `value`. For example, if `step` is 0.5, the `value` will be
|
|
23
|
-
* rounded to the nearest half.
|
|
24
|
-
* @returns the `roundedValue` after rounding it to the precision specified by the `step`.
|
|
25
|
-
*/
|
|
26
|
-
function roundToStepPrecision(value, step) {
|
|
27
|
-
let roundedValue = value;
|
|
28
|
-
const stepString = step.toString();
|
|
29
|
-
const pointIndex = stepString.indexOf(".");
|
|
30
|
-
const precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
|
|
31
|
-
if (precision > 0) {
|
|
32
|
-
const pow = 10 ** precision;
|
|
33
|
-
roundedValue = Math.round(roundedValue * pow) / pow;
|
|
34
|
-
}
|
|
35
|
-
return roundedValue;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* The function `snapValueToStep` snaps a given value to the nearest step within a specified range.
|
|
39
|
-
* @param {number} value - The `value` parameter represents the number that you want to snap to the
|
|
40
|
-
* nearest step value.
|
|
41
|
-
* @param {number | undefined} min - The `min` parameter represents the minimum value that the `value`
|
|
42
|
-
* should be snapped to. If `value` is less than `min`, it will be snapped to `min`. If `min` is not
|
|
43
|
-
* provided (undefined), then the snapping will not consider a minimum value.
|
|
44
|
-
* @param {number | undefined} max - The `max` parameter represents the maximum value that the `value`
|
|
45
|
-
* should be snapped to. It ensures that the snapped value does not exceed this maximum value.
|
|
46
|
-
* @param {number} step - The `step` parameter in the `snapValueToStep` function represents the
|
|
47
|
-
* interval at which the `value` should be snapped to. It determines the granularity of the snapping
|
|
48
|
-
* operation. For example, if `step` is 5, the `value` will be snapped to the nearest multiple of
|
|
49
|
-
* @returns a number that has been snapped to the nearest step value within the specified range of minimum and maximum values.
|
|
50
|
-
*/
|
|
51
|
-
function snapValueToStep(value, min, max, step) {
|
|
52
|
-
min = Number(min);
|
|
53
|
-
max = Number(max);
|
|
54
|
-
const remainder = (value - (Number.isNaN(min) ? 0 : min)) % step;
|
|
55
|
-
let snappedValue = roundToStepPrecision(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);
|
|
56
|
-
if (!Number.isNaN(min)) {
|
|
57
|
-
if (snappedValue < min) snappedValue = min;
|
|
58
|
-
else if (!Number.isNaN(max) && snappedValue > max) snappedValue = min + Math.floor(roundToStepPrecision((max - min) / step, step)) * step;
|
|
59
|
-
} else if (!Number.isNaN(max) && snappedValue > max) snappedValue = Math.floor(roundToStepPrecision(max / step, step)) * step;
|
|
60
|
-
snappedValue = roundToStepPrecision(snappedValue, step);
|
|
61
|
-
return snappedValue;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { snapValueToStep as n, clamp as t };
|
package/dist/es/chunks/clsx.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
2
|
-
function r(e) {
|
|
3
|
-
var t, f, n = "";
|
|
4
|
-
if ("string" == typeof e || "number" == typeof e) n += e;
|
|
5
|
-
else if ("object" == typeof e) if (Array.isArray(e)) {
|
|
6
|
-
var o = e.length;
|
|
7
|
-
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
|
8
|
-
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function clsx() {
|
|
12
|
-
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
13
|
-
return n;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { clsx as t };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { inject, provide } from "vue";
|
|
2
|
-
//#region ../../node_modules/.pnpm/reka-ui@2.10.5_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/createContext.js
|
|
3
|
-
/**
|
|
4
|
-
* @param providerComponentName - The name(s) of the component(s) providing the context.
|
|
5
|
-
*
|
|
6
|
-
* There are situations where context can come from multiple components. In such cases, you might need to give an array of component names to provide your context, instead of just a single string.
|
|
7
|
-
*
|
|
8
|
-
* @param contextName The description for injection key symbol.
|
|
9
|
-
*/
|
|
10
|
-
function createContext(providerComponentName, contextName) {
|
|
11
|
-
const symbolDescription = typeof providerComponentName === "string" && !contextName ? `${providerComponentName}Context` : contextName;
|
|
12
|
-
const injectionKey = Symbol(symbolDescription);
|
|
13
|
-
/**
|
|
14
|
-
* @param fallback The context value to return if the injection fails.
|
|
15
|
-
*
|
|
16
|
-
* @throws When context injection failed and no fallback is specified.
|
|
17
|
-
* This happens when the component injecting the context is not a child of the root component providing the context.
|
|
18
|
-
*/
|
|
19
|
-
const injectContext = (fallback) => {
|
|
20
|
-
const context = inject(injectionKey, fallback);
|
|
21
|
-
if (context) return context;
|
|
22
|
-
if (context === null) return context;
|
|
23
|
-
throw new Error(`Injection \`${injectionKey.toString()}\` not found. Component must be used within ${Array.isArray(providerComponentName) ? `one of the following components: ${providerComponentName.join(", ")}` : `\`${providerComponentName}\``}`);
|
|
24
|
-
};
|
|
25
|
-
const provideContext = (contextValue) => {
|
|
26
|
-
provide(injectionKey, contextValue);
|
|
27
|
-
return contextValue;
|
|
28
|
-
};
|
|
29
|
-
return [injectContext, provideContext];
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { createContext as t };
|
package/dist/es/chunks/defu.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
|
|
2
|
-
function isPlainObject(value) {
|
|
3
|
-
if (value === null || typeof value !== "object") return false;
|
|
4
|
-
const prototype = Object.getPrototypeOf(value);
|
|
5
|
-
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
|
|
6
|
-
if (Symbol.iterator in value) return false;
|
|
7
|
-
if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
11
|
-
if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
|
|
12
|
-
const object = { ...defaults };
|
|
13
|
-
for (const key of Object.keys(baseObject)) {
|
|
14
|
-
if (key === "__proto__" || key === "constructor") continue;
|
|
15
|
-
const value = baseObject[key];
|
|
16
|
-
if (value === null || value === void 0) continue;
|
|
17
|
-
if (merger && merger(object, key, value, namespace)) continue;
|
|
18
|
-
if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
|
|
19
|
-
else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
|
|
20
|
-
else object[key] = value;
|
|
21
|
-
}
|
|
22
|
-
return object;
|
|
23
|
-
}
|
|
24
|
-
function createDefu(merger) {
|
|
25
|
-
return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
|
|
26
|
-
}
|
|
27
|
-
var defu = createDefu();
|
|
28
|
-
//#endregion
|
|
29
|
-
export { defu as t };
|
package/dist/es/chunks/dist.js
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import { computed, customRef, effectScope, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, isRef, nextTick, onBeforeUnmount, onMounted, onScopeDispose, reactive, shallowReadonly, shallowRef, toRefs, toValue, unref, watch } from "vue";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.4.0_vue@3.5.41_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
/**
|
|
4
|
-
* Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
|
|
5
|
-
*
|
|
6
|
-
* @param fn
|
|
7
|
-
*/
|
|
8
|
-
function tryOnScopeDispose(fn, failSilently) {
|
|
9
|
-
if (getCurrentScope()) {
|
|
10
|
-
onScopeDispose(fn, failSilently);
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Utility for creating event hooks
|
|
17
|
-
*
|
|
18
|
-
* @see https://vueuse.org/createEventHook
|
|
19
|
-
*
|
|
20
|
-
* @__NO_SIDE_EFFECTS__
|
|
21
|
-
*/
|
|
22
|
-
function createEventHook() {
|
|
23
|
-
const fns = /* @__PURE__ */ new Set();
|
|
24
|
-
const off = (fn) => {
|
|
25
|
-
fns.delete(fn);
|
|
26
|
-
};
|
|
27
|
-
const clear = () => {
|
|
28
|
-
fns.clear();
|
|
29
|
-
};
|
|
30
|
-
const on = (fn) => {
|
|
31
|
-
fns.add(fn);
|
|
32
|
-
const offFn = () => off(fn);
|
|
33
|
-
tryOnScopeDispose(offFn);
|
|
34
|
-
return { off: offFn };
|
|
35
|
-
};
|
|
36
|
-
const trigger = (...args) => {
|
|
37
|
-
return Promise.all(Array.from(fns).map((fn) => fn(...args)));
|
|
38
|
-
};
|
|
39
|
-
return {
|
|
40
|
-
on,
|
|
41
|
-
off,
|
|
42
|
-
trigger,
|
|
43
|
-
clear
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Keep states in the global scope to be reusable across Vue instances.
|
|
48
|
-
*
|
|
49
|
-
* @see https://vueuse.org/createGlobalState
|
|
50
|
-
* @param stateFactory A factory function to create the state
|
|
51
|
-
*
|
|
52
|
-
* @__NO_SIDE_EFFECTS__
|
|
53
|
-
*/
|
|
54
|
-
function createGlobalState(stateFactory) {
|
|
55
|
-
let initialized = false;
|
|
56
|
-
let state;
|
|
57
|
-
const scope = effectScope(true);
|
|
58
|
-
return ((...args) => {
|
|
59
|
-
if (!initialized) {
|
|
60
|
-
state = scope.run(() => stateFactory(...args));
|
|
61
|
-
initialized = true;
|
|
62
|
-
}
|
|
63
|
-
return state;
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
var localProvidedStateMap = /* @__PURE__ */ new WeakMap();
|
|
67
|
-
/**
|
|
68
|
-
* On the basis of `inject`, it is allowed to directly call inject to obtain the value after call provide in the same component.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* injectLocal('MyInjectionKey', 1)
|
|
73
|
-
* const injectedValue = injectLocal('MyInjectionKey') // injectedValue === 1
|
|
74
|
-
* ```
|
|
75
|
-
*
|
|
76
|
-
* @__NO_SIDE_EFFECTS__
|
|
77
|
-
*/
|
|
78
|
-
var injectLocal = (...args) => {
|
|
79
|
-
var _getCurrentInstance;
|
|
80
|
-
const key = args[0];
|
|
81
|
-
const instance = (_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy;
|
|
82
|
-
const owner = instance !== null && instance !== void 0 ? instance : getCurrentScope();
|
|
83
|
-
if (owner == null && !hasInjectionContext()) throw new Error("injectLocal must be called in setup");
|
|
84
|
-
if (owner && localProvidedStateMap.has(owner) && key in localProvidedStateMap.get(owner)) return localProvidedStateMap.get(owner)[key];
|
|
85
|
-
return inject(...args);
|
|
86
|
-
};
|
|
87
|
-
var isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
88
|
-
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
89
|
-
var isDef = (val) => typeof val !== "undefined";
|
|
90
|
-
var notNullish = (val) => val != null;
|
|
91
|
-
var toString = Object.prototype.toString;
|
|
92
|
-
var isObject = (val) => toString.call(val) === "[object Object]";
|
|
93
|
-
var noop = () => {};
|
|
94
|
-
var isIOS = /* #__PURE__ */ getIsIOS();
|
|
95
|
-
function getIsIOS() {
|
|
96
|
-
var _window, _window2, _window3;
|
|
97
|
-
return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
|
|
98
|
-
}
|
|
99
|
-
function createFilterWrapper(filter, fn) {
|
|
100
|
-
function wrapper(...args) {
|
|
101
|
-
return new Promise((resolve, reject) => {
|
|
102
|
-
Promise.resolve(filter(() => fn.apply(this, args), {
|
|
103
|
-
fn,
|
|
104
|
-
thisArg: this,
|
|
105
|
-
args
|
|
106
|
-
})).then(resolve).catch(reject);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
if ("cancel" in filter) Object.assign(wrapper, {
|
|
110
|
-
cancel: filter.cancel,
|
|
111
|
-
flush: filter.flush,
|
|
112
|
-
isPending: filter.isPending
|
|
113
|
-
});
|
|
114
|
-
return wrapper;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Create an EventFilter that debounce the events
|
|
118
|
-
*/
|
|
119
|
-
function debounceFilter(ms, options = {}) {
|
|
120
|
-
let timer;
|
|
121
|
-
let maxTimer;
|
|
122
|
-
let lastRejector = noop;
|
|
123
|
-
let lastResolve = noop;
|
|
124
|
-
const _pending = shallowRef(false);
|
|
125
|
-
const _clearTimeout = (timer) => {
|
|
126
|
-
clearTimeout(timer);
|
|
127
|
-
lastRejector();
|
|
128
|
-
lastRejector = noop;
|
|
129
|
-
};
|
|
130
|
-
let lastInvoker;
|
|
131
|
-
const handler = (invoke) => {
|
|
132
|
-
const duration = toValue(ms);
|
|
133
|
-
const maxDuration = toValue(options.maxWait);
|
|
134
|
-
if (timer) _clearTimeout(timer);
|
|
135
|
-
if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {
|
|
136
|
-
if (maxTimer) {
|
|
137
|
-
_clearTimeout(maxTimer);
|
|
138
|
-
maxTimer = void 0;
|
|
139
|
-
}
|
|
140
|
-
_pending.value = false;
|
|
141
|
-
return Promise.resolve(invoke());
|
|
142
|
-
}
|
|
143
|
-
_pending.value = true;
|
|
144
|
-
return new Promise((resolve, reject) => {
|
|
145
|
-
lastRejector = options.rejectOnCancel ? reject : resolve;
|
|
146
|
-
lastResolve = resolve;
|
|
147
|
-
lastInvoker = invoke;
|
|
148
|
-
if (maxDuration && !maxTimer) maxTimer = setTimeout(() => {
|
|
149
|
-
if (timer) _clearTimeout(timer);
|
|
150
|
-
maxTimer = void 0;
|
|
151
|
-
_pending.value = false;
|
|
152
|
-
resolve(lastInvoker());
|
|
153
|
-
}, maxDuration);
|
|
154
|
-
timer = setTimeout(() => {
|
|
155
|
-
if (maxTimer) _clearTimeout(maxTimer);
|
|
156
|
-
maxTimer = void 0;
|
|
157
|
-
_pending.value = false;
|
|
158
|
-
resolve(invoke());
|
|
159
|
-
}, duration);
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
return Object.assign(handler, {
|
|
163
|
-
cancel: () => {
|
|
164
|
-
if (timer) {
|
|
165
|
-
_clearTimeout(timer);
|
|
166
|
-
timer = void 0;
|
|
167
|
-
}
|
|
168
|
-
if (maxTimer) {
|
|
169
|
-
_clearTimeout(maxTimer);
|
|
170
|
-
maxTimer = void 0;
|
|
171
|
-
}
|
|
172
|
-
_pending.value = false;
|
|
173
|
-
lastResolve = noop;
|
|
174
|
-
},
|
|
175
|
-
flush: () => {
|
|
176
|
-
if (_pending.value) {
|
|
177
|
-
if (timer) {
|
|
178
|
-
clearTimeout(timer);
|
|
179
|
-
timer = void 0;
|
|
180
|
-
}
|
|
181
|
-
if (maxTimer) {
|
|
182
|
-
clearTimeout(maxTimer);
|
|
183
|
-
maxTimer = void 0;
|
|
184
|
-
}
|
|
185
|
-
_pending.value = false;
|
|
186
|
-
const resolve = lastResolve;
|
|
187
|
-
lastRejector = noop;
|
|
188
|
-
lastResolve = noop;
|
|
189
|
-
resolve(lastInvoker());
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
isPending: shallowReadonly(_pending)
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Get a px value for SSR use, do not rely on this method outside of SSR as REM unit is assumed at 16px, which might not be the case on the client
|
|
197
|
-
*/
|
|
198
|
-
function pxValue(px) {
|
|
199
|
-
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
200
|
-
}
|
|
201
|
-
function toArray(value) {
|
|
202
|
-
return Array.isArray(value) ? value : [value];
|
|
203
|
-
}
|
|
204
|
-
function getLifeCycleTarget(target) {
|
|
205
|
-
return target || getCurrentInstance();
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Make a composable function usable with multiple Vue instances.
|
|
209
|
-
*
|
|
210
|
-
* @see https://vueuse.org/createSharedComposable
|
|
211
|
-
*
|
|
212
|
-
* @__NO_SIDE_EFFECTS__
|
|
213
|
-
*/
|
|
214
|
-
function createSharedComposable(composable) {
|
|
215
|
-
if (!isClient) return composable;
|
|
216
|
-
let subscribers = 0;
|
|
217
|
-
let state;
|
|
218
|
-
let scope;
|
|
219
|
-
const dispose = () => {
|
|
220
|
-
subscribers -= 1;
|
|
221
|
-
if (scope && subscribers <= 0) {
|
|
222
|
-
scope.stop();
|
|
223
|
-
state = void 0;
|
|
224
|
-
scope = void 0;
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
return ((...args) => {
|
|
228
|
-
subscribers += 1;
|
|
229
|
-
if (!scope) {
|
|
230
|
-
scope = effectScope(true);
|
|
231
|
-
state = scope.run(() => composable(...args));
|
|
232
|
-
}
|
|
233
|
-
tryOnScopeDispose(dispose);
|
|
234
|
-
return state;
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Converts ref to reactive.
|
|
239
|
-
*
|
|
240
|
-
* @see https://vueuse.org/toReactive
|
|
241
|
-
* @param objectRef A ref of object
|
|
242
|
-
*/
|
|
243
|
-
function toReactive(objectRef) {
|
|
244
|
-
if (!isRef(objectRef)) return reactive(objectRef);
|
|
245
|
-
return reactive(new Proxy({}, {
|
|
246
|
-
get(_, p, receiver) {
|
|
247
|
-
return unref(Reflect.get(objectRef.value, p, receiver));
|
|
248
|
-
},
|
|
249
|
-
set(_, p, value) {
|
|
250
|
-
if (isRef(objectRef.value[p]) && !isRef(value)) objectRef.value[p].value = value;
|
|
251
|
-
else objectRef.value[p] = value;
|
|
252
|
-
return true;
|
|
253
|
-
},
|
|
254
|
-
deleteProperty(_, p) {
|
|
255
|
-
return Reflect.deleteProperty(objectRef.value, p);
|
|
256
|
-
},
|
|
257
|
-
has(_, p) {
|
|
258
|
-
return Reflect.has(objectRef.value, p);
|
|
259
|
-
},
|
|
260
|
-
ownKeys() {
|
|
261
|
-
return Object.keys(objectRef.value);
|
|
262
|
-
},
|
|
263
|
-
getOwnPropertyDescriptor() {
|
|
264
|
-
return {
|
|
265
|
-
enumerable: true,
|
|
266
|
-
configurable: true
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
}));
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Computed reactive object.
|
|
273
|
-
*/
|
|
274
|
-
function reactiveComputed(fn) {
|
|
275
|
-
return toReactive(computed(fn));
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Reactively omit fields from a reactive object
|
|
279
|
-
*
|
|
280
|
-
* @see https://vueuse.org/reactiveOmit
|
|
281
|
-
*/
|
|
282
|
-
function reactiveOmit(obj, ...keys) {
|
|
283
|
-
const flatKeys = keys.flat();
|
|
284
|
-
const predicate = flatKeys[0];
|
|
285
|
-
return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs(obj)).filter((e) => !flatKeys.includes(e[0]))));
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Create a ref which will be reset to the default value after some time.
|
|
289
|
-
*
|
|
290
|
-
* @see https://vueuse.org/refAutoReset
|
|
291
|
-
* @param defaultValue The value which will be set.
|
|
292
|
-
* @param afterMs A zero-or-greater delay in milliseconds.
|
|
293
|
-
*/
|
|
294
|
-
function refAutoReset(defaultValue, afterMs = 1e4) {
|
|
295
|
-
return customRef((track, trigger) => {
|
|
296
|
-
let value = toValue(defaultValue);
|
|
297
|
-
let timer;
|
|
298
|
-
const resetAfter = () => setTimeout(() => {
|
|
299
|
-
value = toValue(defaultValue);
|
|
300
|
-
trigger();
|
|
301
|
-
}, toValue(afterMs));
|
|
302
|
-
tryOnScopeDispose(() => {
|
|
303
|
-
clearTimeout(timer);
|
|
304
|
-
});
|
|
305
|
-
return {
|
|
306
|
-
get() {
|
|
307
|
-
track();
|
|
308
|
-
return value;
|
|
309
|
-
},
|
|
310
|
-
set(newValue) {
|
|
311
|
-
value = newValue;
|
|
312
|
-
trigger();
|
|
313
|
-
clearTimeout(timer);
|
|
314
|
-
timer = resetAfter();
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Debounce execution of a function.
|
|
321
|
-
*
|
|
322
|
-
* @see https://vueuse.org/useDebounceFn
|
|
323
|
-
* @param fn A function to be executed after delay milliseconds debounced.
|
|
324
|
-
* @param ms A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
325
|
-
* @param options Options
|
|
326
|
-
*
|
|
327
|
-
* @return A new, debounced, function with isPending, cancel, and flush properties.
|
|
328
|
-
*/
|
|
329
|
-
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
330
|
-
return createFilterWrapper(debounceFilter(ms, options), fn);
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Call onBeforeUnmount() if it's inside a component lifecycle, if not, do nothing
|
|
334
|
-
*
|
|
335
|
-
* @param fn
|
|
336
|
-
* @param target
|
|
337
|
-
*/
|
|
338
|
-
function tryOnBeforeUnmount(fn, target) {
|
|
339
|
-
if (getLifeCycleTarget(target)) onBeforeUnmount(fn, target);
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Call onMounted() if it's inside a component lifecycle, if not, just call the function
|
|
343
|
-
*
|
|
344
|
-
* @param fn
|
|
345
|
-
* @param sync if set to false, it will run in the nextTick() of Vue
|
|
346
|
-
* @param target
|
|
347
|
-
*/
|
|
348
|
-
function tryOnMounted(fn, sync = true, target) {
|
|
349
|
-
if (getLifeCycleTarget(target)) onMounted(fn, target);
|
|
350
|
-
else if (sync) fn();
|
|
351
|
-
else nextTick(fn);
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Wrapper for `setTimeout` with controls.
|
|
355
|
-
*
|
|
356
|
-
* @param cb
|
|
357
|
-
* @param interval
|
|
358
|
-
* @param options
|
|
359
|
-
*/
|
|
360
|
-
function useTimeoutFn(cb, interval, options = {}) {
|
|
361
|
-
const { immediate = true, immediateCallback = false } = options;
|
|
362
|
-
const isPending = shallowRef(false);
|
|
363
|
-
let timer;
|
|
364
|
-
function clear() {
|
|
365
|
-
if (timer) {
|
|
366
|
-
clearTimeout(timer);
|
|
367
|
-
timer = void 0;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
function stop() {
|
|
371
|
-
isPending.value = false;
|
|
372
|
-
clear();
|
|
373
|
-
}
|
|
374
|
-
function start(...args) {
|
|
375
|
-
if (immediateCallback) cb();
|
|
376
|
-
clear();
|
|
377
|
-
isPending.value = true;
|
|
378
|
-
timer = setTimeout(() => {
|
|
379
|
-
isPending.value = false;
|
|
380
|
-
timer = void 0;
|
|
381
|
-
cb(...args);
|
|
382
|
-
}, toValue(interval));
|
|
383
|
-
}
|
|
384
|
-
if (immediate) {
|
|
385
|
-
isPending.value = true;
|
|
386
|
-
if (isClient) start();
|
|
387
|
-
}
|
|
388
|
-
tryOnScopeDispose(stop);
|
|
389
|
-
return {
|
|
390
|
-
isPending: shallowReadonly(isPending),
|
|
391
|
-
start,
|
|
392
|
-
stop
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Shorthand for watching value with {immediate: true}
|
|
397
|
-
*
|
|
398
|
-
* @see https://vueuse.org/watchImmediate
|
|
399
|
-
*/
|
|
400
|
-
function watchImmediate(source, cb, options) {
|
|
401
|
-
return watch(source, cb, {
|
|
402
|
-
...options,
|
|
403
|
-
immediate: true
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Shorthand for watching value with { once: true }
|
|
408
|
-
*
|
|
409
|
-
* @see https://vueuse.org/watchOnce
|
|
410
|
-
*/
|
|
411
|
-
function watchOnce(source, cb, options) {
|
|
412
|
-
return watch(source, cb, {
|
|
413
|
-
...options,
|
|
414
|
-
once: true
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
//#endregion
|
|
418
|
-
export { tryOnScopeDispose as _, isClient as a, watchImmediate as b, isObject as c, reactiveComputed as d, reactiveOmit as f, tryOnMounted as g, tryOnBeforeUnmount as h, injectLocal as i, notNullish as l, toArray as m, createGlobalState as n, isDef as o, refAutoReset as p, createSharedComposable as r, isIOS as s, createEventHook as t, pxValue as u, useDebounceFn as v, watchOnce as x, useTimeoutFn as y };
|