@soybeanjs/headless 0.15.0-beta.2 → 0.15.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/_common/dynamic-render.js +1 -0
- package/dist/components/_icon/icon.js +1 -0
- package/dist/components/_icon/icon.vue.d.ts +8 -0
- package/dist/components/_icon/index.d.ts +3 -0
- package/dist/components/_icon/index.js +1 -0
- package/dist/components/{icon → _icon}/types.d.ts +3 -3
- package/dist/components/accordion/accordion-compact.js +1 -1
- package/dist/components/accordion/accordion-description.js +1 -0
- package/dist/components/accordion/accordion-description.vue.d.ts +18 -0
- package/dist/components/accordion/accordion-root.js +1 -1
- package/dist/components/accordion/context.d.ts +3 -2
- package/dist/components/accordion/index.d.ts +7 -6
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/accordion/types.d.ts +12 -12
- package/dist/components/affix/affix-compact.js +1 -0
- package/dist/components/affix/affix-compact.vue.d.ts +24 -0
- package/dist/components/affix/affix-root.js +1 -1
- package/dist/components/affix/context.d.ts +3 -2
- package/dist/components/affix/index.d.ts +6 -5
- package/dist/components/affix/index.js +1 -1
- package/dist/components/affix/types.d.ts +9 -10
- package/dist/components/alert/alert-close.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +4 -1
- package/dist/components/alert/alert-compact.js +1 -0
- package/dist/components/alert/alert-compact.vue.d.ts +21 -0
- package/dist/components/alert/context.d.ts +3 -2
- package/dist/components/alert/index.d.ts +7 -6
- package/dist/components/alert/index.js +1 -1
- package/dist/components/alert/types.d.ts +23 -3
- package/dist/components/anchor/anchor-compact-item.js +1 -0
- package/dist/components/anchor/anchor-compact.js +1 -0
- package/dist/components/anchor/anchor-compact.vue.d.ts +20 -0
- package/dist/components/anchor/context.d.ts +3 -2
- package/dist/components/anchor/index.d.ts +5 -4
- package/dist/components/anchor/index.js +1 -1
- package/dist/components/anchor/types.d.ts +22 -2
- package/dist/components/autocomplete/autocomplete-compact.js +1 -0
- package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +24 -0
- package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
- package/dist/components/autocomplete/context.d.ts +3 -2
- package/dist/components/autocomplete/index.d.ts +14 -13
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/autocomplete/shared.js +1 -0
- package/dist/components/autocomplete/types.d.ts +77 -3
- package/dist/components/avatar/context.d.ts +3 -2
- package/dist/components/backtop/backtop.js +1 -0
- package/dist/components/backtop/backtop.vue.d.ts +33 -0
- package/dist/components/backtop/index.d.ts +3 -0
- package/dist/components/backtop/index.js +1 -0
- package/dist/components/backtop/shared.js +1 -0
- package/dist/components/backtop/types.d.ts +43 -0
- package/dist/components/badge/context.d.ts +3 -2
- package/dist/components/breadcrumb/breadcrumb-compact.js +1 -0
- package/dist/components/breadcrumb/breadcrumb-compact.vue.d.ts +21 -0
- package/dist/components/breadcrumb/context.d.ts +3 -2
- package/dist/components/breadcrumb/index.d.ts +10 -9
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/breadcrumb/shared.js +1 -0
- package/dist/components/breadcrumb/types.d.ts +48 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.vue.d.ts +1 -2
- package/dist/components/card/context.d.ts +3 -2
- package/dist/components/carousel/context.d.ts +3 -2
- package/dist/components/checkbox/checkbox-card-compact.js +1 -0
- package/dist/components/checkbox/checkbox-card-compact.vue.d.ts +31 -0
- package/dist/components/checkbox/checkbox-card-group-compact.js +1 -0
- package/dist/components/checkbox/checkbox-card-group-compact.vue.d.ts +21 -0
- package/dist/components/checkbox/checkbox-compact.js +1 -0
- package/dist/components/checkbox/checkbox-compact.vue.d.ts +34 -0
- package/dist/components/checkbox/checkbox-control.js +1 -1
- package/dist/components/checkbox/checkbox-group-compact.js +1 -0
- package/dist/components/checkbox/checkbox-group-compact.vue.d.ts +21 -0
- package/dist/components/checkbox/checkbox-group-root.js +1 -1
- package/dist/components/checkbox/checkbox-root.js +1 -1
- package/dist/components/checkbox/context.d.ts +6 -4
- package/dist/components/checkbox/context.js +1 -1
- package/dist/components/checkbox/index.d.ts +12 -8
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox/types.d.ts +38 -3
- package/dist/components/clipboard/clipboard.js +1 -0
- package/dist/components/clipboard/clipboard.vue.d.ts +66 -0
- package/dist/components/clipboard/index.d.ts +3 -0
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/clipboard/types.d.ts +63 -0
- package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
- package/dist/components/collapsible/context.d.ts +3 -2
- package/dist/components/color-area/color-area-root.vue.d.ts +1 -1
- package/dist/components/color-area/context.d.ts +3 -2
- package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
- package/dist/components/color-field/context.d.ts +3 -2
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
- package/dist/components/color-slider/context.d.ts +3 -2
- package/dist/components/color-swatch-picker/color-swatch-picker-root.js +1 -1
- package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
- package/dist/components/color-swatch-picker/context.d.ts +3 -2
- package/dist/components/combobox/combobox-anchor.js +1 -0
- package/dist/components/combobox/combobox-anchor.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-arrow.js +1 -0
- package/dist/components/combobox/combobox-arrow.vue.d.ts +18 -0
- package/dist/components/combobox/combobox-cancel.js +1 -0
- package/dist/components/combobox/combobox-cancel.vue.d.ts +21 -0
- package/dist/components/combobox/combobox-compact.js +1 -0
- package/dist/components/combobox/combobox-compact.vue.d.ts +34 -0
- package/dist/components/combobox/combobox-content-impl.js +1 -0
- package/dist/components/combobox/combobox-content.js +1 -1
- package/dist/components/combobox/combobox-content.vue.d.ts +7 -4
- package/dist/components/combobox/combobox-empty.js +1 -1
- package/dist/components/combobox/combobox-empty.vue.d.ts +4 -1
- package/dist/components/combobox/combobox-group-label.js +1 -1
- package/dist/components/combobox/combobox-group.js +1 -1
- package/dist/components/combobox/combobox-input.js +1 -1
- package/dist/components/combobox/combobox-input.vue.d.ts +4 -4
- package/dist/components/combobox/combobox-item-indicator.js +1 -1
- package/dist/components/combobox/combobox-item.js +1 -1
- package/dist/components/combobox/combobox-root.js +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +15 -7
- package/dist/components/combobox/combobox-separator.js +1 -1
- package/dist/components/combobox/combobox-trigger.js +1 -1
- package/dist/components/combobox/combobox-trigger.vue.d.ts +2 -2
- package/dist/components/combobox/combobox-viewport.js +1 -1
- package/dist/components/combobox/combobox-virtualizer.js +1 -0
- package/dist/components/combobox/combobox-virtualizer.vue.d.ts +23 -0
- package/dist/components/combobox/context.d.ts +4 -3
- package/dist/components/combobox/context.js +1 -1
- package/dist/components/combobox/index.d.ts +19 -14
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/combobox/shared.js +1 -0
- package/dist/components/combobox/types.d.ts +117 -17
- package/dist/components/command/command-compact.js +1 -0
- package/dist/components/command/command-compact.vue.d.ts +29 -0
- package/dist/components/command/context.d.ts +9 -0
- package/dist/components/command/context.js +1 -0
- package/dist/components/command/index.d.ts +5 -0
- package/dist/components/command/index.js +1 -0
- package/dist/components/command/shared.js +1 -0
- package/dist/components/command/types.d.ts +68 -0
- package/dist/components/config-provider/types.d.ts +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-compact.js +1 -1
- package/dist/components/context-menu/context-menu-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
- package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-root.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/context-menu/index.d.ts +2 -2
- package/dist/components/context-menu/index.js +1 -1
- package/dist/components/context-menu/types.d.ts +1 -1
- package/dist/components/dialog/context.d.ts +3 -2
- package/dist/components/dialog/context.js +1 -1
- package/dist/components/dialog/dialog-cancel.js +1 -0
- package/dist/components/dialog/dialog-cancel.vue.d.ts +25 -0
- package/dist/components/dialog/dialog-close.js +1 -1
- package/dist/components/dialog/dialog-close.vue.d.ts +6 -3
- package/dist/components/dialog/dialog-compact.js +1 -0
- package/dist/components/dialog/dialog-compact.vue.d.ts +47 -0
- package/dist/components/dialog/dialog-confirm.js +1 -0
- package/dist/components/dialog/dialog-confirm.vue.d.ts +25 -0
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +3 -18
- package/dist/components/dialog/dialog-popup-impl.js +1 -0
- package/dist/components/dialog/dialog-popup.js +1 -0
- package/dist/components/{alert-dialog/alert-dialog-content.vue.d.ts → dialog/dialog-popup.vue.d.ts} +8 -8
- package/dist/components/dialog/dialog-provider.js +1 -0
- package/dist/components/dialog/dialog-provider.vue.d.ts +17 -0
- package/dist/components/dialog/dialog-root.js +1 -1
- package/dist/components/dialog/dialog-root.vue.d.ts +1 -2
- package/dist/components/dialog/dialog-trigger.js +1 -1
- package/dist/components/dialog/index.d.ts +18 -12
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dialog/state.d.ts +14 -0
- package/dist/components/dialog/state.js +1 -0
- package/dist/components/dialog/types.d.ts +133 -16
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.d.ts +2 -2
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/dropdown-menu/types.d.ts +1 -1
- package/dist/components/editable/context.d.ts +3 -2
- package/dist/components/editable/editable-root.js +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/empty/context.d.ts +3 -2
- package/dist/components/form/context.d.ts +3 -2
- package/dist/components/form/core/use-form-state.js +1 -1
- package/dist/components/hover-card/index.d.ts +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/hover-card/types.d.ts +1 -1
- package/dist/components/input/context.d.ts +3 -2
- package/dist/components/input-number/context.d.ts +3 -2
- package/dist/components/input-otp/context.d.ts +9 -0
- package/dist/components/input-otp/context.js +1 -0
- package/dist/components/input-otp/index.d.ts +8 -0
- package/dist/components/input-otp/index.js +1 -0
- package/dist/components/input-otp/input-otp-compact.js +1 -0
- package/dist/components/input-otp/input-otp-compact.vue.d.ts +37 -0
- package/dist/components/input-otp/input-otp-input.js +1 -0
- package/dist/components/input-otp/input-otp-input.vue.d.ts +8 -0
- package/dist/components/input-otp/input-otp-positioner.js +1 -0
- package/dist/components/input-otp/input-otp-positioner.vue.d.ts +18 -0
- package/dist/components/input-otp/input-otp-root.js +1 -0
- package/dist/components/input-otp/input-otp-root.vue.d.ts +55 -0
- package/dist/components/input-otp/regexp.d.ts +6 -0
- package/dist/components/input-otp/regexp.js +1 -0
- package/dist/components/input-otp/shared.js +1 -0
- package/dist/components/input-otp/types.d.ts +113 -0
- package/dist/components/input-otp/use-password-manager-badge.js +1 -0
- package/dist/components/layout/context.d.ts +3 -2
- package/dist/components/layout/layout-mobile.js +1 -1
- package/dist/components/layout/layout-root.vue.d.ts +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/list/context.d.ts +3 -2
- package/dist/components/listbox/context.d.ts +3 -2
- package/dist/components/listbox/context.js +1 -1
- package/dist/components/listbox/listbox-root.js +1 -1
- package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
- package/dist/components/listbox/types.d.ts +0 -6
- package/dist/components/menu/context.d.ts +3 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +4 -4
- package/dist/components/menu/menu-item-slot-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.js +1 -1
- package/dist/components/menu/menu-option-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-options-compact.vue.d.ts +3 -3
- package/dist/components/menu/menu-radio-options-compact.js +1 -1
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
- package/dist/components/menu/types.d.ts +3 -3
- package/dist/components/menubar/context.d.ts +3 -2
- package/dist/components/menubar/index.js +1 -1
- package/dist/components/menubar/menubar-compact.js +1 -1
- package/dist/components/menubar/menubar-compact.vue.d.ts +3 -3
- package/dist/components/menubar/menubar-content.vue.d.ts +4 -4
- package/dist/components/menubar/menubar-sub-content.vue.d.ts +4 -4
- package/dist/components/menubar/types.d.ts +1 -1
- package/dist/components/navigation-menu/context.d.ts +3 -2
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
- package/dist/components/page-tabs/context.d.ts +3 -2
- package/dist/components/pagination/context.d.ts +3 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/types.d.ts +1 -1
- package/dist/components/popper/context.d.ts +3 -2
- package/dist/components/popper/popper-positioner.vue.d.ts +3 -3
- package/dist/components/popper/types.d.ts +5 -1
- package/dist/components/progress/context.d.ts +6 -4
- package/dist/components/progress/context.js +1 -1
- package/dist/components/progress/index.d.ts +6 -4
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress-circle.js +1 -1
- package/dist/components/progress/progress-indicator.js +1 -1
- package/dist/components/progress/progress-provider.js +1 -0
- package/dist/components/progress/progress-provider.vue.d.ts +8 -0
- package/dist/components/progress/progress-root.js +1 -1
- package/dist/components/progress/shared.js +1 -1
- package/dist/components/progress/state.d.ts +52 -0
- package/dist/components/progress/state.js +1 -0
- package/dist/components/progress/types.d.ts +15 -2
- package/dist/components/radio-group/context.d.ts +3 -2
- package/dist/components/radio-group/index.d.ts +8 -7
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group-compact.js +1 -0
- package/dist/components/radio-group/radio-group-compact.vue.d.ts +22 -0
- package/dist/components/radio-group/radio-group-root.js +1 -1
- package/dist/components/radio-group/types.d.ts +14 -1
- package/dist/components/scroll-area/context.d.ts +3 -2
- package/dist/components/scroll-area/scroll-area-root.js +1 -1
- package/dist/components/scroll-area/scroll-area-viewport.js +1 -1
- package/dist/components/segment/index.d.ts +8 -0
- package/dist/components/segment/index.js +1 -0
- package/dist/components/segment/segment-compact.js +1 -0
- package/dist/components/segment/segment-compact.vue.d.ts +22 -0
- package/dist/components/segment/types.d.ts +22 -0
- package/dist/components/select/context.d.ts +3 -2
- package/dist/components/select/index.d.ts +19 -18
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select-compact.js +1 -0
- package/dist/components/select/select-compact.vue.d.ts +28 -0
- package/dist/components/select/select-content.vue.d.ts +4 -4
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/types.d.ts +61 -1
- package/dist/components/separator/context.d.ts +3 -2
- package/dist/components/slider/context.d.ts +3 -2
- package/dist/components/slider/slider-root.js +1 -1
- package/dist/components/slider/slider-root.vue.d.ts +2 -2
- package/dist/components/splitter/context.d.ts +3 -2
- package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +4 -4
- package/dist/components/stepper/context.d.ts +3 -2
- package/dist/components/switch/context.d.ts +3 -2
- package/dist/components/table/context.d.ts +3 -2
- package/dist/components/tabs/context.d.ts +3 -2
- package/dist/components/tabs/index.d.ts +8 -7
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs-compact.js +1 -0
- package/dist/components/tabs/tabs-compact.vue.d.ts +21 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +25 -2
- package/dist/components/tags-input/context.d.ts +3 -2
- package/dist/components/textarea/context.d.ts +3 -2
- package/dist/components/toast/context.d.ts +3 -2
- package/dist/components/toast/shared.js +1 -1
- package/dist/components/toast/state.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast/toaster.js +1 -1
- package/dist/components/toast/toaster.vue.d.ts +3 -3
- package/dist/components/toast/types.d.ts +3 -19
- package/dist/components/toggle-group/context.d.ts +3 -2
- package/dist/components/toggle-group/toggle-group-root.js +1 -1
- package/dist/components/toolbar/context.d.ts +3 -2
- package/dist/components/toolbar/toolbar-toggle-group.js +1 -1
- package/dist/components/toolbar/types.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tree-menu/context.d.ts +3 -2
- package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/use-selection.js +1 -1
- package/dist/composables/use-ui-context.d.ts +1 -1
- package/dist/constants/components.d.ts +8 -4
- package/dist/constants/components.js +1 -1
- package/dist/date/calendar.d.ts +52 -0
- package/dist/date/calendar.js +1 -0
- package/dist/date/comparators.d.ts +30 -0
- package/dist/date/comparators.js +1 -0
- package/dist/date/index.d.ts +5 -0
- package/dist/date/index.js +1 -0
- package/dist/date/types.d.ts +36 -0
- package/dist/date/utils.d.ts +4 -0
- package/dist/date/utils.js +1 -0
- package/dist/index.d.ts +397 -355
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +759 -689
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/shared/value.d.ts +1 -1
- package/dist/shared/vue.d.ts +2 -1
- package/dist/shared/vue.js +1 -1
- package/dist/types/common.d.ts +9 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +10 -5
- package/dist/components/alert-dialog/alert-dialog-close.js +0 -1
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +0 -22
- package/dist/components/alert-dialog/alert-dialog-content.js +0 -1
- package/dist/components/alert-dialog/alert-dialog-root.js +0 -1
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +0 -28
- package/dist/components/alert-dialog/context.js +0 -1
- package/dist/components/alert-dialog/index.d.ts +0 -15
- package/dist/components/alert-dialog/index.js +0 -1
- package/dist/components/alert-dialog/types.d.ts +0 -9
- package/dist/components/dialog/dialog-content-impl.js +0 -1
- package/dist/components/icon/icon-render.js +0 -1
- package/dist/components/icon/icon-render.vue.d.ts +0 -8
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/index.js +0 -1
- /package/dist/_virtual/{_@oxc-project_runtime@0.126.0 → _@oxc-project_runtime@0.127.0}/helpers/defineProperty.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.126.0 → _@oxc-project_runtime@0.127.0}/helpers/toPrimitive.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.126.0 → _@oxc-project_runtime@0.127.0}/helpers/toPropertyKey.js +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.126.0 → _@oxc-project_runtime@0.127.0}/helpers/typeof.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"./checkbox-compact.js";import n from"./checkbox-group-root.js";import{Fragment as r,createBlock as i,createElementBlock as a,defineComponent as o,mergeProps as s,openBlock as c,renderList as l,unref as u,withCtx as d}from"vue";const f=o({name:`CheckboxGroupCompact`,__name:`checkbox-group-compact`,props:{items:{},rootProps:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{},defaultValue:{},rovingFocus:{type:Boolean},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:f}){let p=o,m=f,h=e(p,[`items`,`rootProps`,`controlProps`,`indicatorProps`,`labelProps`]);return(e,f)=>(c(),i(n,s(u(h),{"onUpdate:modelValue":f[0]||(f[0]=e=>m(`update:modelValue`,e))}),{default:d(()=>[(c(!0),a(r,null,l(o.items,e=>(c(),i(t,s({ref_for:!0},o.rootProps,{key:e.value,value:e.value,label:e.label,disabled:o.disabled||e.disabled,"control-props":o.controlProps,"indicator-props":o.indicatorProps,"label-props":o.labelProps}),null,16,[`value`,`label`,`disabled`,`control-props`,`indicator-props`,`label-props`]))),128))]),_:1},16))}});export{f as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CheckboxGroupCompactProps, CheckboxGroupOptionData } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/checkbox/checkbox-group-compact.vue.d.ts
|
|
5
|
+
declare const __VLS_export: <T extends CheckboxGroupOptionData = CheckboxGroupOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: _$vue.PublicProps & __VLS_PrettifyLocal<CheckboxGroupCompactProps<T> & {
|
|
7
|
+
"onUpdate:modelValue"?: ((value: T["value"][]) => any) | undefined;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: (evt: "update:modelValue", value: T["value"][]) => void;
|
|
15
|
+
}>) => _$vue.VNode & {
|
|
16
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isFormControl as e,transformPropsToContext as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import i from"../visually-hidden/visually-hidden-input.js";import a from"
|
|
1
|
+
import{isFormControl as e,transformPropsToContext as t}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as n}from"../../composables/use-controllable-state.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import"../../composables/index.js";import i from"../visually-hidden/visually-hidden-input.js";import{provideCheckboxGroupRootContext as a,useCheckboxUi as o}from"./context.js";import"../visually-hidden/index.js";import s from"../roving-focus/roving-focus-group.js";import"../roving-focus/index.js";import{computed as c,createBlock as l,createCommentVNode as u,defineComponent as d,mergeProps as f,openBlock as p,renderSlot as m,resolveDynamicComponent as h,unref as g,withCtx as _}from"vue";const v=d({name:`CheckboxGroupRoot`,__name:`checkbox-group-root`,props:{modelValue:{default:void 0},defaultValue:{},rovingFocus:{type:Boolean,default:!0},disabled:{type:Boolean},orientation:{},dir:{},loop:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:v}){let y=d,b=v,x=o(`groupRoot`),S=c(()=>{let{rovingFocus:e,loop:t,dir:n,orientation:r}=y;return e?{loop:t,dir:n,orientation:r}:{}}),C=n(()=>y.modelValue,e=>{b(`update:modelValue`,e??[])},y.defaultValue);a({...t(y,[`modelValue`,`defaultValue`,`rovingFocus`,`disabled`]),modelValue:C});let[w,T]=r(),E=c(()=>e(w.value));return(e,t)=>(p(),l(h(d.rovingFocus?g(s):`div`),f(S.value,{ref:g(T),class:g(x),as:`div`}),{default:_(()=>[m(e.$slots,`default`),E.value&&d.name?(p(),l(g(i),{key:0,name:d.name,value:g(C),required:d.required},null,8,[`name`,`value`,`required`])):u(`v-if`,!0)]),_:3},16,[`class`]))}});export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import
|
|
1
|
+
import{isNullish as e}from"../../shared/guard.js";import{isValueEqualOrExist as t}from"../../shared/comparison.js";import{isFormControl as n,transformPropsToContext as r}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as i}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import a from"../visually-hidden/visually-hidden-input.js";import{provideCheckboxRootContext as o,useCheckboxGroupRootContext as s,useCheckboxUi as c}from"./context.js";import"../visually-hidden/index.js";import{computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,defineComponent as p,normalizeClass as m,openBlock as h,renderSlot as g,unref as _,useTemplateRef as v}from"vue";const y=[`data-state`],b=p({name:`CheckboxRoot`,__name:`checkbox-root`,props:{id:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{default:`on`},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(p,{emit:b}){let x=p,S=b,C=c(`root`),w=v(`rootElement`),T=s(),E=i(()=>x.modelValue,e=>{e!==void 0&&S(`update:modelValue`,e)},x.defaultValue),D=l(()=>n(w.value)),O=l(()=>T?.disabled?.value||x.disabled),k=l(()=>e(T?.modelValue?.value)?e(E.value)?!1:E.value===`indeterminate`?`indeterminate`:E.value:t(T?.modelValue.value,x.value)),{dataState:A}=o({...r(x,[`value`,`name`,`required`]),modelValue:E,disabled:O,state:k});return(e,t)=>(h(),f(`div`,{ref_key:`rootElement`,ref:w,class:m(_(C)),"data-state":_(A)},[g(e.$slots,`default`,{modelValue:_(E),state:k.value}),D.value&&p.name&&!_(T)?(h(),u(_(a),{key:0,type:`checkbox`,checked:!!k.value,name:p.name,value:p.value,disabled:O.value,required:p.required},null,8,[`checked`,`name`,`value`,`disabled`,`required`])):d(`v-if`,!0)],10,y))}});export{b as default};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
|
+
import { CheckboxCardUiSlot, CheckboxUiSlot } from "./types.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/checkbox/context.d.ts
|
|
6
|
-
declare const provideCheckboxUi: (ui: _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>, useCheckboxUi: <
|
|
7
|
+
declare const provideCheckboxUi: (ui: _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CheckboxUiSlot>>>, useCheckboxUi: UseUiConsumer<CheckboxUiSlot>;
|
|
8
|
+
declare const provideCheckboxCardUi: (ui: _$vue.ComputedRef<Partial<UiClass<CheckboxCardUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CheckboxCardUiSlot>>>, useCheckboxCardUi: UseUiConsumer<CheckboxCardUiSlot>;
|
|
7
9
|
//#endregion
|
|
8
|
-
export { provideCheckboxUi };
|
|
10
|
+
export { provideCheckboxCardUi, provideCheckboxUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCheckedState as e,isIndeterminate as t}from"../../shared/value.js";import"../../shared/index.js";import{useContext as n}from"../../composables/use-context.js";import{useUiContext as r}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as i,shallowRef as a}from"vue";const[o,s]=n(`CheckboxGroupRoot`,e=>e),[c,l]=n(`CheckboxRoot`,n=>{let{modelValue:r,state:o}=n,s=i(()=>t(o.value)?`mixed`:o.value),c=i(()=>n.disabled.value?``:void 0),l=i(()=>e(o.value)),u=a(``),d=e=>{u.value=e};return{...n,modelValue:r,state:o,ariaChecked:s,dataDisabled:c,dataState:l,controlId:u,initControlId:d}}),[u,d]=r(`CheckboxUi`);export{o as provideCheckboxGroupRootContext,c as provideCheckboxRootContext,u as provideCheckboxUi,s as useCheckboxGroupRootContext,l as useCheckboxRootContext,d as useCheckboxUi};
|
|
1
|
+
import{getCheckedState as e,isIndeterminate as t}from"../../shared/value.js";import"../../shared/index.js";import{useContext as n}from"../../composables/use-context.js";import{useUiContext as r}from"../../composables/use-ui-context.js";import"../../composables/index.js";import{computed as i,shallowRef as a}from"vue";const[o,s]=n(`CheckboxGroupRoot`,e=>e),[c,l]=n(`CheckboxRoot`,n=>{let{modelValue:r,state:o}=n,s=i(()=>t(o.value)?`mixed`:o.value),c=i(()=>n.disabled.value?``:void 0),l=i(()=>e(o.value)),u=a(``),d=e=>{u.value=e};return{...n,modelValue:r,state:o,ariaChecked:s,dataDisabled:c,dataState:l,controlId:u,initControlId:d}}),[u,d]=r(`CheckboxUi`),[f,p]=r(`CheckboxCardUi`,e=>(u(e),e));export{f as provideCheckboxCardUi,o as provideCheckboxGroupRootContext,c as provideCheckboxRootContext,u as provideCheckboxUi,p as useCheckboxCardUi,s as useCheckboxGroupRootContext,l as useCheckboxRootContext,d as useCheckboxUi};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { LabelProps } from "../label/types.js";
|
|
2
|
-
import { CheckboxControlProps, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot } from "./types.js";
|
|
3
|
-
import { _default as _default$
|
|
4
|
-
import { _default
|
|
5
|
-
import { _default } from "./checkbox-
|
|
6
|
-
import { _default as _default$
|
|
7
|
-
import { _default as _default$
|
|
8
|
-
import {
|
|
9
|
-
|
|
2
|
+
import { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCardUiSlot, CheckboxCompactEmits, CheckboxCompactProps, CheckboxControlProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot } from "./types.js";
|
|
3
|
+
import { _default as _default$2 } from "./checkbox-compact.vue.js";
|
|
4
|
+
import { _default } from "./checkbox-card-compact.vue.js";
|
|
5
|
+
import { _default as _default$4 } from "./checkbox-group-compact.vue.js";
|
|
6
|
+
import { _default as _default$1 } from "./checkbox-card-group-compact.vue.js";
|
|
7
|
+
import { _default as _default$5 } from "./checkbox-group-root.vue.js";
|
|
8
|
+
import { _default as _default$8 } from "./checkbox-root.vue.js";
|
|
9
|
+
import { _default as _default$3 } from "./checkbox-control.vue.js";
|
|
10
|
+
import { _default as _default$6 } from "./checkbox-indicator.vue.js";
|
|
11
|
+
import { _default as _default$7 } from "./checkbox-label.vue.js";
|
|
12
|
+
import { provideCheckboxCardUi, provideCheckboxUi } from "./context.js";
|
|
13
|
+
export { _default as CheckboxCardCompact, type CheckboxCardCompactEmits, type CheckboxCardCompactProps, _default$1 as CheckboxCardGroupCompact, type CheckboxCardGroupCompactEmits, type CheckboxCardGroupCompactProps, type CheckboxCardGroupOptionData, type CheckboxCardUi, type CheckboxCardUiSlot, _default$2 as CheckboxCompact, type CheckboxCompactEmits, type CheckboxCompactProps, _default$3 as CheckboxControl, type CheckboxControlProps, _default$4 as CheckboxGroupCompact, type CheckboxGroupCompactEmits, type CheckboxGroupCompactProps, type CheckboxGroupOptionData, _default$5 as CheckboxGroupRoot, type CheckboxGroupRootEmits, type CheckboxGroupRootProps, _default$6 as CheckboxIndicator, type CheckboxIndicatorProps, _default$7 as CheckboxLabel, type LabelProps as CheckboxLabelProps, _default$8 as CheckboxRoot, type CheckboxRootEmits, type CheckboxRootProps, type CheckboxUi, type CheckboxUiSlot, provideCheckboxCardUi, provideCheckboxUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideCheckboxUi as
|
|
1
|
+
import{provideCheckboxCardUi as e,provideCheckboxUi as t}from"./context.js";import n from"./checkbox-root.js";import r from"./checkbox-control.js";import i from"./checkbox-indicator.js";import a from"./checkbox-label.js";import o from"./checkbox-compact.js";import s from"./checkbox-card-compact.js";import c from"./checkbox-group-root.js";import l from"./checkbox-group-compact.js";import u from"./checkbox-card-group-compact.js";export{s as CheckboxCardCompact,u as CheckboxCardGroupCompact,o as CheckboxCompact,r as CheckboxControl,l as CheckboxGroupCompact,c as CheckboxGroupRoot,i as CheckboxIndicator,a as CheckboxLabel,n as CheckboxRoot,e as provideCheckboxCardUi,t as provideCheckboxUi};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { IconValue } from "../_icon/types.js";
|
|
1
2
|
import { CheckedState, DefinedValue, UiClass } from "../../types/common.js";
|
|
2
3
|
import { ForceMountProps, FormFieldCommonProps } from "../../types/component.js";
|
|
3
4
|
import { PrimitiveProps } from "../primitive/types.js";
|
|
4
|
-
import { RovingFocusGroupProps } from "../roving-focus/types.js";
|
|
5
5
|
import { LabelProps } from "../label/types.js";
|
|
6
|
+
import { RovingFocusGroupProps } from "../roving-focus/types.js";
|
|
6
7
|
import { ButtonHTMLAttributes, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
|
|
7
8
|
|
|
8
9
|
//#region src/components/checkbox/types.d.ts
|
|
9
10
|
interface CheckboxRootProps extends FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
|
|
11
|
+
id?: string;
|
|
10
12
|
/** The controlled value of the checkbox. Can be bound with v-model. */
|
|
11
13
|
modelValue?: CheckedState | null;
|
|
12
14
|
/** The value of the checkbox when it is initially rendered. Use when you do not need to control its value. */
|
|
@@ -32,6 +34,15 @@ interface CheckboxControlProps extends /** @vue-ignore */ButtonHTMLAttributes {
|
|
|
32
34
|
id?: string;
|
|
33
35
|
}
|
|
34
36
|
interface CheckboxIndicatorProps extends PrimitiveProps, ForceMountProps, /** @vue-ignore */HTMLAttributes {}
|
|
37
|
+
type CheckboxGroupOptionData<T extends DefinedValue = DefinedValue> = {
|
|
38
|
+
value: T;
|
|
39
|
+
label: string;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type CheckboxCardGroupOptionData<T extends DefinedValue = DefinedValue> = CheckboxGroupOptionData<T> & {
|
|
43
|
+
icon?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
};
|
|
35
46
|
interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends Omit<RovingFocusGroupProps, 'currentTabStopId' | 'defaultCurrentTabStopId' | 'preventScrollOnEntryFocus' | 'as' | 'asChild'>, FormFieldCommonProps {
|
|
36
47
|
/** The controlled value of the checkbox. Can be bound with v-model. */
|
|
37
48
|
modelValue?: T[];
|
|
@@ -53,7 +64,31 @@ interface CheckboxGroupRootProps<T extends DefinedValue = DefinedValue> extends
|
|
|
53
64
|
type CheckboxGroupRootEmits<T extends DefinedValue = DefinedValue> = {
|
|
54
65
|
/** Event handler called when the value of the checkbox group changes. */'update:modelValue': [value: T[]];
|
|
55
66
|
};
|
|
56
|
-
|
|
67
|
+
interface CheckboxCompactProps extends CheckboxRootProps {
|
|
68
|
+
label?: string;
|
|
69
|
+
controlProps?: CheckboxControlProps;
|
|
70
|
+
indicatorProps?: CheckboxIndicatorProps;
|
|
71
|
+
labelProps?: LabelProps;
|
|
72
|
+
}
|
|
73
|
+
type CheckboxCompactEmits = CheckboxRootEmits;
|
|
74
|
+
interface CheckboxCardCompactProps extends CheckboxCompactProps {
|
|
75
|
+
icon?: IconValue;
|
|
76
|
+
description?: string;
|
|
77
|
+
}
|
|
78
|
+
type CheckboxCardCompactEmits = CheckboxCompactEmits;
|
|
79
|
+
interface CheckboxGroupCompactProps<T extends CheckboxGroupOptionData = CheckboxGroupOptionData> extends CheckboxGroupRootProps<T['value']> {
|
|
80
|
+
items: T[];
|
|
81
|
+
rootProps?: CheckboxRootProps;
|
|
82
|
+
controlProps?: CheckboxControlProps;
|
|
83
|
+
indicatorProps?: CheckboxIndicatorProps;
|
|
84
|
+
labelProps?: LabelProps;
|
|
85
|
+
}
|
|
86
|
+
interface CheckboxCardGroupCompactProps<T extends CheckboxCardGroupOptionData = CheckboxCardGroupOptionData> extends CheckboxGroupCompactProps<T> {}
|
|
87
|
+
type CheckboxGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
88
|
+
type CheckboxCardGroupCompactEmits<T extends DefinedValue = DefinedValue> = CheckboxGroupRootEmits<T>;
|
|
89
|
+
type CheckboxUiSlot = 'groupRoot' | 'root' | 'indicator' | 'indicator-icon' | 'label' | 'control';
|
|
90
|
+
type CheckboxCardUiSlot = CheckboxUiSlot | 'content' | 'icon' | 'textContent' | 'description';
|
|
57
91
|
type CheckboxUi = UiClass<CheckboxUiSlot>;
|
|
92
|
+
type CheckboxCardUi = UiClass<CheckboxCardUiSlot>;
|
|
58
93
|
//#endregion
|
|
59
|
-
export { CheckboxControlProps, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot };
|
|
94
|
+
export { CheckboxCardCompactEmits, CheckboxCardCompactProps, CheckboxCardGroupCompactEmits, CheckboxCardGroupCompactProps, CheckboxCardGroupOptionData, CheckboxCardUi, CheckboxCardUiSlot, CheckboxCompactEmits, CheckboxCompactProps, CheckboxControlProps, CheckboxGroupCompactEmits, CheckboxGroupCompactProps, CheckboxGroupOptionData, CheckboxGroupRootEmits, CheckboxGroupRootProps, CheckboxIndicatorProps, CheckboxRootEmits, CheckboxRootProps, CheckboxUi, CheckboxUiSlot };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../button/button.js";import"../button/index.js";import{computed as r,createBlock as i,createElementVNode as a,createTextVNode as o,createVNode as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{useClipboard as _}from"@vueuse/core";const v={"aria-hidden":`true`},y=c({name:`Clipboard`,__name:`clipboard`,props:{value:{},copiedDuration:{default:2e3},legacy:{type:Boolean,default:!0},copyIcon:{default:`lucide:copy`},copiedIcon:{default:`lucide:check`},copyText:{default:`Copy`},copiedText:{default:`Copied`},type:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`click`,`copied`,`copyError`],setup(c,{emit:y}){let b=c,x=y,{copied:S,copy:C,isSupported:w}=_({copiedDuring:b.copiedDuration,legacy:b.legacy}),T=r(()=>b.disabled||!w.value),E=r(()=>w.value?S.value?`copied`:`ready`:`unsupported`),D=e(b,[`value`,`copiedDuration`,`legacy`,`disabled`,`copyIcon`,`copiedIcon`,`copyText`,`copiedText`]),O=r(()=>S.value?b.copiedIcon:b.copyIcon),k=r(()=>S.value?b.copiedText:b.copyText),A=async()=>{if(!T.value)try{await C(b.value),x(`copied`,b.value)}catch(e){x(`copyError`,e)}},j=r(()=>({copied:S.value,disabled:T.value,icon:O.value,supported:w.value,state:E.value,text:k.value,copy:A})),M=async e=>{x(`click`,e),await A()};return(e,r)=>(f(),i(h(n),u(h(D),{disabled:T.value,"data-state":E.value,onClick:M}),{default:g(()=>[p(e.$slots,`leading`,d(l(j.value)),()=>[a(`span`,v,[s(t,{icon:O.value},null,8,[`icon`])])]),p(e.$slots,`default`,d(l(j.value)),()=>[o(m(k.value),1)]),p(e.$slots,`trailing`,d(l(j.value)))]),_:3},16,[`disabled`,`data-state`]))}});export{y as default};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IconValue } from "../_icon/types.js";
|
|
2
|
+
import { ClipboardProps, ClipboardState } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/clipboard/clipboard.vue.d.ts
|
|
6
|
+
declare var __VLS_10: {
|
|
7
|
+
copied: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
icon: IconValue;
|
|
10
|
+
supported: boolean;
|
|
11
|
+
state: ClipboardState;
|
|
12
|
+
text: string;
|
|
13
|
+
copy: () => Promise<void>;
|
|
14
|
+
}, __VLS_17: {
|
|
15
|
+
copied: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
icon: IconValue;
|
|
18
|
+
supported: boolean;
|
|
19
|
+
state: ClipboardState;
|
|
20
|
+
text: string;
|
|
21
|
+
copy: () => Promise<void>;
|
|
22
|
+
}, __VLS_19: {
|
|
23
|
+
copied: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
icon: IconValue;
|
|
26
|
+
supported: boolean;
|
|
27
|
+
state: ClipboardState;
|
|
28
|
+
text: string;
|
|
29
|
+
copy: () => Promise<void>;
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Slots = {} & {
|
|
32
|
+
leading?: (props: typeof __VLS_10) => any;
|
|
33
|
+
} & {
|
|
34
|
+
default?: (props: typeof __VLS_17) => any;
|
|
35
|
+
} & {
|
|
36
|
+
trailing?: (props: typeof __VLS_19) => any;
|
|
37
|
+
};
|
|
38
|
+
declare const __VLS_base: _$vue.DefineComponent<ClipboardProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
39
|
+
click: (event: MouseEvent) => any;
|
|
40
|
+
copied: (value: string) => any;
|
|
41
|
+
copyError: (error: unknown) => any;
|
|
42
|
+
}, string, _$vue.PublicProps, Readonly<ClipboardProps> & Readonly<{
|
|
43
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
44
|
+
onCopied?: ((value: string) => any) | undefined;
|
|
45
|
+
onCopyError?: ((error: unknown) => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
legacy: boolean;
|
|
48
|
+
copiedDuration: number;
|
|
49
|
+
copyIcon: string | _$vue.Component | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}> | null;
|
|
52
|
+
copiedIcon: string | _$vue.Component | _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}> | null;
|
|
55
|
+
copyText: string;
|
|
56
|
+
copiedText: string;
|
|
57
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
61
|
+
new (): {
|
|
62
|
+
$slots: S;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./clipboard.js";export{e as Clipboard};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IconValue } from "../_icon/types.js";
|
|
2
|
+
import { ButtonProps } from "../button/types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/clipboard/types.d.ts
|
|
5
|
+
type ClipboardState = 'ready' | 'copied' | 'unsupported';
|
|
6
|
+
interface ClipboardProps extends ButtonProps {
|
|
7
|
+
/**
|
|
8
|
+
* The text value to copy.
|
|
9
|
+
*/
|
|
10
|
+
value: string;
|
|
11
|
+
/**
|
|
12
|
+
* The duration in milliseconds to keep the copied state.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue 2000
|
|
15
|
+
*/
|
|
16
|
+
copiedDuration?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to enable the legacy `execCommand` fallback.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue true
|
|
21
|
+
*/
|
|
22
|
+
legacy?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The icon to display before copying.
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue 'lucide:copy'
|
|
27
|
+
*/
|
|
28
|
+
copyIcon?: IconValue;
|
|
29
|
+
/**
|
|
30
|
+
* The icon to display after copying.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue 'lucide:check'
|
|
33
|
+
*/
|
|
34
|
+
copiedIcon?: IconValue;
|
|
35
|
+
/**
|
|
36
|
+
* The text to display before copying.
|
|
37
|
+
*
|
|
38
|
+
* @defaultValue 'Copy'
|
|
39
|
+
*/
|
|
40
|
+
copyText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The text to display after copying.
|
|
43
|
+
*
|
|
44
|
+
* @defaultValue 'Copied'
|
|
45
|
+
*/
|
|
46
|
+
copiedText?: string;
|
|
47
|
+
}
|
|
48
|
+
interface ClipboardSlotProps {
|
|
49
|
+
copied: boolean;
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
icon: IconValue;
|
|
52
|
+
supported: boolean;
|
|
53
|
+
state: ClipboardState;
|
|
54
|
+
text: string;
|
|
55
|
+
copy: () => Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
type ClipboardEmits = {
|
|
58
|
+
click: [event: MouseEvent];
|
|
59
|
+
copied: [value: string];
|
|
60
|
+
copyError: [error: unknown];
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
export { ClipboardEmits, ClipboardProps, ClipboardSlotProps, ClipboardState };
|
|
@@ -16,8 +16,8 @@ declare const __VLS_base: _$vue.DefineComponent<CollapsibleRootProps, {
|
|
|
16
16
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
open: boolean;
|
|
19
|
-
unmountOnHide: boolean;
|
|
20
19
|
defaultOpen: boolean;
|
|
20
|
+
unmountOnHide: boolean;
|
|
21
21
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
2
|
import { CollapsibleUiSlot } from "./types.js";
|
|
3
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/collapsible/context.d.ts
|
|
6
|
-
declare const provideCollapsibleUi: (ui: _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>, useCollapsibleUi: <
|
|
7
|
+
declare const provideCollapsibleUi: (ui: _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<CollapsibleUiSlot>>>, useCollapsibleUi: UseUiConsumer<CollapsibleUiSlot>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { provideCollapsibleUi };
|
|
@@ -19,8 +19,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorAreaRootProps, {}, {}, {},
|
|
|
19
19
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
20
20
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
format: ColorFormat;
|
|
23
22
|
disabled: boolean;
|
|
23
|
+
format: ColorFormat;
|
|
24
24
|
modelValue: string | ColorValue;
|
|
25
25
|
defaultValue: string | ColorValue;
|
|
26
26
|
as: AsTag | _$vue.Component;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
2
3
|
import { ColorAreaUiSlot } from "./types.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/color-area/context.d.ts
|
|
6
|
-
declare const provideColorAreaUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>, useColorAreaUi: <
|
|
7
|
+
declare const provideColorAreaUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorAreaUiSlot>>>, useColorAreaUi: UseUiConsumer<ColorAreaUiSlot>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { provideColorAreaUi };
|
|
@@ -15,12 +15,12 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
|
|
|
15
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
16
16
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
format: ColorFormat;
|
|
19
18
|
disabled: boolean;
|
|
19
|
+
format: ColorFormat;
|
|
20
20
|
modelValue: string | ColorValue;
|
|
21
21
|
defaultValue: string | ColorValue;
|
|
22
|
-
as: AsTag | _$vue.Component;
|
|
23
22
|
step: number;
|
|
23
|
+
as: AsTag | _$vue.Component;
|
|
24
24
|
readonly: boolean;
|
|
25
25
|
disableWheelChange: boolean;
|
|
26
26
|
colorSpace: ColorSpace;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
2
3
|
import { ColorFieldUiSlot } from "./types.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/color-field/context.d.ts
|
|
6
|
-
declare const provideColorFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>, useColorFieldUi: <
|
|
7
|
+
declare const provideColorFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorFieldUiSlot>>>, useColorFieldUi: UseUiConsumer<ColorFieldUiSlot>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { provideColorFieldUi };
|
|
@@ -23,8 +23,8 @@ declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}
|
|
|
23
23
|
onChange?: ((value: string) => any) | undefined;
|
|
24
24
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
format: ColorFormat;
|
|
27
26
|
disabled: boolean;
|
|
27
|
+
format: ColorFormat;
|
|
28
28
|
modelValue: string | ColorValue;
|
|
29
29
|
defaultValue: string | ColorValue;
|
|
30
30
|
as: AsTag | _$vue.Component;
|
|
@@ -19,14 +19,14 @@ declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}
|
|
|
19
19
|
"onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
|
|
20
20
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
+
disabled: boolean;
|
|
22
23
|
format: ColorFormat;
|
|
23
24
|
orientation: DataOrientation;
|
|
24
|
-
disabled: boolean;
|
|
25
25
|
modelValue: string | ColorValue;
|
|
26
26
|
defaultValue: string | ColorValue;
|
|
27
27
|
step: number;
|
|
28
|
-
inverted: boolean;
|
|
29
28
|
colorSpace: ColorSpace;
|
|
29
|
+
inverted: boolean;
|
|
30
30
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
32
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
2
3
|
import { ColorSliderUiSlot } from "./types.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/color-slider/context.d.ts
|
|
6
|
-
declare const provideColorSliderUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>, useColorSliderUi: <
|
|
7
|
+
declare const provideColorSliderUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSliderUiSlot>>>, useColorSliderUi: UseUiConsumer<ColorSliderUiSlot>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { provideColorSliderUi };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../listbox/listbox-root.js";import r from"../listbox/listbox-content.js";import"../listbox/index.js";import{createBlock as i,createVNode as a,defineComponent as o,isRef as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=o({name:`ColorSwatchPickerRoot`,__name:`color-swatch-picker-root`,props:{asChild:{type:Boolean},as:{default:`div`},orientation:{default:`horizontal`},dir:{default:`ltr`},disabled:{type:Boolean,default:!1},
|
|
1
|
+
import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import n from"../listbox/listbox-root.js";import r from"../listbox/listbox-content.js";import"../listbox/index.js";import{createBlock as i,createVNode as a,defineComponent as o,isRef as s,mergeProps as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=o({name:`ColorSwatchPickerRoot`,__name:`color-swatch-picker-root`,props:{asChild:{type:Boolean},as:{default:`div`},orientation:{default:`horizontal`},dir:{default:`ltr`},disabled:{type:Boolean,default:!1},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{default:void 0},multiple:{},clearable:{type:Boolean},selectionBehavior:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`entryFocus`,`leave`],setup(o,{emit:p}){let m=o,h=p,g=e(()=>m.modelValue,e=>{h(`update:modelValue`,e)},m.defaultValue??(m.multiple?[]:void 0)),_=t(m,[`modelValue`,`defaultValue`,`class`]);return(e,t)=>(l(),i(d(n),c(d(_),{modelValue:d(g),"onUpdate:modelValue":t[0]||(t[0]=e=>s(g)?g.value=e:null),onHighlight:t[1]||(t[1]=e=>h(`highlight`,e)),onEntryFocus:t[2]||(t[2]=e=>h(`entryFocus`,e)),onLeave:t[3]||(t[3]=e=>h(`leave`,e))}),{default:f(()=>[a(d(r),{as:o.as,"as-child":o.asChild},{default:f(()=>[u(e.$slots,`default`,{modelValue:d(g)})]),_:3},8,[`as`,`as-child`])]),_:3},16,[`modelValue`]))}});export{p as default};
|
|
@@ -7,8 +7,8 @@ import * as _$vue from "vue";
|
|
|
7
7
|
declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
8
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerRootProps<M> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
|
-
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
10
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
12
12
|
onLeave?: ((event: Event) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
|
|
|
20
20
|
modelValue: ((M extends true ? string[] : string) | undefined) & (M extends true ? string[] | undefined : string | undefined);
|
|
21
21
|
}) => any;
|
|
22
22
|
};
|
|
23
|
-
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "
|
|
23
|
+
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
|
|
24
24
|
}>) => _$vue.VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiClass } from "../../types/common.js";
|
|
2
|
+
import { UseUiConsumer } from "../../composables/use-ui-context.js";
|
|
2
3
|
import { ColorSwatchPickerUiSlot } from "./types.js";
|
|
3
4
|
import * as _$vue from "vue";
|
|
4
5
|
|
|
5
6
|
//#region src/components/color-swatch-picker/context.d.ts
|
|
6
|
-
declare const provideColorSwatchPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>, useColorSwatchPickerUi: <
|
|
7
|
+
declare const provideColorSwatchPickerUi: (ui: _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<ColorSwatchPickerUiSlot>>>, useColorSwatchPickerUi: UseUiConsumer<ColorSwatchPickerUiSlot>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { provideColorSwatchPickerUi };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../popper/popper-anchor.js";import"../popper/index.js";import{useComboboxUi as t}from"./context.js";import{createBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s,withCtx as c}from"vue";const l=r({name:`ComboboxAnchor`,__name:`combobox-anchor`,props:{reference:{},asChild:{type:Boolean},as:{}},setup(r){let l=t(`anchor`);return(t,u)=>(a(),n(s(e),{as:r.as,"as-child":r.asChild,class:i(s(l)),reference:r.reference,"data-slot":`anchor`},{default:c(()=>[o(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`reference`]))}});export{l as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComboboxAnchorProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/combobox/combobox-anchor.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ComboboxAnchorProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxAnchorProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../popper/popper-arrow.js";import"../popper/index.js";import{useComboboxContentContext as t,useComboboxRootContext as n,useComboboxUi as r}from"./context.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ComboboxArrow`,__name:`combobox-arrow`,setup(s){let p=r(`arrow`),{open:m}=n(`ComboboxArrow`),{position:h}=t(`ComboboxArrow`),g=i(()=>m.value&&h.value===`popper`);return(t,n)=>g.value?(l(),a(d(e),{key:0,class:c(d(p)),"data-slot":`arrow`},{default:f(()=>[u(t.$slots,`default`)]),_:3},8,[`class`])):o(`v-if`,!0)}});export{p as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComboboxArrowProps } from "./types.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/combobox/combobox-arrow.vue.d.ts
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: _$vue.DefineComponent<ComboboxArrowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useComboboxRootContext as t,useComboboxUi as n}from"./context.js";import{computed as r,createBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";const d=a({name:`ComboboxCancel`,__name:`combobox-cancel`,props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:`button`}},setup(a){let d=a,f=n(`cancel`),{disabled:p,inputElement:m,filterSearch:h,resetModelValueOnClear:g,resetModelValue:_}=t(`ComboboxCancel`),v=r(()=>d.disabled||p.value||!1),y=r(()=>d.as===`button`?`button`:void 0),b=r(()=>v.value?-1:d.as===`button`?void 0:0),x=()=>{if(v.value)return;h.value=``;let e=m.value;e&&(e.value=``,e.dispatchEvent(new Event(`input`,{bubbles:!0})),e.dispatchEvent(new Event(`change`,{bubbles:!0})),e.focus()),g.value&&_()};return(t,n)=>(s(),i(l(e),{as:a.as,"as-child":a.asChild,class:o(l(f)),type:y.value,"aria-disabled":v.value||void 0,"data-disabled":v.value?``:void 0,disabled:v.value,tabindex:b.value,"data-slot":`cancel`,onClick:x},{default:u(()=>[c(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`class`,`type`,`aria-disabled`,`data-disabled`,`disabled`,`tabindex`]))}});export{d as default};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsTag } from "../primitive/types.js";
|
|
2
|
+
import { ComboboxCancelProps } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/combobox/combobox-cancel.vue.d.ts
|
|
6
|
+
declare var __VLS_10: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_10) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: _$vue.DefineComponent<ComboboxCancelProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxCancelProps> & Readonly<{}>, {
|
|
11
|
+
as: AsTag | _$vue.Component;
|
|
12
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { _default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../portal/portal.js";import r from"./combobox-root.js";import i from"./combobox-anchor.js";import a from"./combobox-cancel.js";import o from"./combobox-content.js";import s from"./combobox-empty.js";import c from"./combobox-group.js";import l from"./combobox-group-label.js";import u from"./combobox-input.js";import d from"./combobox-item.js";import f from"./combobox-item-indicator.js";import p from"./combobox-separator.js";import m from"./combobox-trigger.js";import h from"./combobox-viewport.js";import{getDisplayValue as g,getSelectedLabels as _,isGroupOption as v}from"./shared.js";import{Fragment as y,computed as b,createBlock as x,createCommentVNode as S,createElementBlock as C,createTextVNode as w,createVNode as T,defineComponent as E,guardReactiveProps as D,mergeProps as O,normalizeClass as k,normalizeProps as A,openBlock as j,renderList as M,renderSlot as N,toDisplayString as P,unref as F,withCtx as I}from"vue";const L=E({name:`ComboboxCompact`,__name:`combobox-compact`,props:{items:{},placeholder:{},searchPlaceholder:{},clearLabel:{default:`Clear input`},emptyLabel:{default:`No results found.`},anchorProps:{},triggerProps:{},cancelProps:{},portalProps:{},contentProps:{},viewportProps:{},inputProps:{},emptyProps:{},groupProps:{},groupLabelProps:{},itemProps:{},itemIndicatorProps:{},separatorProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},openOnFocus:{type:Boolean},openOnClick:{type:Boolean},ignoreFilter:{type:Boolean},resetModelValueOnClear:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},clearable:{type:Boolean,default:!0},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`placed`,`select`],setup(E,{emit:L}){let R=E,z=L,B=e(R,[`items`,`placeholder`,`searchPlaceholder`,`clearLabel`,`emptyLabel`,`anchorProps`,`triggerProps`,`cancelProps`,`portalProps`,`contentProps`,`viewportProps`,`inputProps`,`emptyProps`,`groupProps`,`groupLabelProps`,`itemProps`,`itemIndicatorProps`,`separatorProps`]),V=e=>R.multiple?``:g(e,R.items),H=b(()=>R.inputProps?.controlProps?.[`aria-label`]??R.searchPlaceholder??R.placeholder??`Search`),U=b(()=>({...R.inputProps,displayValue:R.inputProps?.displayValue??V,controlProps:{...R.inputProps?.controlProps,"aria-label":H.value},placeholder:R.searchPlaceholder??R.inputProps?.placeholder,autofocus:R.inputProps?.autofocus??!0})),W=b(()=>({...R.viewportProps,"aria-label":R.viewportProps?.[`aria-label`]??R.placeholder??`Options`})),G=b(()=>({...R.anchorProps,asChild:R.anchorProps?.asChild??!0})),K=(e,t)=>v(e)?`group-${e.label}-${t}`:e.value,q=e=>_(e,R.items),J=e=>{let t=q(e);return t.length?t.join(`, `):R.placeholder},Y=e=>({...R.triggerProps,"aria-label":R.triggerProps?.[`aria-label`]??J(e),"data-placeholder":q(e).length?void 0:``});return(e,g)=>(j(),x(r,O(F(B),{onHighlight:g[7]||(g[7]=e=>z(`highlight`,e)),"onUpdate:modelValue":g[8]||(g[8]=e=>z(`update:modelValue`,e)),"onUpdate:open":g[9]||(g[9]=e=>z(`update:open`,e))}),{default:I(({modelValue:r})=>[T(i,A(D(G.value)),{default:I(()=>[T(m,A(D(Y(r))),{default:I(({triggerIconClass:n})=>[N(e.$slots,`trigger-leading`),N(e.$slots,`trigger-value`,{modelValue:r,selectedLabels:q(r),slotText:J(r)},()=>[w(P(J(r)),1)]),N(e.$slots,`trigger-trailing`),N(e.$slots,`trigger-icon`,{},()=>[T(t,{icon:`lucide:chevrons-up-down`,class:k(n)},null,8,[`class`])])]),_:2},1040)]),_:2},1040),T(n,A(D(E.portalProps)),{default:I(()=>[T(o,O(E.contentProps,{onCloseAutoFocus:g[2]||(g[2]=e=>z(`closeAutoFocus`,e)),onEscapeKeyDown:g[3]||(g[3]=e=>z(`escapeKeyDown`,e)),onPointerDownOutside:g[4]||(g[4]=e=>z(`pointerDownOutside`,e)),onFocusOutside:g[5]||(g[5]=e=>z(`focusOutside`,e)),onInteractOutside:g[6]||(g[6]=e=>z(`interactOutside`,e))}),{default:I(()=>[T(u,A(D(U.value)),{leading:I(n=>[N(e.$slots,`input-leading`,A(D(n)),()=>[T(t,{icon:`lucide:search`})])]),trailing:I(n=>[E.clearable?(j(),x(a,O({key:0},E.cancelProps,{"aria-label":E.clearLabel}),{default:I(()=>[T(t,{icon:`lucide:x`})]),_:1},16,[`aria-label`])):S(`v-if`,!0),N(e.$slots,`input-trailing`,A(D(n)))]),_:3},16),T(s,A(D(E.emptyProps)),{default:I(()=>[N(e.$slots,`empty`,{},()=>[w(P(E.emptyLabel),1)])]),_:3},16),T(h,A(D(W.value)),{default:I(()=>[(j(!0),C(y,null,M(E.items,(n,r)=>(j(),C(y,{key:K(n,r)},[F(v)(n)?(j(),C(y,{key:0},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(c,O({ref_for:!0},E.groupProps),{default:I(()=>[T(l,O({ref_for:!0},E.groupLabelProps),{default:I(()=>[N(e.$slots,`group-label`,{item:n},()=>[w(P(n.label),1)])]),_:2},1040),(j(!0),C(y,null,M(n.items,n=>(j(),C(y,{key:n.value},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[0]||(g[0]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(f,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))),128))]),_:2},1040)],64)):(j(),C(y,{key:1},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[1]||(g[1]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(f,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))],64))),128))]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16))}});export{L as default};
|