@soybeanjs/headless 0.0.7 → 0.0.8
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/accordion/accordion-content.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
- package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
- package/dist/components/accordion/accordion-root.vue.d.ts +4 -4
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
- package/dist/components/alert/alert-close.vue.d.ts +2 -2
- package/dist/components/alert/alert-content.vue.d.ts +2 -2
- package/dist/components/alert/alert-description.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.d.ts +4 -4
- package/dist/components/alert/alert-title.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
- package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
- package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
- package/dist/components/arrow/arrow.js +1 -1
- package/dist/components/arrow/arrow.vue.d.ts +2 -18
- package/dist/components/arrow/index.d.ts +1 -2
- package/dist/components/arrow/index.js +1 -1
- package/dist/components/arrow/types.d.ts +1 -15
- package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/badge/badge-content.vue.d.ts +2 -2
- package/dist/components/badge/badge-root.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
- package/dist/components/button/button.vue.d.ts +5 -5
- package/dist/components/card/card-content.vue.d.ts +2 -2
- package/dist/components/card/card-description.vue.d.ts +2 -2
- package/dist/components/card/card-footer.vue.d.ts +2 -2
- package/dist/components/card/card-header.vue.d.ts +2 -2
- package/dist/components/card/card-root.vue.d.ts +2 -2
- package/dist/components/card/card-title-root.vue.d.ts +2 -2
- package/dist/components/card/card-title.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group-root.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
- package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
- package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
- package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
- package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
- package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
- package/dist/components/context-menu/context-menu-content.js +1 -1
- package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
- package/dist/components/context-menu/context-menu-trigger.vue.d.ts +6 -6
- package/dist/components/context-menu/index.d.ts +3 -4
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-content-impl.js +1 -1
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-content.vue.d.ts +8 -8
- package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
- package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/dropdown-menu/context.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +5 -5
- package/dist/components/dropdown-menu/dropdown-menu-trigger.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
- package/dist/components/dropdown-menu/index.d.ts +3 -4
- package/dist/components/form/form-description.vue.d.ts +2 -2
- package/dist/components/form/form-error.vue.d.ts +2 -2
- package/dist/components/form/form-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form-label.vue.d.ts +2 -2
- package/dist/components/input/input-control.vue.d.ts +2 -2
- package/dist/components/input/input-root.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +2 -2
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-footer.vue.d.ts +2 -2
- package/dist/components/layout/layout-header.vue.d.ts +2 -2
- package/dist/components/layout/layout-main.vue.d.ts +2 -2
- package/dist/components/layout/layout-mobile.vue.d.ts +4 -4
- package/dist/components/layout/layout-rail.vue.d.ts +2 -2
- package/dist/components/layout/layout-root.vue.d.ts +4 -4
- package/dist/components/layout/layout-sidebar.vue.d.ts +5 -5
- package/dist/components/layout/layout-tab.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/link/link.vue.d.ts +5 -5
- package/dist/components/list/list-content.vue.d.ts +2 -2
- package/dist/components/list/list-description.vue.d.ts +2 -2
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list-root.vue.d.ts +2 -2
- package/dist/components/list/list-title.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-filter.vue.d.ts +6 -6
- package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
- package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
- package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
- package/dist/components/listbox/listbox-root.vue.d.ts +6 -6
- package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
- package/dist/components/menu/context.js +1 -1
- package/dist/components/menu/index.d.ts +3 -4
- package/dist/components/menu/menu-checkbox-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-checkbox-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-content-impl.js +1 -1
- package/dist/components/menu/menu-content.js +1 -1
- package/dist/components/menu/menu-content.vue.d.ts +11 -11
- package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
- package/dist/components/menu/menu-group.vue.d.ts +2 -2
- package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
- package/dist/components/menu/menu-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-radio-group.vue.d.ts +4 -4
- package/dist/components/menu/menu-radio-item.vue.d.ts +6 -6
- package/dist/components/menu/menu-root.js +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub-content.js +1 -1
- package/dist/components/menu/menu-sub-content.vue.d.ts +10 -10
- package/dist/components/menu/menu-sub-trigger.js +1 -1
- package/dist/components/menu/menu-sub-trigger.vue.d.ts +4 -4
- package/dist/components/menu/menu-sub.js +1 -1
- package/dist/components/menu/menu-sub.vue.d.ts +4 -4
- package/dist/components/menu/shared.js +1 -1
- package/dist/components/menu/types.d.ts +7 -12
- package/dist/components/navigation-menu/navigation-menu-content-impl.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-indicator.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +6 -6
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-root.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +6 -5
- package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu-trigger.js +1 -1
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
- package/dist/components/navigation-menu/types.d.ts +3 -1
- package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
- package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
- package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
- package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
- package/dist/components/pagination/pagination-root.vue.d.ts +5 -5
- package/dist/components/popover/context.js +1 -1
- package/dist/components/popover/index.d.ts +7 -7
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
- package/dist/components/popover/popover-close.vue.d.ts +4 -4
- package/dist/components/popover/popover-popup.js +1 -0
- package/dist/components/popover/popover-popup.vue.d.ts +18 -0
- package/dist/components/popover/popover-positioner-impl.js +1 -0
- package/dist/components/popover/popover-positioner.js +1 -0
- package/dist/components/popover/{popover-content.vue.d.ts → popover-positioner.vue.d.ts} +10 -10
- package/dist/components/popover/popover-root.js +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +5 -4
- package/dist/components/popover/popover-trigger.js +1 -1
- package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
- package/dist/components/popover/types.d.ts +8 -7
- package/dist/components/popper/context.d.ts +6 -16
- package/dist/components/popper/context.js +1 -1
- package/dist/components/popper/index.d.ts +6 -6
- package/dist/components/popper/index.js +1 -1
- package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
- package/dist/components/popper/popper-arrow.js +1 -1
- package/dist/components/popper/popper-arrow.vue.d.ts +3 -14
- package/dist/components/popper/popper-popup.js +1 -0
- package/dist/components/popper/popper-popup.vue.d.ts +18 -0
- package/dist/components/popper/popper-positioner.js +1 -0
- package/dist/components/popper/{popper-content.vue.d.ts → popper-positioner.vue.d.ts} +26 -26
- package/dist/components/popper/popper-root.vue.d.ts +2 -2
- package/dist/components/popper/shared.js +1 -1
- package/dist/components/popper/types.d.ts +10 -15
- package/dist/components/portal/portal.vue.d.ts +3 -3
- package/dist/components/primitive/primitive.d.ts +2 -2
- package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group-root.vue.d.ts +4 -4
- package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
- package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
- package/dist/components/select/context.js +1 -1
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/select-arrow.js +1 -1
- package/dist/components/select/select-arrow.vue.d.ts +3 -3
- package/dist/components/select/select-bubble-select.js +1 -0
- package/dist/components/select/select-content-impl.js +1 -1
- package/dist/components/select/select-content.js +1 -1
- package/dist/components/select/select-content.vue.d.ts +11 -11
- package/dist/components/select/select-group-label.vue.d.ts +2 -2
- package/dist/components/select/select-group.vue.d.ts +2 -2
- package/dist/components/select/select-item-aligned-popup.js +1 -0
- package/dist/components/select/select-item-aligned-positioner.js +1 -0
- package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
- package/dist/components/select/select-item-text.vue.d.ts +2 -2
- package/dist/components/select/select-item.vue.d.ts +4 -4
- package/dist/components/select/select-popper-popup.js +1 -0
- package/dist/components/select/select-root.js +1 -1
- package/dist/components/select/select-root.vue.d.ts +7 -7
- package/dist/components/select/select-scroll-down-button.vue.d.ts +4 -4
- package/dist/components/select/select-scroll-up-button.vue.d.ts +4 -4
- package/dist/components/select/select-separator.vue.d.ts +2 -2
- package/dist/components/select/select-teleport-provider.js +1 -1
- package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
- package/dist/components/select/select-trigger.vue.d.ts +4 -4
- package/dist/components/select/select-value.vue.d.ts +3 -3
- package/dist/components/select/select-viewport.js +1 -1
- package/dist/components/select/select-viewport.vue.d.ts +2 -2
- package/dist/components/select/shared.js +1 -1
- package/dist/components/select/types.d.ts +6 -5
- package/dist/components/separator/separator-label.vue.d.ts +2 -2
- package/dist/components/separator/separator-root.vue.d.ts +3 -3
- package/dist/components/separator/types.d.ts +1 -1
- package/dist/components/slot/slot.d.ts +2 -2
- package/dist/components/switch/switch-control.vue.d.ts +2 -2
- package/dist/components/switch/switch-root.vue.d.ts +4 -4
- package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
- package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
- package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
- package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
- package/dist/components/toast/toast-action.vue.d.ts +4 -4
- package/dist/components/toast/toast-close.vue.d.ts +4 -4
- package/dist/components/toast/toast-description.vue.d.ts +2 -2
- package/dist/components/toast/toast-provider.vue.d.ts +3 -3
- package/dist/components/toast/toast-root.vue.d.ts +10 -10
- package/dist/components/toast/toast-title.vue.d.ts +2 -2
- package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
- package/dist/components/tooltip/context.js +1 -1
- package/dist/components/tooltip/index.d.ts +7 -7
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooltip/tooltip-popup.js +1 -0
- package/dist/components/tooltip/tooltip-popup.vue.d.ts +18 -0
- package/dist/components/tooltip/tooltip-positioner-impl.js +1 -0
- package/dist/components/tooltip/tooltip-positioner.js +1 -0
- package/dist/components/tooltip/{tooltip-content.vue.d.ts → tooltip-positioner.vue.d.ts} +8 -8
- package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
- package/dist/components/tooltip/tooltip-trigger.js +1 -1
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
- package/dist/components/tooltip/types.d.ts +7 -6
- package/dist/components/tree/tree-item.vue.d.ts +7 -7
- package/dist/components/tree/tree-root.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer-item.vue.d.ts +6 -6
- package/dist/components/tree/tree-virtualizer-root.vue.d.ts +4 -4
- package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
- package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
- package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
- package/dist/composables/index.d.ts +4 -2
- package/dist/composables/index.js +1 -1
- package/dist/composables/use-collection.d.ts +6 -6
- package/dist/composables/use-direction.d.ts +2 -2
- package/dist/composables/use-dismissable-layer.d.ts +6 -15
- package/dist/composables/use-dismissable-layer.js +1 -1
- package/dist/composables/use-exposed-element.d.ts +2 -2
- package/dist/composables/use-floating.d.ts +86 -0
- package/dist/composables/use-floating.js +1 -0
- package/dist/composables/use-focus-scope.d.ts +0 -3
- package/dist/composables/use-focus-scope.js +1 -1
- package/dist/composables/use-forward-element.d.ts +2 -2
- package/dist/composables/use-grace-area.d.ts +2 -2
- package/dist/composables/use-grace-area.js +1 -1
- package/dist/composables/use-image-loading-status.d.ts +2 -2
- package/dist/composables/use-is-using-keyboard.d.ts +2 -2
- package/dist/composables/use-kbd.d.ts +2 -2
- package/dist/composables/use-locale.d.ts +2 -2
- package/dist/composables/use-nonce.d.ts +2 -2
- package/dist/composables/use-popup-events.d.ts +23 -0
- package/dist/composables/use-popup-events.js +1 -0
- package/dist/composables/use-presence.d.ts +2 -2
- package/dist/composables/use-props.d.ts +3 -3
- package/dist/composables/use-selection.d.ts +4 -4
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +71 -69
- package/dist/index.js +1 -1
- package/dist/namespaced/index.d.ts +376 -370
- package/dist/namespaced/index.js +1 -1
- package/dist/shared/event.js +1 -1
- package/package.json +12 -32
- package/dist/components/arrow/context.d.ts +0 -8
- package/dist/components/arrow/context.js +0 -1
- package/dist/components/dialog/shared.js +0 -1
- package/dist/components/popover/popover-content-impl.js +0 -1
- package/dist/components/popover/popover-content.js +0 -1
- package/dist/components/popper/popper-content.js +0 -1
- package/dist/components/select/bubble-select.js +0 -1
- package/dist/components/select/select-item-aligned-position.js +0 -1
- package/dist/components/select/select-popper-position.js +0 -1
- package/dist/components/tooltip/tooltip-content-impl.js +0 -1
- package/dist/components/tooltip/tooltip-content.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue187 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue187.DefineComponent<ListContentProps, {}, {}, {}, {}, vue187.ComponentOptionsMixin, vue187.ComponentOptionsMixin, {}, string, vue187.PublicProps, Readonly<ListContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue187.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListDescriptionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue192 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-description.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue192.DefineComponent<ListDescriptionProps, {}, {}, {}, {}, vue192.ComponentOptionsMixin, vue192.ComponentOptionsMixin, {}, string, vue192.PublicProps, Readonly<ListDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, vue192.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue182 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-item.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue182.DefineComponent<ListItemProps, {}, {}, {}, {}, vue182.ComponentOptionsMixin, vue182.ComponentOptionsMixin, {}, string, vue182.PublicProps, Readonly<ListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue182.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListRootProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue177 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-root.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue177.DefineComponent<ListRootProps, {}, {}, {}, {}, vue177.ComponentOptionsMixin, vue177.ComponentOptionsMixin, {}, string, vue177.PublicProps, Readonly<ListRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue177.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListTitleProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue197 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-title.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue197.DefineComponent<ListTitleProps, {}, {}, {}, {}, vue197.ComponentOptionsMixin, vue197.ComponentOptionsMixin, {}, string, vue197.PublicProps, Readonly<ListTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue197.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxContentProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1443 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-content.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1443.DefineComponent<ListboxContentProps, {}, {}, {}, {}, vue1443.ComponentOptionsMixin, vue1443.ComponentOptionsMixin, {}, string, vue1443.PublicProps, Readonly<ListboxContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1443.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ListboxFilterProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1448 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-filter.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
6
6
|
clear: () => void;
|
|
7
|
-
},
|
|
7
|
+
}, __VLS_21: {
|
|
8
8
|
clear: () => void;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
leading?: (props: typeof __VLS_10) => any;
|
|
12
12
|
} & {
|
|
13
|
-
trailing?: (props: typeof
|
|
13
|
+
trailing?: (props: typeof __VLS_21) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue1448.DefineComponent<ListboxFilterProps, {}, {}, {}, {}, vue1448.ComponentOptionsMixin, vue1448.ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (value: string) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue1448.PublicProps, Readonly<ListboxFilterProps> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue1448.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1470 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-group-label.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1470.DefineComponent<ListboxGroupLabelProps, {}, {}, {}, {}, vue1470.ComponentOptionsMixin, vue1470.ComponentOptionsMixin, {}, string, vue1470.PublicProps, Readonly<ListboxGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1470.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListboxGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1465 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-group.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1465.DefineComponent<ListboxGroupProps, {}, {}, {}, {}, vue1465.ComponentOptionsMixin, vue1465.ComponentOptionsMixin, {}, string, vue1465.PublicProps, Readonly<ListboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1465.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { ListboxItemIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1459 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/listbox-item-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue1459.DefineComponent<ListboxItemIndicatorProps, {}, {}, {}, {}, vue1459.ComponentOptionsMixin, vue1459.ComponentOptionsMixin, {}, string, vue1459.PublicProps, Readonly<ListboxItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1459.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1459.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -3,20 +3,20 @@ import "../../types/index.js";
|
|
|
3
3
|
import { AsTag } from "../primitive/types.js";
|
|
4
4
|
import "../primitive/index.js";
|
|
5
5
|
import { ListboxItemProps } from "./types.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vue1453 from "vue";
|
|
7
7
|
|
|
8
8
|
//#region src/components/listbox/listbox-item.vue.d.ts
|
|
9
9
|
declare var __VLS_12: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_12) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue1453.DefineComponent<ListboxItemProps, {}, {}, {}, {}, vue1453.ComponentOptionsMixin, vue1453.ComponentOptionsMixin, {
|
|
14
14
|
select: (event: SelectEvent<string>) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue1453.PublicProps, Readonly<ListboxItemProps> & Readonly<{
|
|
16
16
|
onSelect?: ((event: SelectEvent<string>) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
as: AsTag |
|
|
19
|
-
}, {}, {}, {}, string,
|
|
18
|
+
as: AsTag | vue1453.Component;
|
|
19
|
+
}, {}, {}, {}, string, vue1453.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CollectionItemData } from "../../composables/use-collection.js";
|
|
2
2
|
import "../../composables/index.js";
|
|
3
3
|
import { ListboxCollectionItemData, ListboxRootProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1403 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/listbox/listbox-root.vue.d.ts
|
|
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
|
-
props: __VLS_PrettifyLocal<ListboxRootProps<M> & {
|
|
8
|
+
props: vue1403.PublicProps & __VLS_PrettifyLocal<ListboxRootProps<M> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
10
10
|
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
11
|
onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
12
12
|
onLeave?: ((event: Event) => any) | undefined;
|
|
13
|
-
}> &
|
|
13
|
+
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
15
|
} ? P : {});
|
|
16
|
-
expose: (exposed:
|
|
17
|
-
highlightedElement:
|
|
16
|
+
expose: (exposed: vue1403.ShallowUnwrapRef<{
|
|
17
|
+
highlightedElement: vue1403.ShallowRef<HTMLElement | null, HTMLElement | null>;
|
|
18
18
|
highlightItem: (value: string) => void;
|
|
19
19
|
highlightFirstItem: () => void;
|
|
20
20
|
highlightSelected: (event?: Event) => Promise<void>;
|
|
@@ -27,7 +27,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
|
|
|
27
27
|
}) => any;
|
|
28
28
|
};
|
|
29
29
|
emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
|
|
30
|
-
}>) =>
|
|
30
|
+
}>) => vue1403.VNode & {
|
|
31
31
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
32
|
};
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ListboxVirtualizerProps, ListboxVirtualizerSlots } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1475 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/listbox/listbox-virtualizer.vue.d.ts
|
|
5
5
|
type __VLS_Slots = ListboxVirtualizerSlots;
|
|
6
|
-
declare const __VLS_base:
|
|
6
|
+
declare const __VLS_base: vue1475.DefineComponent<ListboxVirtualizerProps, {}, {}, {}, {}, vue1475.ComponentOptionsMixin, vue1475.ComponentOptionsMixin, {}, string, vue1475.PublicProps, Readonly<ListboxVirtualizerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1475.ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getDisclosureState as e}from"../../shared/value.js";import{isPointerInGraceArea as t}from"../../shared/geometry.js";import{useContext as n}from"../../composables/use-context.js";import{useDirection as r}from"../../composables/use-direction.js";import{
|
|
1
|
+
import{getDisclosureState as e}from"../../shared/value.js";import{isPointerInGraceArea as t}from"../../shared/geometry.js";import{useContext as n}from"../../composables/use-context.js";import{useDirection as r}from"../../composables/use-direction.js";import{provideSeparatorThemeContext as i}from"../separator/context.js";import{providePopperThemeContext as a}from"../popper/context.js";import{computed as o,ref as s,shallowRef as c,useId as l}from"vue";const[u,d]=n(`Menu`,t=>{let{isRoot:n,open:r}=t,i=e=>{r.value=e},a=o(()=>e(r.value)),s=n?`data-soybean-menu-popup`:`data-soybean-menu-sub-popup`,u=c(),d=e=>{u.value=e},f=c(),p=e=>{f.value=e},m=n?`soybean-menu`:`soybean-menu-sub`,h=c(``),g=()=>{h.value||=`${m}-popup-${l()}`},_=c(``);return{isRoot:n,open:r,onOpenChange:i,dataState:a,dataPopupAttr:s,popupElement:u,onPopupElementChange:d,triggerElement:f,onTriggerElementChange:p,popupId:h,initPopupId:g,triggerId:_,initTriggerId:()=>{_.value||=`${m}-trigger-${l()}`}}}),[f,p]=n(`MenuRoot`,e=>{let t=r(e.dir);return{...e,dir:t}}),[m,h]=n(`MenuContent`,e=>{let{popupElement:n}=e,r=c(``),i=s(null),a=c(0),o=c(`right`),l=s(null),u=e=>{l.value=e},d=()=>{l.value=null},f=e=>{let n=o.value===l.value?.side,r=t(e,l.value?.area);return n&&r};return{searchRef:r,currentItemId:i,popupElement:n,pointerSide:o,pointerGraceTimer:a,pointerGraceIntent:l,onPointerGraceIntentChange:u,resetPointerGraceIntent:d,onItemEnter:f,onItemLeave:e=>{f(e)||(n.value?.focus(),i.value=null)},onTriggerLeave:f}}),[g,_]=n(`MenuCheckboxGroup`,e=>{let{modelValue:t}=e,n=e=>{t.value||=[],t.value.includes(e)?t.value=t.value.filter(t=>t!==e):t.value.push(e)};return{...e,onModelValueChange:n}}),[v,y]=n(`MenuRadioGroup`,e=>{let{modelValue:t}=e,n=e=>{t.value=e};return{...e,onModelValueChange:n}}),[b,x]=n(`MenuItemIndicator`,e=>e),[S,C]=n(`MenuTheme`,e=>(a({ui:o(()=>({arrow:e.ui.value.arrow}))}),i({ui:o(()=>({root:e.ui.value.separator}))}),e));export{g as provideMenuCheckboxGroupContext,m as provideMenuContentContext,u as provideMenuContext,b as provideMenuItemIndicatorContext,v as provideMenuRadioGroupContext,f as provideMenuRootContext,S as provideMenuThemeContext,_ as useMenuCheckboxGroupContext,h as useMenuContentContext,d as useMenuContext,x as useMenuItemIndicatorContext,y as useMenuRadioGroupContext,p as useMenuRootContext,C as useMenuThemeContext};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PortalProps } from "../portal/types.js";
|
|
2
2
|
import { _default as _default$9 } from "../portal/portal.vue.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemEmits, MenuCheckboxItemProps, MenuContentEmits, MenuContentProps, MenuGroupLabelProps, MenuGroupProps, MenuItemEmits, MenuItemIndicatorProps, MenuItemProps, MenuRadioGroupEmits, MenuRadioGroupProps, MenuRadioItemEmits, MenuRadioItemProps, MenuRootEmits, MenuRootProps, MenuSubContentEmits, MenuSubContentProps, MenuSubEmits, MenuSubProps, MenuSubTriggerProps, MenuThemeSlot, MenuTriggerProps, MenuUi } from "./types.js";
|
|
3
|
+
import { PopperAnchorProps, PopperArrowProps } from "../popper/types.js";
|
|
4
|
+
import { MenuCheckboxGroupEmits, MenuCheckboxGroupProps, MenuCheckboxItemEmits, MenuCheckboxItemProps, MenuContentEmits, MenuContentProps, MenuGroupLabelProps, MenuGroupProps, MenuItemEmits, MenuItemIndicatorProps, MenuItemProps, MenuPopupProps, MenuRadioGroupEmits, MenuRadioGroupProps, MenuRadioItemEmits, MenuRadioItemProps, MenuRootEmits, MenuRootProps, MenuSubContentEmits, MenuSubContentProps, MenuSubEmits, MenuSubProps, MenuSubTriggerProps, MenuThemeSlot, MenuTriggerProps, MenuUi } from "./types.js";
|
|
6
5
|
import { SeparatorRootProps } from "../separator/types.js";
|
|
7
6
|
import { _default as _default$13 } from "../separator/separator-root.vue.js";
|
|
8
7
|
import { _default } from "../popper/popper-anchor.vue.js";
|
|
@@ -21,4 +20,4 @@ import { _default as _default$10 } from "./menu-radio-group.vue.js";
|
|
|
21
20
|
import { _default as _default$11 } from "./menu-radio-item.vue.js";
|
|
22
21
|
import { _default as _default$8 } from "./menu-item-indicator.vue.js";
|
|
23
22
|
import { provideMenuThemeContext, useMenuThemeContext } from "./context.js";
|
|
24
|
-
export { _default as MenuAnchor, type PopperAnchorProps as MenuAnchorProps, _default$1 as MenuArrow, type
|
|
23
|
+
export { _default as MenuAnchor, type PopperAnchorProps as MenuAnchorProps, _default$1 as MenuArrow, type PopperArrowProps as MenuArrowProps, _default$2 as MenuCheckboxGroup, type MenuCheckboxGroupEmits, type MenuCheckboxGroupProps, _default$3 as MenuCheckboxItem, type MenuCheckboxItemEmits, type MenuCheckboxItemProps, _default$4 as MenuContent, type MenuContentEmits, type MenuContentProps, _default$5 as MenuGroup, _default$6 as MenuGroupLabel, type MenuGroupLabelProps, type MenuGroupProps, _default$7 as MenuItem, type MenuItemEmits, _default$8 as MenuItemIndicator, type MenuItemIndicatorProps, type MenuItemProps, type MenuPopupProps, _default$9 as MenuPortal, type PortalProps as MenuPortalProps, _default$10 as MenuRadioGroup, type MenuRadioGroupEmits, type MenuRadioGroupProps, _default$11 as MenuRadioItem, type MenuRadioItemEmits, type MenuRadioItemProps, _default$12 as MenuRoot, type MenuRootEmits, type MenuRootProps, _default$13 as MenuSeparator, type SeparatorRootProps as MenuSeparatorProps, _default$14 as MenuSub, _default$15 as MenuSubContent, type MenuSubContentEmits, type MenuSubContentProps, type MenuSubEmits, type MenuSubProps, _default$16 as MenuSubTrigger, type MenuSubTriggerProps, type MenuThemeSlot, type MenuTriggerProps, type MenuUi, provideMenuThemeContext, useMenuThemeContext };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DefinedValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { MenuCheckboxGroupProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1281 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-checkbox-group.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__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
|
-
props: __VLS_PrettifyLocal<MenuCheckboxGroupProps<T> & {
|
|
8
|
+
props: vue1281.PublicProps & __VLS_PrettifyLocal<MenuCheckboxGroupProps<T> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
20
|
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
21
|
-
}>) =>
|
|
21
|
+
}>) => vue1281.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { CheckedState } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { MenuCheckboxItemProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1283 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-checkbox-item.vue.d.ts
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_10: {
|
|
8
8
|
modelValue: CheckedState;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_10) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue1283.DefineComponent<MenuCheckboxItemProps, {}, {}, {}, {}, vue1283.ComponentOptionsMixin, vue1283.ComponentOptionsMixin, {
|
|
14
14
|
select: (event: Event) => any;
|
|
15
15
|
"update:modelValue": (value: CheckedState) => any;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, vue1283.PublicProps, Readonly<MenuCheckboxItemProps> & Readonly<{
|
|
17
17
|
onSelect?: ((event: Event) => any) | undefined;
|
|
18
18
|
"onUpdate:modelValue"?: ((value: CheckedState) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue1283.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COLLECTION_ITEM_ATTRIBUTE as e}from"../../constants/attr.js";import{useArrowNavigation as t}from"../../composables/use-arrow-navigation.js";import{getActiveElement as n}from"../../shared/dom.js";import{tryFocusFirst as
|
|
1
|
+
import{COLLECTION_ITEM_ATTRIBUTE as e}from"../../constants/attr.js";import{useArrowNavigation as t}from"../../composables/use-arrow-navigation.js";import{getActiveElement as n}from"../../shared/dom.js";import{tryFocusFirst as ee}from"../../shared/focus.js";import{isMouseEvent as r}from"../../shared/event.js";import{useBodyScrollLock as i}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as a}from"../../composables/use-dismissable-layer.js";import{useForwardElement as o}from"../../composables/use-forward-element.js";import{useFocusGuards as s}from"../../composables/use-focus-guards.js";import{useFocusScope as c}from"../../composables/use-focus-scope.js";import{useHideOthers as l}from"../../composables/use-hide-others.js";import{useOmitProps as te}from"../../composables/use-props.js";import{useTypeahead as ne}from"../../composables/use-typeahead.js";import u from"../roving-focus/roving-focus-group.js";import{popperCssVars as d}from"../popper/shared.js";import re from"../popper/popper-positioner.js";import ie from"../popper/popper-popup.js";import{provideMenuContentContext as f,useMenuContext as p,useMenuRootContext as m,useMenuThemeContext as h}from"./context.js";import{FIRST_LAST_KEYS as g,LAST_KEYS as _,MENU_POPUP_DATA_ATTRIBUTE as v,menuCssVars as y,subMenuCssVars as b}from"./shared.js";import{computed as x,createBlock as ae,createVNode as S,defineComponent as C,isRef as w,mergeProps as T,onWatcherCleanup as E,openBlock as D,renderSlot as O,unref as k,useTemplateRef as A,watchEffect as j,withCtx as M}from"vue";var N=C({name:`MenuContentImpl`,__name:`menu-content-impl`,props:{popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},loop:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`],setup(C,{emit:N}){let P=C,F=N,{modal:I,dir:L,isUsingKeyboard:R}=m(`MenuContentImpl`),{isRoot:z,dataState:B,popupId:V,triggerId:H,dataPopupAttr:oe,initPopupId:U,onOpenChange:W,onPopupElementChange:G}=p(`MenuContentImpl`),[K,q]=o(),[J,se]=o(e=>{G(e)}),{currentItemId:Y,searchRef:ce,pointerSide:le}=f({popupElement:J}),X=h(),Z=x(()=>z?X?.ui?.value?.positioner:X?.ui?.value?.subPositioner),ue=x(()=>z?X?.ui?.value?.popup:X?.ui?.value?.subPopup),{handleTypeaheadSearch:de}=ne(),Q=A(`rovingFocusGroupRef`),{pointerEvents:fe}=a(J,{disableOutsidePointerEvents:()=>P.disableOutsidePointerEvents,onEscapeKeyDown:e=>{F(`escapeKeyDown`,e)},onPointerDownOutside:e=>{F(`pointerDownOutside`,e)},onFocusOutside:e=>{F(`focusOutside`,e)},onInteractOutside:e=>{F(`interactOutside`,e)},onDismiss:()=>{z&&W(!1)}}),{onKeydown:pe}=c(K,{trapped:()=>P.trapFocus,onOpenAutoFocus:e=>{F(`openAutoFocus`,e),!e.defaultPrevented&&(e.preventDefault(),J.value?.focus({preventScroll:!0}))},onCloseAutoFocus:e=>{F(`closeAutoFocus`,e)}}),me=te(P,[`disableOutsidePointerEvents`,`trapFocus`,`loop`,`popupProps`]),he=x(()=>({...P.popupProps,[oe]:``})),ge=x(()=>{let e=z?y:b;return{[e.popupTransformOrigin]:`var(${d.transformOrigin})`,[e.popupAvailableWidth]:`var(${d.availableWidth})`,[e.popupAvailableHeight]:`var(${d.availableHeight})`,[e.triggerWidth]:`var(${d.anchorWidth})`,[e.triggerHeight]:`var(${d.anchorHeight})`,pointerEvents:fe.value}}),_e=e=>{F(`entryFocus`,e),R.value||e.preventDefault()},ve=r=>{if(pe(r),r.defaultPrevented)return;let i=r.target.closest(`[${v}]`)===r.currentTarget,a=r.ctrlKey||r.altKey||r.metaKey,o=r.key.length===1,s=t(r,n(),J.value,{loop:P.loop,arrowKeyOptions:`vertical`,dir:L.value,focus:!0,attributeName:`[${e}]:not([data-disabled])`});if(s){s.focus();return}if(r.code===`Space`)return;let c=Q.value?.getItems()??[];if(i&&(r.key===`Tab`&&r.preventDefault(),!a&&o&&de(r.key,c)),r.target!==J.value||!g.includes(r.key))return;r.preventDefault();let l=[...c.map(e=>e.element)];_.includes(r.key)&&l.reverse(),ee(l)};function ye(e){if(!e)return;let{currentTarget:t,target:n}=e;t?.contains(n)||(ce.value=``)}let $=0;function be(e){if(!r(e))return;let t=e.target,n=$!==e.clientX;(e?.currentTarget)?.contains(t)&&n&&(le.value=e.clientX>$?`right`:`left`,$=e.clientX)}return U(),s(),l(K,()=>I.value&&z),j(()=>{P.disableOutsidePointerEvents&&E(i())}),(e,t)=>(D(),ae(k(u),{ref_key:`rovingFocusGroupRef`,ref:Q,"current-tab-stop-id":k(Y),"onUpdate:currentTabStopId":t[0]||=e=>w(Y)?Y.value=e:null,"as-child":``,orientation:`vertical`,dir:k(L),loop:C.loop,onEntryFocus:_e},{default:M(()=>[S(k(re),T(k(me),{ref:k(q),class:Z.value,onKeydown:ve,onBlur:ye,onPointermove:be}),{default:M(()=>[S(k(ie),T(he.value,{id:k(V),ref:k(se),class:ue.value,"aria-labelledby":k(H),"aria-orientation":`vertical`,"data-dismissable-layer":``,"data-state":k(B),dir:k(L),role:`menu`,tabindex:`-1`,style:ge.value}),{default:M(()=>[O(e.$slots,`default`)]),_:3},16,[`id`,`class`,`aria-labelledby`,`data-state`,`dir`,`style`])]),_:3},16,[`class`])]),_:3},8,[`current-tab-stop-id`,`dir`,`loop`]))}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{usePresence as t}from"../../composables/use-presence.js";import{useOmitProps as n}from"../../composables/use-props.js";import{useMenuContext as r,useMenuRootContext as i}from"./context.js";import a from"./menu-content-impl.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,mergeProps as u,openBlock as d,renderSlot as f,shallowRef as p,toHandlers as m,unref as h,withCtx as g}from"vue";var _=l({name:`MenuContent`,__name:`menu-content`,props:{popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},forceMount:{type:Boolean},loop:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`entryFocus`],setup(l,{emit:_}){let v=l,y=_,b=n(v,[`forceMount`]),x=e(y),{open:S,popupElement:C}=r(`MenuContent`),{modal:w}=i(`MenuContent`),T=v.forceMount?p(!0):t(C,S),E=o(()=>w.value&&S.value),D=e=>{w.value&&e.preventDefault()};return(e,t)=>h(T)?(d(),s(a,u({key:0},h(b),{"trap-focus":E.value,"disable-outside-pointer-events":E.value},m(h(x)),{onFocusOutside:D}),{default:g(()=>[f(e.$slots,`default`)]),_:3},16,[`trap-focus`,`disable-outside-pointer-events`])):c(`v-if`,!0)}});export{_ as default};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { FocusOutsideEvent, PointerDownOutsideEvent } from "../../types/event.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { MenuContentProps } from "./types.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue1251 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/menu/menu-content.vue.d.ts
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_10: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
default?: (props: typeof
|
|
10
|
+
default?: (props: typeof __VLS_10) => any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_base:
|
|
13
|
-
closeAutoFocus: (event: Event) => any;
|
|
12
|
+
declare const __VLS_base: vue1251.DefineComponent<MenuContentProps, {}, {}, {}, {}, vue1251.ComponentOptionsMixin, vue1251.ComponentOptionsMixin, {
|
|
14
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
14
|
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
16
|
-
entryFocus: (event: Event) => any;
|
|
17
15
|
focusOutside: (event: FocusOutsideEvent) => any;
|
|
18
16
|
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
19
17
|
openAutoFocus: (event: Event) => any;
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
closeAutoFocus: (event: Event) => any;
|
|
19
|
+
entryFocus: (event: Event) => any;
|
|
20
|
+
}, string, vue1251.PublicProps, Readonly<MenuContentProps> & Readonly<{
|
|
22
21
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
23
22
|
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
24
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
25
23
|
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
26
24
|
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
27
25
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
|
-
|
|
26
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
27
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, vue1251.ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MenuGroupLabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1271 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-group-label.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1271.DefineComponent<MenuGroupLabelProps, {}, {}, {}, {}, vue1271.ComponentOptionsMixin, vue1271.ComponentOptionsMixin, {}, string, vue1271.PublicProps, Readonly<MenuGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1271.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MenuGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1266 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-group.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1266.DefineComponent<MenuGroupProps, {}, {}, {}, {}, vue1266.ComponentOptionsMixin, vue1266.ComponentOptionsMixin, {}, string, vue1266.PublicProps, Readonly<MenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1266.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { AsTag } from "../primitive/types.js";
|
|
2
2
|
import "../primitive/index.js";
|
|
3
3
|
import { MenuItemIndicatorProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1321 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-item-indicator.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
12
|
-
as: AsTag |
|
|
13
|
-
}, {}, {}, {}, string,
|
|
11
|
+
declare const __VLS_base: vue1321.DefineComponent<MenuItemIndicatorProps, {}, {}, {}, {}, vue1321.ComponentOptionsMixin, vue1321.ComponentOptionsMixin, {}, string, vue1321.PublicProps, Readonly<MenuItemIndicatorProps> & Readonly<{}>, {
|
|
12
|
+
as: AsTag | vue1321.Component;
|
|
13
|
+
}, {}, {}, {}, string, vue1321.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { MenuItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1276 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-item.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_13: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_13) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue1276.DefineComponent<MenuItemProps, {}, {}, {}, {}, vue1276.ComponentOptionsMixin, vue1276.ComponentOptionsMixin, {
|
|
10
10
|
select: (event: Event) => any;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, vue1276.PublicProps, Readonly<MenuItemProps> & Readonly<{
|
|
12
12
|
onSelect?: ((event: Event) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string,
|
|
13
|
+
}>, {}, {}, {}, {}, string, vue1276.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AcceptableBooleanValue } from "../../types/common.js";
|
|
2
2
|
import "../../types/index.js";
|
|
3
3
|
import { MenuRadioGroupProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue1288 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-radio-group.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends AcceptableBooleanValue>(__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
|
-
props: __VLS_PrettifyLocal<MenuRadioGroupProps<T> & {
|
|
8
|
+
props: vue1288.PublicProps & __VLS_PrettifyLocal<MenuRadioGroupProps<T> & {
|
|
9
9
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & (typeof globalThis extends {
|
|
11
11
|
__VLS_PROPS_FALLBACK: infer P;
|
|
12
12
|
} ? P : {});
|
|
13
13
|
expose: (exposed: {}) => void;
|
|
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
|
|
|
18
18
|
}) => any;
|
|
19
19
|
};
|
|
20
20
|
emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
|
|
21
|
-
}>) =>
|
|
21
|
+
}>) => vue1288.VNode & {
|
|
22
22
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
23
|
};
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { MenuRadioItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue1290 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/menu/menu-radio-item.vue.d.ts
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_10: {
|
|
6
6
|
modelValue: boolean;
|
|
7
7
|
};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue1290.DefineComponent<MenuRadioItemProps, {}, {}, {}, {}, vue1290.ComponentOptionsMixin, vue1290.ComponentOptionsMixin, {
|
|
12
12
|
select: (event: Event) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue1290.PublicProps, Readonly<MenuRadioItemProps> & Readonly<{
|
|
14
14
|
onSelect?: ((event: Event) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue1290.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useIsUsingKeyboard as n}from"../../composables/use-is-using-keyboard.js";import r from"../popper/popper-root.js";import{provideMenuContext as i,provideMenuRootContext as a}from"./context.js";import{createBlock as o,defineComponent as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";var f=s({name:`MenuRoot`,inheritAttrs:!1,__name:`menu-root`,props:{dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(s,{emit:f}){let p=s,m=f,h=t(()=>p.open,e=>{m(`update:open`,e??!1)},p.defaultOpen),g=n(),_=()=>{h.value=!1};return i({open:h}),a({...e(p,[`modal`,`dir`]),onClose:_,isUsingKeyboard:g}),(e,t)=>(c(),o(u(r),null,{default:d(()=>[l(e.$slots,`default`,{open:u(h)})]),_:3}))}});export{f as default};
|
|
1
|
+
import{transformPropsToContext as e}from"../../shared/vue.js";import{useControllableState as t}from"../../composables/use-controllable-state.js";import{useIsUsingKeyboard as n}from"../../composables/use-is-using-keyboard.js";import r from"../popper/popper-root.js";import{provideMenuContext as i,provideMenuRootContext as a}from"./context.js";import{createBlock as o,defineComponent as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";var f=s({name:`MenuRoot`,inheritAttrs:!1,__name:`menu-root`,props:{dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean,default:!0}},emits:[`update:open`],setup(s,{emit:f}){let p=s,m=f,h=t(()=>p.open,e=>{m(`update:open`,e??!1)},p.defaultOpen),g=n(),_=()=>{h.value=!1};return i({open:h,isRoot:!0}),a({...e(p,[`modal`,`dir`]),onClose:_,isUsingKeyboard:g}),(e,t)=>(c(),o(u(r),null,{default:d(()=>[l(e.$slots,`default`,{open:u(h)})]),_:3}))}});export{f as default};
|