@ark-ui/vue 5.29.0 → 5.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/anatomy.cjs +5 -0
- package/dist/components/anatomy.d.cts +1 -0
- package/dist/components/anatomy.d.ts +1 -0
- package/dist/components/anatomy.js +1 -0
- package/dist/components/checkbox/use-checkbox-group.cjs +10 -5
- package/dist/components/checkbox/use-checkbox-group.d.cts +2 -2
- package/dist/components/checkbox/use-checkbox-group.d.ts +2 -2
- package/dist/components/checkbox/use-checkbox-group.js +10 -5
- package/dist/components/color-picker/color-picker-root.vue.d.cts +1 -1
- package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
- package/dist/components/combobox/combobox-root.vue.d.cts +1 -1
- package/dist/components/combobox/combobox-root.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker-root.vue.cjs +6 -2
- package/dist/components/date-picker/date-picker-root.vue.d.cts +3 -2
- package/dist/components/date-picker/date-picker-root.vue.d.ts +3 -2
- package/dist/components/date-picker/date-picker-root.vue.js +6 -2
- package/dist/components/date-picker/date-picker.types.d.cts +8 -0
- package/dist/components/date-picker/date-picker.types.d.ts +8 -0
- package/dist/components/dialog/dialog-root.vue.d.cts +1 -1
- package/dist/components/dialog/dialog-root.vue.d.ts +1 -1
- package/dist/components/editable/editable-root.vue.d.cts +1 -1
- package/dist/components/editable/editable-root.vue.d.ts +1 -1
- package/dist/components/fieldset/fieldset-root.vue.cjs +4 -1
- package/dist/components/fieldset/fieldset-root.vue.js +4 -1
- package/dist/components/fieldset/use-fieldset.cjs +16 -9
- package/dist/components/fieldset/use-fieldset.d.cts +5 -0
- package/dist/components/fieldset/use-fieldset.d.ts +5 -0
- package/dist/components/fieldset/use-fieldset.js +16 -9
- package/dist/components/floating-panel/floating-panel-root.vue.d.cts +1 -2
- package/dist/components/floating-panel/floating-panel-root.vue.d.ts +1 -2
- package/dist/components/hover-card/hover-card-root.vue.d.cts +1 -1
- package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
- package/dist/components/index.cjs +4 -0
- package/dist/components/index.js +2 -0
- package/dist/components/menu/menu-root.vue.d.cts +1 -1
- package/dist/components/menu/menu-root.vue.d.ts +1 -1
- package/dist/components/navigation-menu/index.cjs +44 -0
- package/dist/components/navigation-menu/index.d.cts +18 -0
- package/dist/components/navigation-menu/index.d.ts +18 -0
- package/dist/components/navigation-menu/index.js +18 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue.cjs +29 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue.d.cts +19 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue.d.ts +19 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue.js +25 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-arrow.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue.cjs +57 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.cts +21 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +21 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue.js +53 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-content.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue.cjs +18 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue.d.cts +17 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue.d.ts +17 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue.js +14 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-context.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.cjs +35 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.cts +19 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +19 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue.js +31 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-indicator.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue.cjs +34 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue.d.cts +19 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue.d.ts +19 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue.js +30 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-item-indicator.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue.cjs +35 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.cts +20 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue.js +31 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-item.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue.cjs +38 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.cts +20 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue.js +34 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-link.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue.cjs +29 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.cts +19 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +19 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue.js +25 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-list.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue.cjs +35 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue.d.cts +19 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue.d.ts +19 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue.js +31 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-root-provider.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.cjs +51 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.cts +29 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +29 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue.js +47 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-root.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.cjs +40 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.cts +20 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue.js +36 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-trigger.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue.cjs +31 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue.d.cts +20 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue.js +27 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-viewport-positioner.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.cjs +39 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.cts +20 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +20 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue.js +35 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue2.cjs +9 -0
- package/dist/components/navigation-menu/navigation-menu-viewport.vue2.js +5 -0
- package/dist/components/navigation-menu/navigation-menu.anatomy.d.cts +1 -0
- package/dist/components/navigation-menu/navigation-menu.anatomy.d.ts +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +33 -0
- package/dist/components/navigation-menu/navigation-menu.d.cts +14 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +14 -0
- package/dist/components/navigation-menu/navigation-menu.js +13 -0
- package/dist/components/navigation-menu/navigation-menu.types.d.cts +64 -0
- package/dist/components/navigation-menu/navigation-menu.types.d.ts +64 -0
- package/dist/components/navigation-menu/use-navigation-menu-context.cjs +10 -0
- package/dist/components/navigation-menu/use-navigation-menu-context.d.cts +4 -0
- package/dist/components/navigation-menu/use-navigation-menu-context.d.ts +4 -0
- package/dist/components/navigation-menu/use-navigation-menu-context.js +5 -0
- package/dist/components/navigation-menu/use-navigation-menu-item-props-context.cjs +10 -0
- package/dist/components/navigation-menu/use-navigation-menu-item-props-context.d.cts +3 -0
- package/dist/components/navigation-menu/use-navigation-menu-item-props-context.d.ts +3 -0
- package/dist/components/navigation-menu/use-navigation-menu-item-props-context.js +5 -0
- package/dist/components/navigation-menu/use-navigation-menu.cjs +53 -0
- package/dist/components/navigation-menu/use-navigation-menu.d.cts +10 -0
- package/dist/components/navigation-menu/use-navigation-menu.d.ts +10 -0
- package/dist/components/navigation-menu/use-navigation-menu.js +30 -0
- package/dist/components/pagination/index.cjs +4 -0
- package/dist/components/pagination/index.d.cts +2 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.js +2 -0
- package/dist/components/pagination/pagination-first-trigger.vue.cjs +29 -0
- package/dist/components/pagination/pagination-first-trigger.vue.d.cts +19 -0
- package/dist/components/pagination/pagination-first-trigger.vue.d.ts +19 -0
- package/dist/components/pagination/pagination-first-trigger.vue.js +25 -0
- package/dist/components/pagination/pagination-first-trigger.vue2.cjs +9 -0
- package/dist/components/pagination/pagination-first-trigger.vue2.js +5 -0
- package/dist/components/pagination/pagination-last-trigger.vue.cjs +29 -0
- package/dist/components/pagination/pagination-last-trigger.vue.d.cts +19 -0
- package/dist/components/pagination/pagination-last-trigger.vue.d.ts +19 -0
- package/dist/components/pagination/pagination-last-trigger.vue.js +25 -0
- package/dist/components/pagination/pagination-last-trigger.vue2.cjs +9 -0
- package/dist/components/pagination/pagination-last-trigger.vue2.js +5 -0
- package/dist/components/pagination/pagination.cjs +4 -0
- package/dist/components/pagination/pagination.d.cts +2 -0
- package/dist/components/pagination/pagination.d.ts +2 -0
- package/dist/components/pagination/pagination.js +2 -0
- package/dist/components/popover/popover-root.vue.d.cts +1 -1
- package/dist/components/popover/popover-root.vue.d.ts +1 -1
- package/dist/components/radio-group/radio-group-root.vue.cjs +5 -1
- package/dist/components/radio-group/radio-group-root.vue.d.cts +2 -0
- package/dist/components/radio-group/radio-group-root.vue.d.ts +2 -0
- package/dist/components/radio-group/radio-group-root.vue.js +5 -1
- package/dist/components/radio-group/radio-group.types.d.cts +8 -0
- package/dist/components/radio-group/radio-group.types.d.ts +8 -0
- package/dist/components/radio-group/use-radio-group.cjs +9 -0
- package/dist/components/radio-group/use-radio-group.js +9 -0
- package/dist/components/select/select-root.vue.d.cts +1 -1
- package/dist/components/select/select-root.vue.d.ts +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.cts +1 -1
- package/dist/components/tags-input/tags-input-root.vue.d.ts +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/utils/boolean.cjs +9 -0
- package/dist/utils/boolean.d.cts +2 -0
- package/dist/utils/boolean.d.ts +2 -0
- package/dist/utils/boolean.js +5 -0
- package/package.json +72 -71
|
@@ -3,7 +3,7 @@ import { PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { RootEmits, RootProps } from './menu.types';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
5
5
|
import { SelectionDetails, OpenChangeDetails, HighlightChangeDetails } from '@zag-js/menu';
|
|
6
|
-
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/
|
|
6
|
+
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/bottom-sheet';
|
|
7
7
|
export interface MenuRootBaseProps extends RootProps, RenderStrategyProps, PolymorphicProps {
|
|
8
8
|
}
|
|
9
9
|
export interface MenuRootProps extends MenuRootBaseProps {
|
|
@@ -3,7 +3,7 @@ import { PolymorphicProps } from '../factory';
|
|
|
3
3
|
import { RootEmits, RootProps } from './menu.types';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
5
5
|
import { SelectionDetails, OpenChangeDetails, HighlightChangeDetails } from '@zag-js/menu';
|
|
6
|
-
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/
|
|
6
|
+
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/bottom-sheet';
|
|
7
7
|
export interface MenuRootBaseProps extends RootProps, RenderStrategyProps, PolymorphicProps {
|
|
8
8
|
}
|
|
9
9
|
export interface MenuRootProps extends MenuRootBaseProps {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const navigationMenuArrow_vue_vue_type_script_setup_true_lang = require('./navigation-menu-arrow.vue.cjs');
|
|
6
|
+
const navigationMenuContent_vue_vue_type_script_setup_true_lang = require('./navigation-menu-content.vue.cjs');
|
|
7
|
+
const navigationMenuContext_vue_vue_type_script_setup_true_lang = require('./navigation-menu-context.vue.cjs');
|
|
8
|
+
const navigationMenuIndicator_vue_vue_type_script_setup_true_lang = require('./navigation-menu-indicator.vue.cjs');
|
|
9
|
+
const navigationMenuItem_vue_vue_type_script_setup_true_lang = require('./navigation-menu-item.vue.cjs');
|
|
10
|
+
const navigationMenuItemIndicator_vue_vue_type_script_setup_true_lang = require('./navigation-menu-item-indicator.vue.cjs');
|
|
11
|
+
const navigationMenuLink_vue_vue_type_script_setup_true_lang = require('./navigation-menu-link.vue.cjs');
|
|
12
|
+
const navigationMenuList_vue_vue_type_script_setup_true_lang = require('./navigation-menu-list.vue.cjs');
|
|
13
|
+
const navigationMenuRoot_vue_vue_type_script_setup_true_lang = require('./navigation-menu-root.vue.cjs');
|
|
14
|
+
const navigationMenuRootProvider_vue_vue_type_script_setup_true_lang = require('./navigation-menu-root-provider.vue.cjs');
|
|
15
|
+
const navigationMenuTrigger_vue_vue_type_script_setup_true_lang = require('./navigation-menu-trigger.vue.cjs');
|
|
16
|
+
const navigationMenuViewport_vue_vue_type_script_setup_true_lang = require('./navigation-menu-viewport.vue.cjs');
|
|
17
|
+
const navigationMenuViewportPositioner_vue_vue_type_script_setup_true_lang = require('./navigation-menu-viewport-positioner.vue.cjs');
|
|
18
|
+
const useNavigationMenu = require('./use-navigation-menu.cjs');
|
|
19
|
+
const useNavigationMenuContext = require('./use-navigation-menu-context.cjs');
|
|
20
|
+
const navigationMenu$1 = require('./navigation-menu.cjs');
|
|
21
|
+
const navigationMenu = require('@zag-js/navigation-menu');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
exports.NavigationMenuArrow = navigationMenuArrow_vue_vue_type_script_setup_true_lang.default;
|
|
26
|
+
exports.NavigationMenuContent = navigationMenuContent_vue_vue_type_script_setup_true_lang.default;
|
|
27
|
+
exports.NavigationMenuContext = navigationMenuContext_vue_vue_type_script_setup_true_lang.default;
|
|
28
|
+
exports.NavigationMenuIndicator = navigationMenuIndicator_vue_vue_type_script_setup_true_lang.default;
|
|
29
|
+
exports.NavigationMenuItem = navigationMenuItem_vue_vue_type_script_setup_true_lang.default;
|
|
30
|
+
exports.NavigationMenuItemIndicator = navigationMenuItemIndicator_vue_vue_type_script_setup_true_lang.default;
|
|
31
|
+
exports.NavigationMenuLink = navigationMenuLink_vue_vue_type_script_setup_true_lang.default;
|
|
32
|
+
exports.NavigationMenuList = navigationMenuList_vue_vue_type_script_setup_true_lang.default;
|
|
33
|
+
exports.NavigationMenuRoot = navigationMenuRoot_vue_vue_type_script_setup_true_lang.default;
|
|
34
|
+
exports.NavigationMenuRootProvider = navigationMenuRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
35
|
+
exports.NavigationMenuTrigger = navigationMenuTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
36
|
+
exports.NavigationMenuViewport = navigationMenuViewport_vue_vue_type_script_setup_true_lang.default;
|
|
37
|
+
exports.NavigationMenuViewportPositioner = navigationMenuViewportPositioner_vue_vue_type_script_setup_true_lang.default;
|
|
38
|
+
exports.useNavigationMenu = useNavigationMenu.useNavigationMenu;
|
|
39
|
+
exports.useNavigationMenuContext = useNavigationMenuContext.useNavigationMenuContext;
|
|
40
|
+
exports.NavigationMenu = navigationMenu$1;
|
|
41
|
+
Object.defineProperty(exports, "navigationMenuAnatomy", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: () => navigationMenu.anatomy
|
|
44
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { ValueChangeDetails as NavigationMenuValueChangeDetails } from '@zag-js/navigation-menu';
|
|
2
|
+
export { default as NavigationMenuArrow, type NavigationMenuArrowBaseProps, type NavigationMenuArrowProps, } from './navigation-menu-arrow.vue';
|
|
3
|
+
export { default as NavigationMenuContent, type NavigationMenuContentBaseProps, type NavigationMenuContentProps, } from './navigation-menu-content.vue';
|
|
4
|
+
export { default as NavigationMenuContext, type NavigationMenuContextProps } from './navigation-menu-context.vue';
|
|
5
|
+
export { default as NavigationMenuIndicator, type NavigationMenuIndicatorBaseProps, type NavigationMenuIndicatorProps, } from './navigation-menu-indicator.vue';
|
|
6
|
+
export { default as NavigationMenuItem, type NavigationMenuItemBaseProps, type NavigationMenuItemProps, } from './navigation-menu-item.vue';
|
|
7
|
+
export { default as NavigationMenuItemIndicator, type NavigationMenuItemIndicatorBaseProps, type NavigationMenuItemIndicatorProps, } from './navigation-menu-item-indicator.vue';
|
|
8
|
+
export { default as NavigationMenuLink, type NavigationMenuLinkBaseProps, type NavigationMenuLinkProps, } from './navigation-menu-link.vue';
|
|
9
|
+
export { default as NavigationMenuList, type NavigationMenuListBaseProps, type NavigationMenuListProps, } from './navigation-menu-list.vue';
|
|
10
|
+
export { default as NavigationMenuRoot, type NavigationMenuRootBaseProps, type NavigationMenuRootEmits, type NavigationMenuRootProps, } from './navigation-menu-root.vue';
|
|
11
|
+
export { default as NavigationMenuRootProvider, type NavigationMenuRootProviderBaseProps, type NavigationMenuRootProviderProps, } from './navigation-menu-root-provider.vue';
|
|
12
|
+
export { default as NavigationMenuTrigger, type NavigationMenuTriggerBaseProps, type NavigationMenuTriggerProps, } from './navigation-menu-trigger.vue';
|
|
13
|
+
export { default as NavigationMenuViewport, type NavigationMenuViewportBaseProps, type NavigationMenuViewportProps, } from './navigation-menu-viewport.vue';
|
|
14
|
+
export { default as NavigationMenuViewportPositioner, type NavigationMenuViewportPositionerBaseProps, type NavigationMenuViewportPositionerProps, } from './navigation-menu-viewport-positioner.vue';
|
|
15
|
+
export { navigationMenuAnatomy } from './navigation-menu.anatomy';
|
|
16
|
+
export { useNavigationMenu, type UseNavigationMenuProps, type UseNavigationMenuReturn } from './use-navigation-menu';
|
|
17
|
+
export { useNavigationMenuContext, type UseNavigationMenuContext } from './use-navigation-menu-context';
|
|
18
|
+
export * as NavigationMenu from './navigation-menu';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { ValueChangeDetails as NavigationMenuValueChangeDetails } from '@zag-js/navigation-menu';
|
|
2
|
+
export { default as NavigationMenuArrow, type NavigationMenuArrowBaseProps, type NavigationMenuArrowProps, } from './navigation-menu-arrow.vue';
|
|
3
|
+
export { default as NavigationMenuContent, type NavigationMenuContentBaseProps, type NavigationMenuContentProps, } from './navigation-menu-content.vue';
|
|
4
|
+
export { default as NavigationMenuContext, type NavigationMenuContextProps } from './navigation-menu-context.vue';
|
|
5
|
+
export { default as NavigationMenuIndicator, type NavigationMenuIndicatorBaseProps, type NavigationMenuIndicatorProps, } from './navigation-menu-indicator.vue';
|
|
6
|
+
export { default as NavigationMenuItem, type NavigationMenuItemBaseProps, type NavigationMenuItemProps, } from './navigation-menu-item.vue';
|
|
7
|
+
export { default as NavigationMenuItemIndicator, type NavigationMenuItemIndicatorBaseProps, type NavigationMenuItemIndicatorProps, } from './navigation-menu-item-indicator.vue';
|
|
8
|
+
export { default as NavigationMenuLink, type NavigationMenuLinkBaseProps, type NavigationMenuLinkProps, } from './navigation-menu-link.vue';
|
|
9
|
+
export { default as NavigationMenuList, type NavigationMenuListBaseProps, type NavigationMenuListProps, } from './navigation-menu-list.vue';
|
|
10
|
+
export { default as NavigationMenuRoot, type NavigationMenuRootBaseProps, type NavigationMenuRootEmits, type NavigationMenuRootProps, } from './navigation-menu-root.vue';
|
|
11
|
+
export { default as NavigationMenuRootProvider, type NavigationMenuRootProviderBaseProps, type NavigationMenuRootProviderProps, } from './navigation-menu-root-provider.vue';
|
|
12
|
+
export { default as NavigationMenuTrigger, type NavigationMenuTriggerBaseProps, type NavigationMenuTriggerProps, } from './navigation-menu-trigger.vue';
|
|
13
|
+
export { default as NavigationMenuViewport, type NavigationMenuViewportBaseProps, type NavigationMenuViewportProps, } from './navigation-menu-viewport.vue';
|
|
14
|
+
export { default as NavigationMenuViewportPositioner, type NavigationMenuViewportPositionerBaseProps, type NavigationMenuViewportPositionerProps, } from './navigation-menu-viewport-positioner.vue';
|
|
15
|
+
export { navigationMenuAnatomy } from './navigation-menu.anatomy';
|
|
16
|
+
export { useNavigationMenu, type UseNavigationMenuProps, type UseNavigationMenuReturn } from './use-navigation-menu';
|
|
17
|
+
export { useNavigationMenuContext, type UseNavigationMenuContext } from './use-navigation-menu-context';
|
|
18
|
+
export * as NavigationMenu from './navigation-menu';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as NavigationMenuArrow } from './navigation-menu-arrow.vue.js';
|
|
2
|
+
export { default as NavigationMenuContent } from './navigation-menu-content.vue.js';
|
|
3
|
+
export { default as NavigationMenuContext } from './navigation-menu-context.vue.js';
|
|
4
|
+
export { default as NavigationMenuIndicator } from './navigation-menu-indicator.vue.js';
|
|
5
|
+
export { default as NavigationMenuItem } from './navigation-menu-item.vue.js';
|
|
6
|
+
export { default as NavigationMenuItemIndicator } from './navigation-menu-item-indicator.vue.js';
|
|
7
|
+
export { default as NavigationMenuLink } from './navigation-menu-link.vue.js';
|
|
8
|
+
export { default as NavigationMenuList } from './navigation-menu-list.vue.js';
|
|
9
|
+
export { default as NavigationMenuRoot } from './navigation-menu-root.vue.js';
|
|
10
|
+
export { default as NavigationMenuRootProvider } from './navigation-menu-root-provider.vue.js';
|
|
11
|
+
export { default as NavigationMenuTrigger } from './navigation-menu-trigger.vue.js';
|
|
12
|
+
export { default as NavigationMenuViewport } from './navigation-menu-viewport.vue.js';
|
|
13
|
+
export { default as NavigationMenuViewportPositioner } from './navigation-menu-viewport-positioner.vue.js';
|
|
14
|
+
export { useNavigationMenu } from './use-navigation-menu.js';
|
|
15
|
+
export { useNavigationMenuContext } from './use-navigation-menu-context.js';
|
|
16
|
+
import * as navigationMenu from './navigation-menu.js';
|
|
17
|
+
export { navigationMenu as NavigationMenu };
|
|
18
|
+
export { anatomy as navigationMenuAnatomy } from '@zag-js/navigation-menu';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const factory = require('../factory.cjs');
|
|
7
|
+
const useNavigationMenuContext = require('./use-navigation-menu-context.cjs');
|
|
8
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
9
|
+
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "navigation-menu-arrow",
|
|
12
|
+
props: {
|
|
13
|
+
asChild: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const navigationMenu = useNavigationMenuContext.useNavigationMenuContext();
|
|
17
|
+
useForwardExpose.useForwardExpose();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps(vue.unref(navigationMenu).getArrowProps(), { "as-child": __props.asChild }), {
|
|
20
|
+
default: vue.withCtx(() => [
|
|
21
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
22
|
+
]),
|
|
23
|
+
_: 3
|
|
24
|
+
}, 16, ["as-child"]);
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface NavigationMenuArrowBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface NavigationMenuArrowProps extends NavigationMenuArrowBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuArrowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface NavigationMenuArrowBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface NavigationMenuArrowProps extends NavigationMenuArrowBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuArrowProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { ark } from '../factory.js';
|
|
3
|
+
import { useNavigationMenuContext } from './use-navigation-menu-context.js';
|
|
4
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "navigation-menu-arrow",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const navigationMenu = useNavigationMenuContext();
|
|
13
|
+
useForwardExpose();
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(unref(ark).div, mergeProps(unref(navigationMenu).getArrowProps(), { "as-child": __props.asChild }), {
|
|
16
|
+
default: withCtx(() => [
|
|
17
|
+
renderSlot(_ctx.$slots, "default")
|
|
18
|
+
]),
|
|
19
|
+
_: 3
|
|
20
|
+
}, 16, ["as-child"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const navigationMenuArrow_vue_vue_type_script_setup_true_lang = require('./navigation-menu-arrow.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = navigationMenuArrow_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const vue$1 = require('@zag-js/vue');
|
|
7
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
8
|
+
const useNavigationMenuContext = require('./use-navigation-menu-context.cjs');
|
|
9
|
+
const useNavigationMenuItemPropsContext = require('./use-navigation-menu-item-props-context.cjs');
|
|
10
|
+
const useRenderStrategy = require('../../utils/use-render-strategy.cjs');
|
|
11
|
+
const usePresence = require('../presence/use-presence.cjs');
|
|
12
|
+
const factory = require('../factory.cjs');
|
|
13
|
+
|
|
14
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
|
+
__name: "navigation-menu-content",
|
|
16
|
+
props: {
|
|
17
|
+
value: {},
|
|
18
|
+
asChild: { type: Boolean }
|
|
19
|
+
},
|
|
20
|
+
setup(__props) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const attrs = vue.useAttrs();
|
|
23
|
+
const api = useNavigationMenuContext.useNavigationMenuContext();
|
|
24
|
+
const itemContext = useNavigationMenuItemPropsContext.useNavigationMenuItemPropsContext();
|
|
25
|
+
const renderStrategy = useRenderStrategy.useRenderStrategyProps();
|
|
26
|
+
const value = vue.computed(() => props.value ?? itemContext?.value.value);
|
|
27
|
+
const contentProps = vue.computed(() => ({ ...props, value: value.value }));
|
|
28
|
+
const presence = usePresence.usePresence(vue.computed(() => ({ ...renderStrategy.value, present: api.value.value === value.value })));
|
|
29
|
+
const mergedProps = vue.computed(
|
|
30
|
+
() => vue$1.mergeProps({ ...attrs }, api.value.getContentProps(contentProps.value), presence.value.presenceProps)
|
|
31
|
+
);
|
|
32
|
+
const viewportNode = vue.computed(() => api.value.getViewportNode());
|
|
33
|
+
const isViewportRendered = vue.computed(() => api.value.isViewportRendered);
|
|
34
|
+
useForwardExpose.useForwardExpose();
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return isViewportRendered.value && viewportNode.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
37
|
+
vue.createElementVNode("div", vue.normalizeProps(vue.guardReactiveProps(vue.unref(api).getViewportProxyProps(contentProps.value))), null, 16),
|
|
38
|
+
vue.createElementVNode("div", vue.normalizeProps(vue.guardReactiveProps(vue.unref(api).getTriggerProxyProps(contentProps.value))), null, 16),
|
|
39
|
+
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: viewportNode.value }, [
|
|
40
|
+
!vue.unref(presence).unmounted ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
41
|
+
default: vue.withCtx(() => [
|
|
42
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
43
|
+
]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16, ["as-child"])) : vue.createCommentVNode("", true)
|
|
46
|
+
], 8, ["to"]))
|
|
47
|
+
], 64)) : !vue.unref(presence).unmounted ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 1 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
48
|
+
default: vue.withCtx(() => [
|
|
49
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 16, ["as-child"])) : vue.createCommentVNode("", true);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContentProps } from '@zag-js/navigation-menu';
|
|
2
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PolymorphicProps } from '../factory';
|
|
4
|
+
export interface NavigationMenuContentBaseProps extends Partial<ContentProps>, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface NavigationMenuContentProps extends NavigationMenuContentBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
Omit<HTMLAttributes, 'onSelect'> {
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContentProps } from '@zag-js/navigation-menu';
|
|
2
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { PolymorphicProps } from '../factory';
|
|
4
|
+
export interface NavigationMenuContentBaseProps extends Partial<ContentProps>, PolymorphicProps {
|
|
5
|
+
}
|
|
6
|
+
export interface NavigationMenuContentProps extends NavigationMenuContentBaseProps,
|
|
7
|
+
/**
|
|
8
|
+
* @vue-ignore
|
|
9
|
+
*/
|
|
10
|
+
Omit<HTMLAttributes, 'onSelect'> {
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, computed, createElementBlock, createBlock, createCommentVNode, openBlock, Fragment, createElementVNode, normalizeProps, guardReactiveProps, unref, Teleport, mergeProps as mergeProps$1, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { mergeProps } from '@zag-js/vue';
|
|
3
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
4
|
+
import { useNavigationMenuContext } from './use-navigation-menu-context.js';
|
|
5
|
+
import { useNavigationMenuItemPropsContext } from './use-navigation-menu-item-props-context.js';
|
|
6
|
+
import { useRenderStrategyProps } from '../../utils/use-render-strategy.js';
|
|
7
|
+
import { usePresence } from '../presence/use-presence.js';
|
|
8
|
+
import { ark } from '../factory.js';
|
|
9
|
+
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "navigation-menu-content",
|
|
12
|
+
props: {
|
|
13
|
+
value: {},
|
|
14
|
+
asChild: { type: Boolean }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const attrs = useAttrs();
|
|
19
|
+
const api = useNavigationMenuContext();
|
|
20
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
21
|
+
const renderStrategy = useRenderStrategyProps();
|
|
22
|
+
const value = computed(() => props.value ?? itemContext?.value.value);
|
|
23
|
+
const contentProps = computed(() => ({ ...props, value: value.value }));
|
|
24
|
+
const presence = usePresence(computed(() => ({ ...renderStrategy.value, present: api.value.value === value.value })));
|
|
25
|
+
const mergedProps = computed(
|
|
26
|
+
() => mergeProps({ ...attrs }, api.value.getContentProps(contentProps.value), presence.value.presenceProps)
|
|
27
|
+
);
|
|
28
|
+
const viewportNode = computed(() => api.value.getViewportNode());
|
|
29
|
+
const isViewportRendered = computed(() => api.value.isViewportRendered);
|
|
30
|
+
useForwardExpose();
|
|
31
|
+
return (_ctx, _cache) => {
|
|
32
|
+
return isViewportRendered.value && viewportNode.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(api).getViewportProxyProps(contentProps.value))), null, 16),
|
|
34
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(api).getTriggerProxyProps(contentProps.value))), null, 16),
|
|
35
|
+
(openBlock(), createBlock(Teleport, { to: viewportNode.value }, [
|
|
36
|
+
!unref(presence).unmounted ? (openBlock(), createBlock(unref(ark).div, mergeProps$1({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
renderSlot(_ctx.$slots, "default")
|
|
39
|
+
]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 16, ["as-child"])) : createCommentVNode("", true)
|
|
42
|
+
], 8, ["to"]))
|
|
43
|
+
], 64)) : !unref(presence).unmounted ? (openBlock(), createBlock(unref(ark).div, mergeProps$1({ key: 1 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
44
|
+
default: withCtx(() => [
|
|
45
|
+
renderSlot(_ctx.$slots, "default")
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 16, ["as-child"])) : createCommentVNode("", true);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const navigationMenuContent_vue_vue_type_script_setup_true_lang = require('./navigation-menu-content.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = navigationMenuContent_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const useNavigationMenuContext = require('./use-navigation-menu-context.cjs');
|
|
7
|
+
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
__name: "navigation-menu-context",
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const navigationMenu = useNavigationMenuContext.useNavigationMenuContext();
|
|
12
|
+
return (_ctx, _cache) => {
|
|
13
|
+
return vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(vue.unref(navigationMenu))));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SlotsType, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { UseNavigationMenuContext } from './use-navigation-menu-context';
|
|
3
|
+
export interface NavigationMenuContextProps extends SlotsType<{
|
|
4
|
+
default: UnwrapRef<UseNavigationMenuContext>;
|
|
5
|
+
}> {
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
8
|
+
default(navigationMenu: UnwrapRef<UseNavigationMenuContext>): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
default(navigationMenu: UnwrapRef<UseNavigationMenuContext>): unknown;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SlotsType, UnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { UseNavigationMenuContext } from './use-navigation-menu-context';
|
|
3
|
+
export interface NavigationMenuContextProps extends SlotsType<{
|
|
4
|
+
default: UnwrapRef<UseNavigationMenuContext>;
|
|
5
|
+
}> {
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
8
|
+
default(navigationMenu: UnwrapRef<UseNavigationMenuContext>): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
default(navigationMenu: UnwrapRef<UseNavigationMenuContext>): unknown;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent, renderSlot, normalizeProps, guardReactiveProps, unref } from 'vue';
|
|
2
|
+
import { useNavigationMenuContext } from './use-navigation-menu-context.js';
|
|
3
|
+
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "navigation-menu-context",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const navigationMenu = useNavigationMenuContext();
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(navigationMenu))));
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const navigationMenuContext_vue_vue_type_script_setup_true_lang = require('./navigation-menu-context.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = navigationMenuContext_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
const vue$1 = require('@zag-js/vue');
|
|
7
|
+
const factory = require('../factory.cjs');
|
|
8
|
+
const usePresence = require('../presence/use-presence.cjs');
|
|
9
|
+
const useNavigationMenuContext = require('./use-navigation-menu-context.cjs');
|
|
10
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
11
|
+
const useRenderStrategy = require('../../utils/use-render-strategy.cjs');
|
|
12
|
+
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
__name: "navigation-menu-indicator",
|
|
15
|
+
props: {
|
|
16
|
+
asChild: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const navigationMenu = useNavigationMenuContext.useNavigationMenuContext();
|
|
20
|
+
const renderStrategy = useRenderStrategy.useRenderStrategyProps();
|
|
21
|
+
const presence = usePresence.usePresence(vue.computed(() => ({ ...renderStrategy.value, present: navigationMenu.value.open })));
|
|
22
|
+
const mergedProps = vue.computed(() => vue$1.mergeProps(navigationMenu.value.getIndicatorProps(), presence.value.presenceProps));
|
|
23
|
+
useForwardExpose.useForwardExpose();
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return !vue.unref(presence).unmounted ? (vue.openBlock(), vue.createBlock(vue.unref(factory.ark).div, vue.mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
26
|
+
default: vue.withCtx(() => [
|
|
27
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
}, 16, ["as-child"])) : vue.createCommentVNode("", true);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface NavigationMenuIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface NavigationMenuIndicatorProps extends NavigationMenuIndicatorBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface NavigationMenuIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface NavigationMenuIndicatorProps extends NavigationMenuIndicatorBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
HTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<NavigationMenuIndicatorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<NavigationMenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, createCommentVNode, unref, openBlock, mergeProps as mergeProps$1, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { mergeProps } from '@zag-js/vue';
|
|
3
|
+
import { ark } from '../factory.js';
|
|
4
|
+
import { usePresence } from '../presence/use-presence.js';
|
|
5
|
+
import { useNavigationMenuContext } from './use-navigation-menu-context.js';
|
|
6
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
7
|
+
import { useRenderStrategyProps } from '../../utils/use-render-strategy.js';
|
|
8
|
+
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "navigation-menu-indicator",
|
|
11
|
+
props: {
|
|
12
|
+
asChild: { type: Boolean }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const navigationMenu = useNavigationMenuContext();
|
|
16
|
+
const renderStrategy = useRenderStrategyProps();
|
|
17
|
+
const presence = usePresence(computed(() => ({ ...renderStrategy.value, present: navigationMenu.value.open })));
|
|
18
|
+
const mergedProps = computed(() => mergeProps(navigationMenu.value.getIndicatorProps(), presence.value.presenceProps));
|
|
19
|
+
useForwardExpose();
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(ark).div, mergeProps$1({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
22
|
+
default: withCtx(() => [
|
|
23
|
+
renderSlot(_ctx.$slots, "default")
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["as-child"])) : createCommentVNode("", true);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const navigationMenuIndicator_vue_vue_type_script_setup_true_lang = require('./navigation-menu-indicator.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = navigationMenuIndicator_vue_vue_type_script_setup_true_lang.default;
|