@ark-ui/vue 5.29.1 → 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/use-fieldset.cjs +5 -0
- 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 +5 -0
- 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
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type * as navigationMenu from '@zag-js/navigation-menu';
|
|
2
|
+
export interface RootProps {
|
|
3
|
+
/**
|
|
4
|
+
* The delay before the menu closes
|
|
5
|
+
* @default 300
|
|
6
|
+
*/
|
|
7
|
+
closeDelay?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The default value of the navigation menu.
|
|
10
|
+
* Use when you don't want to control the value of the menu.
|
|
11
|
+
*/
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to disable the click trigger
|
|
15
|
+
*/
|
|
16
|
+
disableClickTrigger?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to disable the hover trigger
|
|
19
|
+
*/
|
|
20
|
+
disableHoverTrigger?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to disable the pointer leave close
|
|
23
|
+
*/
|
|
24
|
+
disablePointerLeaveClose?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier of the machine.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ids of the elements in the machine.
|
|
31
|
+
*/
|
|
32
|
+
ids?: Partial<{
|
|
33
|
+
root: string;
|
|
34
|
+
list: string;
|
|
35
|
+
item: string;
|
|
36
|
+
trigger: (value: string) => string;
|
|
37
|
+
content: (value: string) => string;
|
|
38
|
+
viewport: string;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* The delay before the menu opens
|
|
42
|
+
* @default 200
|
|
43
|
+
*/
|
|
44
|
+
openDelay?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The orientation of the navigation menu
|
|
47
|
+
* @default "horizontal"
|
|
48
|
+
*/
|
|
49
|
+
orientation?: 'horizontal' | 'vertical';
|
|
50
|
+
/**
|
|
51
|
+
* The controlled value of the navigation menu
|
|
52
|
+
*/
|
|
53
|
+
value?: string;
|
|
54
|
+
}
|
|
55
|
+
export type RootEmits = {
|
|
56
|
+
/**
|
|
57
|
+
* Function called when the value of the navigation menu changes
|
|
58
|
+
*/
|
|
59
|
+
valueChange: [details: navigationMenu.ValueChangeDetails];
|
|
60
|
+
/**
|
|
61
|
+
* The callback fired when the model value changes.
|
|
62
|
+
*/
|
|
63
|
+
'update:value': [value: string];
|
|
64
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const createContext = require('../../utils/create-context.cjs');
|
|
6
|
+
|
|
7
|
+
const [NavigationMenuProvider, useNavigationMenuContext] = createContext.createContext("NavigationMenuContext");
|
|
8
|
+
|
|
9
|
+
exports.NavigationMenuProvider = NavigationMenuProvider;
|
|
10
|
+
exports.useNavigationMenuContext = useNavigationMenuContext;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseNavigationMenuReturn } from './use-navigation-menu';
|
|
2
|
+
export interface UseNavigationMenuContext extends UseNavigationMenuReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const NavigationMenuProvider: (opts: UseNavigationMenuContext) => void, useNavigationMenuContext: (fallback?: UseNavigationMenuContext | undefined) => UseNavigationMenuContext;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseNavigationMenuReturn } from './use-navigation-menu';
|
|
2
|
+
export interface UseNavigationMenuContext extends UseNavigationMenuReturn {
|
|
3
|
+
}
|
|
4
|
+
export declare const NavigationMenuProvider: (opts: UseNavigationMenuContext) => void, useNavigationMenuContext: (fallback?: UseNavigationMenuContext | undefined) => UseNavigationMenuContext;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const createContext = require('../../utils/create-context.cjs');
|
|
6
|
+
|
|
7
|
+
const [NavigationMenuItemPropsProvider, useNavigationMenuItemPropsContext] = createContext.createContext("NavigationMenuItemPropsContext");
|
|
8
|
+
|
|
9
|
+
exports.NavigationMenuItemPropsProvider = NavigationMenuItemPropsProvider;
|
|
10
|
+
exports.useNavigationMenuItemPropsContext = useNavigationMenuItemPropsContext;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ItemProps } from '@zag-js/navigation-menu';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const NavigationMenuItemPropsProvider: (opts: ComputedRef<ItemProps>) => void, useNavigationMenuItemPropsContext: (fallback?: ComputedRef<ItemProps> | undefined) => ComputedRef<ItemProps>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ItemProps } from '@zag-js/navigation-menu';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
export declare const NavigationMenuItemPropsProvider: (opts: ComputedRef<ItemProps>) => void, useNavigationMenuItemPropsContext: (fallback?: ComputedRef<ItemProps> | undefined) => ComputedRef<ItemProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createContext } from '../../utils/create-context.js';
|
|
2
|
+
|
|
3
|
+
const [NavigationMenuItemPropsProvider, useNavigationMenuItemPropsContext] = createContext("NavigationMenuItemPropsContext");
|
|
4
|
+
|
|
5
|
+
export { NavigationMenuItemPropsProvider, useNavigationMenuItemPropsContext };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const navigationMenu = require('@zag-js/navigation-menu');
|
|
6
|
+
const vue$1 = require('@zag-js/vue');
|
|
7
|
+
const vue = require('vue');
|
|
8
|
+
const useEnvironmentContext = require('../../providers/environment/use-environment-context.cjs');
|
|
9
|
+
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
10
|
+
const cleanProps = require('../../utils/clean-props.cjs');
|
|
11
|
+
|
|
12
|
+
function _interopNamespaceDefault(e) {
|
|
13
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
14
|
+
if (e) {
|
|
15
|
+
for (const k in e) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: () => e[k]
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
n.default = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const navigationMenu__namespace = /*#__PURE__*/_interopNamespaceDefault(navigationMenu);
|
|
30
|
+
|
|
31
|
+
const useNavigationMenu = (props = {}, emit) => {
|
|
32
|
+
const id = vue.useId();
|
|
33
|
+
const env = useEnvironmentContext.useEnvironmentContext(useEnvironmentContext.DEFAULT_ENVIRONMENT);
|
|
34
|
+
const locale = useLocaleContext.useLocaleContext(useLocaleContext.DEFAULT_LOCALE);
|
|
35
|
+
const context = vue.computed(() => {
|
|
36
|
+
const localProps = vue.toValue(props);
|
|
37
|
+
return {
|
|
38
|
+
id,
|
|
39
|
+
dir: locale.value.dir,
|
|
40
|
+
getRootNode: env?.value.getRootNode,
|
|
41
|
+
...cleanProps.cleanProps(localProps),
|
|
42
|
+
onValueChange: (details) => {
|
|
43
|
+
emit?.("valueChange", details);
|
|
44
|
+
emit?.("update:value", details.value);
|
|
45
|
+
localProps.onValueChange?.(details);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
const service = vue$1.useMachine(navigationMenu__namespace.machine, context);
|
|
50
|
+
return vue.computed(() => navigationMenu__namespace.connect(service, vue$1.normalizeProps));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.useNavigationMenu = useNavigationMenu;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropTypes } from '@zag-js/vue';
|
|
2
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
3
|
+
import { EmitFn, Optional } from '../../types';
|
|
4
|
+
import { RootEmits } from './navigation-menu.types';
|
|
5
|
+
import * as navigationMenu from '@zag-js/navigation-menu';
|
|
6
|
+
export interface UseNavigationMenuProps extends Optional<Omit<navigationMenu.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
7
|
+
}
|
|
8
|
+
export interface UseNavigationMenuReturn extends ComputedRef<navigationMenu.Api<PropTypes>> {
|
|
9
|
+
}
|
|
10
|
+
export declare const useNavigationMenu: (props?: MaybeRef<UseNavigationMenuProps>, emit?: EmitFn<RootEmits>) => UseNavigationMenuReturn;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropTypes } from '@zag-js/vue';
|
|
2
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
3
|
+
import { EmitFn, Optional } from '../../types';
|
|
4
|
+
import { RootEmits } from './navigation-menu.types';
|
|
5
|
+
import * as navigationMenu from '@zag-js/navigation-menu';
|
|
6
|
+
export interface UseNavigationMenuProps extends Optional<Omit<navigationMenu.Props, 'dir' | 'getRootNode'>, 'id'> {
|
|
7
|
+
}
|
|
8
|
+
export interface UseNavigationMenuReturn extends ComputedRef<navigationMenu.Api<PropTypes>> {
|
|
9
|
+
}
|
|
10
|
+
export declare const useNavigationMenu: (props?: MaybeRef<UseNavigationMenuProps>, emit?: EmitFn<RootEmits>) => UseNavigationMenuReturn;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as navigationMenu from '@zag-js/navigation-menu';
|
|
2
|
+
import { useMachine, normalizeProps } from '@zag-js/vue';
|
|
3
|
+
import { useId, computed, toValue } from 'vue';
|
|
4
|
+
import { useEnvironmentContext, DEFAULT_ENVIRONMENT } from '../../providers/environment/use-environment-context.js';
|
|
5
|
+
import { useLocaleContext, DEFAULT_LOCALE } from '../../providers/locale/use-locale-context.js';
|
|
6
|
+
import { cleanProps } from '../../utils/clean-props.js';
|
|
7
|
+
|
|
8
|
+
const useNavigationMenu = (props = {}, emit) => {
|
|
9
|
+
const id = useId();
|
|
10
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
11
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
12
|
+
const context = computed(() => {
|
|
13
|
+
const localProps = toValue(props);
|
|
14
|
+
return {
|
|
15
|
+
id,
|
|
16
|
+
dir: locale.value.dir,
|
|
17
|
+
getRootNode: env?.value.getRootNode,
|
|
18
|
+
...cleanProps(localProps),
|
|
19
|
+
onValueChange: (details) => {
|
|
20
|
+
emit?.("valueChange", details);
|
|
21
|
+
emit?.("update:value", details.value);
|
|
22
|
+
localProps.onValueChange?.(details);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const service = useMachine(navigationMenu.machine, context);
|
|
27
|
+
return computed(() => navigationMenu.connect(service, normalizeProps));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { useNavigationMenu };
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const paginationContext_vue_vue_type_script_setup_true_lang = require('./pagination-context.vue.cjs');
|
|
6
6
|
const paginationEllipsis_vue_vue_type_script_setup_true_lang = require('./pagination-ellipsis.vue.cjs');
|
|
7
|
+
const paginationFirstTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-first-trigger.vue.cjs');
|
|
7
8
|
const paginationItem_vue_vue_type_script_setup_true_lang = require('./pagination-item.vue.cjs');
|
|
9
|
+
const paginationLastTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-last-trigger.vue.cjs');
|
|
8
10
|
const paginationNextTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-next-trigger.vue.cjs');
|
|
9
11
|
const paginationPrevTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-prev-trigger.vue.cjs');
|
|
10
12
|
const paginationRootProvider_vue_vue_type_script_setup_true_lang = require('./pagination-root-provider.vue.cjs');
|
|
@@ -18,7 +20,9 @@ const pagination = require('@zag-js/pagination');
|
|
|
18
20
|
|
|
19
21
|
exports.PaginationContext = paginationContext_vue_vue_type_script_setup_true_lang.default;
|
|
20
22
|
exports.PaginationEllipsis = paginationEllipsis_vue_vue_type_script_setup_true_lang.default;
|
|
23
|
+
exports.PaginationFirstTrigger = paginationFirstTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
21
24
|
exports.PaginationItem = paginationItem_vue_vue_type_script_setup_true_lang.default;
|
|
25
|
+
exports.PaginationLastTrigger = paginationLastTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
22
26
|
exports.PaginationNextTrigger = paginationNextTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
23
27
|
exports.PaginationPrevTrigger = paginationPrevTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
24
28
|
exports.PaginationRootProvider = paginationRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { ItemLabelDetails as PaginationItemLabelDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails as PaginationPageUrlDetails, } from '@zag-js/pagination';
|
|
2
2
|
export { default as PaginationContext, type PaginationContextProps } from './pagination-context.vue';
|
|
3
3
|
export { default as PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, } from './pagination-ellipsis.vue';
|
|
4
|
+
export { default as PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, } from './pagination-first-trigger.vue';
|
|
4
5
|
export { default as PaginationItem, type PaginationItemBaseProps, type PaginationItemProps, } from './pagination-item.vue';
|
|
6
|
+
export { default as PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, } from './pagination-last-trigger.vue';
|
|
5
7
|
export { default as PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, } from './pagination-next-trigger.vue';
|
|
6
8
|
export { default as PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, } from './pagination-prev-trigger.vue';
|
|
7
9
|
export { default as PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, } from './pagination-root-provider.vue';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { ItemLabelDetails as PaginationItemLabelDetails, PageChangeDetails as PaginationPageChangeDetails, PageSizeChangeDetails as PaginationPageSizeChangeDetails, PageUrlDetails as PaginationPageUrlDetails, } from '@zag-js/pagination';
|
|
2
2
|
export { default as PaginationContext, type PaginationContextProps } from './pagination-context.vue';
|
|
3
3
|
export { default as PaginationEllipsis, type PaginationEllipsisBaseProps, type PaginationEllipsisProps, } from './pagination-ellipsis.vue';
|
|
4
|
+
export { default as PaginationFirstTrigger, type PaginationFirstTriggerBaseProps, type PaginationFirstTriggerProps, } from './pagination-first-trigger.vue';
|
|
4
5
|
export { default as PaginationItem, type PaginationItemBaseProps, type PaginationItemProps, } from './pagination-item.vue';
|
|
6
|
+
export { default as PaginationLastTrigger, type PaginationLastTriggerBaseProps, type PaginationLastTriggerProps, } from './pagination-last-trigger.vue';
|
|
5
7
|
export { default as PaginationNextTrigger, type PaginationNextTriggerBaseProps, type PaginationNextTriggerProps, } from './pagination-next-trigger.vue';
|
|
6
8
|
export { default as PaginationPrevTrigger, type PaginationPrevTriggerBaseProps, type PaginationPrevTriggerProps, } from './pagination-prev-trigger.vue';
|
|
7
9
|
export { default as PaginationRootProvider, type PaginationRootProviderBaseProps, type PaginationRootProviderProps, } from './pagination-root-provider.vue';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as PaginationContext } from './pagination-context.vue.js';
|
|
2
2
|
export { default as PaginationEllipsis } from './pagination-ellipsis.vue.js';
|
|
3
|
+
export { default as PaginationFirstTrigger } from './pagination-first-trigger.vue.js';
|
|
3
4
|
export { default as PaginationItem } from './pagination-item.vue.js';
|
|
5
|
+
export { default as PaginationLastTrigger } from './pagination-last-trigger.vue.js';
|
|
4
6
|
export { default as PaginationNextTrigger } from './pagination-next-trigger.vue.js';
|
|
5
7
|
export { default as PaginationPrevTrigger } from './pagination-prev-trigger.vue.js';
|
|
6
8
|
export { default as PaginationRootProvider } from './pagination-root-provider.vue.js';
|
|
@@ -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 usePaginationContext = require('./use-pagination-context.cjs');
|
|
8
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
9
|
+
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "pagination-first-trigger",
|
|
12
|
+
props: {
|
|
13
|
+
asChild: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const pagination = usePaginationContext.usePaginationContext();
|
|
17
|
+
useForwardExpose.useForwardExpose();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).button, vue.mergeProps(vue.unref(pagination).getFirstTriggerProps(), { "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 { ButtonHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface PaginationFirstTriggerBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface PaginationFirstTriggerProps extends PaginationFirstTriggerBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
ButtonHTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<PaginationFirstTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PaginationFirstTriggerProps> & 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 { ButtonHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface PaginationFirstTriggerBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface PaginationFirstTriggerProps extends PaginationFirstTriggerBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
ButtonHTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<PaginationFirstTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PaginationFirstTriggerProps> & 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 { usePaginationContext } from './use-pagination-context.js';
|
|
4
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "pagination-first-trigger",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const pagination = usePaginationContext();
|
|
13
|
+
useForwardExpose();
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(unref(ark).button, mergeProps(unref(pagination).getFirstTriggerProps(), { "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 paginationFirstTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-first-trigger.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = paginationFirstTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -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 usePaginationContext = require('./use-pagination-context.cjs');
|
|
8
|
+
const useForwardExpose = require('../../utils/use-forward-expose.cjs');
|
|
9
|
+
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
__name: "pagination-last-trigger",
|
|
12
|
+
props: {
|
|
13
|
+
asChild: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
const pagination = usePaginationContext.usePaginationContext();
|
|
17
|
+
useForwardExpose.useForwardExpose();
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return vue.openBlock(), vue.createBlock(vue.unref(factory.ark).button, vue.mergeProps(vue.unref(pagination).getLastTriggerProps(), { "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 { ButtonHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface PaginationLastTriggerBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface PaginationLastTriggerProps extends PaginationLastTriggerBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
ButtonHTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<PaginationLastTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PaginationLastTriggerProps> & 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 { ButtonHTMLAttributes, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { PolymorphicProps } from '../factory';
|
|
3
|
+
export interface PaginationLastTriggerBaseProps extends PolymorphicProps {
|
|
4
|
+
}
|
|
5
|
+
export interface PaginationLastTriggerProps extends PaginationLastTriggerBaseProps,
|
|
6
|
+
/**
|
|
7
|
+
* @vue-ignore
|
|
8
|
+
*/
|
|
9
|
+
ButtonHTMLAttributes {
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<PaginationLastTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PaginationLastTriggerProps> & 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 { usePaginationContext } from './use-pagination-context.js';
|
|
4
|
+
import { useForwardExpose } from '../../utils/use-forward-expose.js';
|
|
5
|
+
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "pagination-last-trigger",
|
|
8
|
+
props: {
|
|
9
|
+
asChild: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(__props) {
|
|
12
|
+
const pagination = usePaginationContext();
|
|
13
|
+
useForwardExpose();
|
|
14
|
+
return (_ctx, _cache) => {
|
|
15
|
+
return openBlock(), createBlock(unref(ark).button, mergeProps(unref(pagination).getLastTriggerProps(), { "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 paginationLastTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-last-trigger.vue.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = paginationLastTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const paginationContext_vue_vue_type_script_setup_true_lang = require('./pagination-context.vue.cjs');
|
|
6
6
|
const paginationEllipsis_vue_vue_type_script_setup_true_lang = require('./pagination-ellipsis.vue.cjs');
|
|
7
|
+
const paginationFirstTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-first-trigger.vue.cjs');
|
|
7
8
|
const paginationItem_vue_vue_type_script_setup_true_lang = require('./pagination-item.vue.cjs');
|
|
9
|
+
const paginationLastTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-last-trigger.vue.cjs');
|
|
8
10
|
const paginationNextTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-next-trigger.vue.cjs');
|
|
9
11
|
const paginationPrevTrigger_vue_vue_type_script_setup_true_lang = require('./pagination-prev-trigger.vue.cjs');
|
|
10
12
|
const paginationRootProvider_vue_vue_type_script_setup_true_lang = require('./pagination-root-provider.vue.cjs');
|
|
@@ -14,7 +16,9 @@ const paginationRoot_vue_vue_type_script_setup_true_lang = require('./pagination
|
|
|
14
16
|
|
|
15
17
|
exports.Context = paginationContext_vue_vue_type_script_setup_true_lang.default;
|
|
16
18
|
exports.Ellipsis = paginationEllipsis_vue_vue_type_script_setup_true_lang.default;
|
|
19
|
+
exports.FirstTrigger = paginationFirstTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
17
20
|
exports.Item = paginationItem_vue_vue_type_script_setup_true_lang.default;
|
|
21
|
+
exports.LastTrigger = paginationLastTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
18
22
|
exports.NextTrigger = paginationNextTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
19
23
|
exports.PrevTrigger = paginationPrevTrigger_vue_vue_type_script_setup_true_lang.default;
|
|
20
24
|
exports.RootProvider = paginationRootProvider_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { ItemLabelDetails, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails } from '@zag-js/pagination';
|
|
2
2
|
export { default as Context, type PaginationContextProps as ContextProps } from './pagination-context.vue';
|
|
3
3
|
export { default as Ellipsis, type PaginationEllipsisProps as EllipsisProps, type PaginationEllipsisBaseProps as EllipsisBaseProps, } from './pagination-ellipsis.vue';
|
|
4
|
+
export { default as FirstTrigger, type PaginationFirstTriggerProps as FirstTriggerProps, type PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, } from './pagination-first-trigger.vue';
|
|
4
5
|
export { default as Item, type PaginationItemProps as ItemProps, type PaginationItemBaseProps as ItemBaseProps, } from './pagination-item.vue';
|
|
6
|
+
export { default as LastTrigger, type PaginationLastTriggerProps as LastTriggerProps, type PaginationLastTriggerBaseProps as LastTriggerBaseProps, } from './pagination-last-trigger.vue';
|
|
5
7
|
export { default as NextTrigger, type PaginationNextTriggerProps as NextTriggerProps, type PaginationNextTriggerBaseProps as NextTriggerBaseProps, } from './pagination-next-trigger.vue';
|
|
6
8
|
export { default as PrevTrigger, type PaginationPrevTriggerProps as PrevTriggerProps, type PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, } from './pagination-prev-trigger.vue';
|
|
7
9
|
export { default as RootProvider, type PaginationRootProviderProps as RootProviderProps, type PaginationRootProviderBaseProps as RootProviderBaseProps, } from './pagination-root-provider.vue';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export type { ItemLabelDetails, PageChangeDetails, PageSizeChangeDetails, PageUrlDetails } from '@zag-js/pagination';
|
|
2
2
|
export { default as Context, type PaginationContextProps as ContextProps } from './pagination-context.vue';
|
|
3
3
|
export { default as Ellipsis, type PaginationEllipsisProps as EllipsisProps, type PaginationEllipsisBaseProps as EllipsisBaseProps, } from './pagination-ellipsis.vue';
|
|
4
|
+
export { default as FirstTrigger, type PaginationFirstTriggerProps as FirstTriggerProps, type PaginationFirstTriggerBaseProps as FirstTriggerBaseProps, } from './pagination-first-trigger.vue';
|
|
4
5
|
export { default as Item, type PaginationItemProps as ItemProps, type PaginationItemBaseProps as ItemBaseProps, } from './pagination-item.vue';
|
|
6
|
+
export { default as LastTrigger, type PaginationLastTriggerProps as LastTriggerProps, type PaginationLastTriggerBaseProps as LastTriggerBaseProps, } from './pagination-last-trigger.vue';
|
|
5
7
|
export { default as NextTrigger, type PaginationNextTriggerProps as NextTriggerProps, type PaginationNextTriggerBaseProps as NextTriggerBaseProps, } from './pagination-next-trigger.vue';
|
|
6
8
|
export { default as PrevTrigger, type PaginationPrevTriggerProps as PrevTriggerProps, type PaginationPrevTriggerBaseProps as PrevTriggerBaseProps, } from './pagination-prev-trigger.vue';
|
|
7
9
|
export { default as RootProvider, type PaginationRootProviderProps as RootProviderProps, type PaginationRootProviderBaseProps as RootProviderBaseProps, } from './pagination-root-provider.vue';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { default as Context } from './pagination-context.vue.js';
|
|
2
2
|
export { default as Ellipsis } from './pagination-ellipsis.vue.js';
|
|
3
|
+
export { default as FirstTrigger } from './pagination-first-trigger.vue.js';
|
|
3
4
|
export { default as Item } from './pagination-item.vue.js';
|
|
5
|
+
export { default as LastTrigger } from './pagination-last-trigger.vue.js';
|
|
4
6
|
export { default as NextTrigger } from './pagination-next-trigger.vue.js';
|
|
5
7
|
export { default as PrevTrigger } from './pagination-prev-trigger.vue.js';
|
|
6
8
|
export { default as RootProvider } from './pagination-root-provider.vue.js';
|
|
@@ -2,7 +2,7 @@ import { RenderStrategyProps } from '../../utils/use-render-strategy';
|
|
|
2
2
|
import { RootEmits, RootProps } from './popover.types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { OpenChangeDetails } from '@zag-js/popover';
|
|
5
|
-
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/
|
|
5
|
+
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/bottom-sheet';
|
|
6
6
|
export interface PopoverRootBaseProps extends RootProps, RenderStrategyProps {
|
|
7
7
|
}
|
|
8
8
|
export interface PopoverRootProps extends PopoverRootBaseProps {
|
|
@@ -2,7 +2,7 @@ import { RenderStrategyProps } from '../../utils/use-render-strategy';
|
|
|
2
2
|
import { RootEmits, RootProps } from './popover.types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { OpenChangeDetails } from '@zag-js/popover';
|
|
5
|
-
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/
|
|
5
|
+
import { FocusOutsideEvent, InteractOutsideEvent, PointerDownOutsideEvent } from '@zag-js/bottom-sheet';
|
|
6
6
|
export interface PopoverRootBaseProps extends RootProps, RenderStrategyProps {
|
|
7
7
|
}
|
|
8
8
|
export interface PopoverRootProps extends PopoverRootBaseProps {
|
|
@@ -16,14 +16,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
16
16
|
form: {},
|
|
17
17
|
id: {},
|
|
18
18
|
ids: {},
|
|
19
|
+
invalid: { type: Boolean },
|
|
19
20
|
modelValue: {},
|
|
20
21
|
name: {},
|
|
21
22
|
orientation: {},
|
|
22
23
|
readOnly: { type: Boolean },
|
|
24
|
+
required: { type: Boolean },
|
|
23
25
|
asChild: { type: Boolean }
|
|
24
26
|
}, {
|
|
25
27
|
disabled: void 0,
|
|
26
|
-
|
|
28
|
+
invalid: void 0,
|
|
29
|
+
readOnly: void 0,
|
|
30
|
+
required: void 0
|
|
27
31
|
}),
|
|
28
32
|
emits: ["valueChange", "update:modelValue"],
|
|
29
33
|
setup(__props, { emit: __emit }) {
|
|
@@ -19,7 +19,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<RadioGroupRootP
|
|
|
19
19
|
onValueChange?: ((details: ValueChangeDetails) => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
+
invalid: boolean;
|
|
22
23
|
disabled: boolean;
|
|
24
|
+
required: boolean;
|
|
23
25
|
readOnly: boolean;
|
|
24
26
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
25
27
|
default?(_: {}): any;
|