@wirekyt/vue 0.0.1 → 0.0.2
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +278 -6
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { a as PolymorphicProps } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { i as EmitFn$1, l as PropTypes, o as Optional } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { n as RenderStrategyProps } from "./index-Cc4qS0rQ.js";
|
|
4
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ComputedRef, HTMLAttributes, MaybeRef, SlotsType, UnwrapRef } from "vue";
|
|
5
|
+
import * as navigationMenu from "@wirekyt/dom/machines/navigation-menu";
|
|
6
|
+
import { ContentProps, ItemProps, LinkProps, ValueChangeDetails, ValueChangeDetails as NavigationMenuValueChangeDetails, ViewportProps, anatomy as navigationMenuAnatomy } from "@wirekyt/dom/machines/navigation-menu";
|
|
7
|
+
//#region src/components/navigation-menu/arrow.vue.d.ts
|
|
8
|
+
interface NavigationMenuArrowBaseProps extends PolymorphicProps {}
|
|
9
|
+
interface NavigationMenuArrowProps extends NavigationMenuArrowBaseProps,
|
|
10
|
+
/**
|
|
11
|
+
* @vue-ignore
|
|
12
|
+
*/
|
|
13
|
+
HTMLAttributes {}
|
|
14
|
+
declare const _default: typeof __VLS_export$12;
|
|
15
|
+
declare const __VLS_export$12: __VLS_WithSlots$12<import("vue").DefineComponent<NavigationMenuArrowProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
16
|
+
default?: (props: {}) => any;
|
|
17
|
+
}>;
|
|
18
|
+
type __VLS_WithSlots$12<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/navigation-menu/content.vue.d.ts
|
|
25
|
+
interface NavigationMenuContentBaseProps extends Partial<ContentProps>, PolymorphicProps {}
|
|
26
|
+
interface NavigationMenuContentProps extends NavigationMenuContentBaseProps,
|
|
27
|
+
/**
|
|
28
|
+
* @vue-ignore
|
|
29
|
+
*/
|
|
30
|
+
Omit<HTMLAttributes, "onSelect"> {}
|
|
31
|
+
declare const _default$1: typeof __VLS_export$11;
|
|
32
|
+
declare const __VLS_export$11: __VLS_WithSlots$11<import("vue").DefineComponent<NavigationMenuContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
33
|
+
default?: (props: {}) => any;
|
|
34
|
+
} & {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
}>;
|
|
37
|
+
type __VLS_WithSlots$11<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/components/navigation-menu/types.d.ts
|
|
44
|
+
interface RootProps {
|
|
45
|
+
closeDelay?: number;
|
|
46
|
+
defaultValue?: string;
|
|
47
|
+
disableClickTrigger?: boolean;
|
|
48
|
+
disableHoverTrigger?: boolean;
|
|
49
|
+
disablePointerLeaveClose?: boolean;
|
|
50
|
+
id?: string;
|
|
51
|
+
ids?: Partial<{
|
|
52
|
+
root: string;
|
|
53
|
+
list: string;
|
|
54
|
+
item: string;
|
|
55
|
+
trigger: (value: string) => string;
|
|
56
|
+
content: (value: string) => string;
|
|
57
|
+
viewport: string;
|
|
58
|
+
}>;
|
|
59
|
+
openDelay?: number;
|
|
60
|
+
orientation?: "horizontal" | "vertical";
|
|
61
|
+
translations?: navigationMenu.IntlTranslations;
|
|
62
|
+
value?: string;
|
|
63
|
+
}
|
|
64
|
+
type RootEmits = {
|
|
65
|
+
valueChange: [details: navigationMenu.ValueChangeDetails];
|
|
66
|
+
"update:value": [value: string];
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/navigation-menu/use-navigation-menu.d.ts
|
|
70
|
+
interface UseNavigationMenuProps extends Optional<Omit<navigationMenu.Props, "dir" | "getRootNode">, "id"> {}
|
|
71
|
+
interface UseNavigationMenuReturn extends ComputedRef<navigationMenu.Api<PropTypes>> {}
|
|
72
|
+
declare const useNavigationMenu: (props?: MaybeRef<UseNavigationMenuProps>, emit?: EmitFn$1<RootEmits>) => UseNavigationMenuReturn;
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/components/navigation-menu/use-context.d.ts
|
|
75
|
+
interface UseNavigationMenuContext extends UseNavigationMenuReturn {}
|
|
76
|
+
declare const NavigationMenuProvider: (opts: UseNavigationMenuContext) => void, useNavigationMenuContext: (fallback?: UseNavigationMenuContext | undefined) => UseNavigationMenuContext;
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/navigation-menu/context.vue.d.ts
|
|
79
|
+
interface NavigationMenuContextProps extends SlotsType<{
|
|
80
|
+
default: UnwrapRef<UseNavigationMenuContext>;
|
|
81
|
+
}> {}
|
|
82
|
+
declare const _default$2: typeof __VLS_export$10;
|
|
83
|
+
declare const __VLS_export$10: __VLS_WithSlots$10<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
84
|
+
default(navigationMenu: UnwrapRef<UseNavigationMenuContext>): unknown;
|
|
85
|
+
}>;
|
|
86
|
+
type __VLS_WithSlots$10<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/navigation-menu/indicator.vue.d.ts
|
|
93
|
+
interface NavigationMenuIndicatorBaseProps extends PolymorphicProps {}
|
|
94
|
+
interface NavigationMenuIndicatorProps extends NavigationMenuIndicatorBaseProps,
|
|
95
|
+
/**
|
|
96
|
+
* @vue-ignore
|
|
97
|
+
*/
|
|
98
|
+
HTMLAttributes {}
|
|
99
|
+
declare const _default$3: typeof __VLS_export$9;
|
|
100
|
+
declare const __VLS_export$9: __VLS_WithSlots$9<import("vue").DefineComponent<NavigationMenuIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
101
|
+
default?: (props: {}) => any;
|
|
102
|
+
}>;
|
|
103
|
+
type __VLS_WithSlots$9<T, S> = T & {
|
|
104
|
+
new (): {
|
|
105
|
+
$slots: S;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/navigation-menu/item.vue.d.ts
|
|
110
|
+
interface NavigationMenuItemBaseProps extends ItemProps, PolymorphicProps {}
|
|
111
|
+
interface NavigationMenuItemProps extends NavigationMenuItemBaseProps,
|
|
112
|
+
/**
|
|
113
|
+
* @vue-ignore
|
|
114
|
+
*/
|
|
115
|
+
HTMLAttributes {}
|
|
116
|
+
declare const _default$4: typeof __VLS_export$8;
|
|
117
|
+
declare const __VLS_export$8: __VLS_WithSlots$8<import("vue").DefineComponent<NavigationMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
118
|
+
default?: (props: {}) => any;
|
|
119
|
+
}>;
|
|
120
|
+
type __VLS_WithSlots$8<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/components/navigation-menu/item-indicator.vue.d.ts
|
|
127
|
+
interface NavigationMenuItemIndicatorBaseProps extends PolymorphicProps {}
|
|
128
|
+
interface NavigationMenuItemIndicatorProps extends NavigationMenuItemIndicatorBaseProps,
|
|
129
|
+
/**
|
|
130
|
+
* @vue-ignore
|
|
131
|
+
*/
|
|
132
|
+
HTMLAttributes {}
|
|
133
|
+
declare const _default$5: typeof __VLS_export$7;
|
|
134
|
+
declare const __VLS_export$7: __VLS_WithSlots$7<import("vue").DefineComponent<NavigationMenuItemIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuItemIndicatorProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
135
|
+
default?: (props: {}) => any;
|
|
136
|
+
}>;
|
|
137
|
+
type __VLS_WithSlots$7<T, S> = T & {
|
|
138
|
+
new (): {
|
|
139
|
+
$slots: S;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/components/navigation-menu/link.vue.d.ts
|
|
144
|
+
interface NavigationMenuLinkBaseProps extends Partial<LinkProps>, PolymorphicProps {}
|
|
145
|
+
interface NavigationMenuLinkProps extends NavigationMenuLinkBaseProps,
|
|
146
|
+
/**
|
|
147
|
+
* @vue-ignore
|
|
148
|
+
*/
|
|
149
|
+
Omit<AnchorHTMLAttributes, "current" | "onSelect"> {}
|
|
150
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
151
|
+
declare const __VLS_export$6: __VLS_WithSlots$6<import("vue").DefineComponent<NavigationMenuLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
152
|
+
default?: (props: {}) => any;
|
|
153
|
+
}>;
|
|
154
|
+
type __VLS_WithSlots$6<T, S> = T & {
|
|
155
|
+
new (): {
|
|
156
|
+
$slots: S;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/components/navigation-menu/list.vue.d.ts
|
|
161
|
+
interface NavigationMenuListBaseProps extends PolymorphicProps {}
|
|
162
|
+
interface NavigationMenuListProps extends NavigationMenuListBaseProps,
|
|
163
|
+
/**
|
|
164
|
+
* @vue-ignore
|
|
165
|
+
*/
|
|
166
|
+
HTMLAttributes {}
|
|
167
|
+
declare const _default$7: typeof __VLS_export$5;
|
|
168
|
+
declare const __VLS_export$5: __VLS_WithSlots$5<import("vue").DefineComponent<NavigationMenuListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuListProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
169
|
+
default?: (props: {}) => any;
|
|
170
|
+
}>;
|
|
171
|
+
type __VLS_WithSlots$5<T, S> = T & {
|
|
172
|
+
new (): {
|
|
173
|
+
$slots: S;
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/components/navigation-menu/root.vue.d.ts
|
|
178
|
+
interface NavigationMenuRootBaseProps extends RootProps, RenderStrategyProps {}
|
|
179
|
+
interface NavigationMenuRootProps extends NavigationMenuRootBaseProps {}
|
|
180
|
+
interface NavigationMenuRootEmits extends RootEmits {}
|
|
181
|
+
declare const _default$8: typeof __VLS_export$4;
|
|
182
|
+
declare const __VLS_export$4: __VLS_WithSlots$4<import("vue").DefineComponent<NavigationMenuRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
183
|
+
valueChange: (details: import("@wirekyt/dom/machines/navigation-menu").ValueChangeDetails) => any;
|
|
184
|
+
"update:value": (value: string) => any;
|
|
185
|
+
}, string, import("vue").PublicProps, Readonly<NavigationMenuRootProps> & Readonly<{
|
|
186
|
+
onValueChange?: ((details: import("@wirekyt/dom/machines/navigation-menu").ValueChangeDetails) => any) | undefined;
|
|
187
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
188
|
+
}>, {
|
|
189
|
+
disableClickTrigger: boolean;
|
|
190
|
+
disableHoverTrigger: boolean;
|
|
191
|
+
disablePointerLeaveClose: boolean;
|
|
192
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
193
|
+
default?: (props: {}) => any;
|
|
194
|
+
}>;
|
|
195
|
+
type __VLS_WithSlots$4<T, S> = T & {
|
|
196
|
+
new (): {
|
|
197
|
+
$slots: S;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/navigation-menu/root-provider.vue.d.ts
|
|
202
|
+
interface RootProviderProps {
|
|
203
|
+
value: UnwrapRef<UseNavigationMenuReturn>;
|
|
204
|
+
}
|
|
205
|
+
interface NavigationMenuRootProviderBaseProps extends RootProviderProps, RenderStrategyProps {}
|
|
206
|
+
interface NavigationMenuRootProviderProps extends NavigationMenuRootProviderBaseProps {}
|
|
207
|
+
declare const _default$9: typeof __VLS_export$3;
|
|
208
|
+
declare const __VLS_export$3: __VLS_WithSlots$3<import("vue").DefineComponent<NavigationMenuRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
209
|
+
default?: (props: {}) => any;
|
|
210
|
+
}>;
|
|
211
|
+
type __VLS_WithSlots$3<T, S> = T & {
|
|
212
|
+
new (): {
|
|
213
|
+
$slots: S;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/components/navigation-menu/trigger.vue.d.ts
|
|
218
|
+
interface NavigationMenuTriggerBaseProps extends Omit<ItemProps, "value">, PolymorphicProps {}
|
|
219
|
+
interface NavigationMenuTriggerProps extends NavigationMenuTriggerBaseProps,
|
|
220
|
+
/**
|
|
221
|
+
* @vue-ignore
|
|
222
|
+
*/
|
|
223
|
+
Omit<ButtonHTMLAttributes, "disabled" | "value"> {}
|
|
224
|
+
declare const _default$10: typeof __VLS_export$2;
|
|
225
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<NavigationMenuTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
226
|
+
default?: (props: {}) => any;
|
|
227
|
+
}>;
|
|
228
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
229
|
+
new (): {
|
|
230
|
+
$slots: S;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/components/navigation-menu/viewport.vue.d.ts
|
|
235
|
+
interface NavigationMenuViewportBaseProps extends PolymorphicProps {}
|
|
236
|
+
interface NavigationMenuViewportProps extends NavigationMenuViewportBaseProps,
|
|
237
|
+
/**
|
|
238
|
+
* @vue-ignore
|
|
239
|
+
*/
|
|
240
|
+
HTMLAttributes {}
|
|
241
|
+
declare const _default$11: typeof __VLS_export$1;
|
|
242
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<NavigationMenuViewportProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuViewportProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
243
|
+
default?: (props: {}) => any;
|
|
244
|
+
}>;
|
|
245
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
246
|
+
new (): {
|
|
247
|
+
$slots: S;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/components/navigation-menu/viewport-positioner.vue.d.ts
|
|
252
|
+
interface NavigationMenuViewportPositionerBaseProps extends ViewportProps, PolymorphicProps {}
|
|
253
|
+
interface NavigationMenuViewportPositionerProps extends NavigationMenuViewportPositionerBaseProps,
|
|
254
|
+
/**
|
|
255
|
+
* @vue-ignore
|
|
256
|
+
*/
|
|
257
|
+
HTMLAttributes {}
|
|
258
|
+
declare const _default$12: typeof __VLS_export;
|
|
259
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<NavigationMenuViewportPositionerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NavigationMenuViewportPositionerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
260
|
+
default?: (props: {}) => any;
|
|
261
|
+
}>;
|
|
262
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
263
|
+
new (): {
|
|
264
|
+
$slots: S;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
declare namespace navigation_menu_d_exports {
|
|
268
|
+
export { _default as Arrow, NavigationMenuArrowBaseProps as ArrowBaseProps, NavigationMenuArrowProps as ArrowProps, _default$1 as Content, NavigationMenuContentBaseProps as ContentBaseProps, NavigationMenuContentProps as ContentProps, _default$2 as Context, NavigationMenuContextProps as ContextProps, _default$3 as Indicator, NavigationMenuIndicatorBaseProps as IndicatorBaseProps, NavigationMenuIndicatorProps as IndicatorProps, _default$4 as Item, NavigationMenuItemBaseProps as ItemBaseProps, _default$5 as ItemIndicator, NavigationMenuItemIndicatorBaseProps as ItemIndicatorBaseProps, NavigationMenuItemIndicatorProps as ItemIndicatorProps, NavigationMenuItemProps as ItemProps, _default$6 as Link, NavigationMenuLinkBaseProps as LinkBaseProps, NavigationMenuLinkProps as LinkProps, _default$7 as List, NavigationMenuListBaseProps as ListBaseProps, NavigationMenuListProps as ListProps, _default$8 as Root, NavigationMenuRootBaseProps as RootBaseProps, NavigationMenuRootEmits as RootEmits, NavigationMenuRootProps as RootProps, _default$9 as RootProvider, NavigationMenuRootProviderBaseProps as RootProviderBaseProps, NavigationMenuRootProviderProps as RootProviderProps, _default$10 as Trigger, NavigationMenuTriggerBaseProps as TriggerBaseProps, NavigationMenuTriggerProps as TriggerProps, ValueChangeDetails, _default$11 as Viewport, NavigationMenuViewportBaseProps as ViewportBaseProps, _default$12 as ViewportPositioner, NavigationMenuViewportPositionerBaseProps as ViewportPositionerBaseProps, NavigationMenuViewportPositionerProps as ViewportPositionerProps, NavigationMenuViewportProps as ViewportProps };
|
|
269
|
+
}
|
|
270
|
+
//#endregion
|
|
271
|
+
export { navigation_menu_d_exports as NavigationMenu, _default as NavigationMenuArrow, type NavigationMenuArrowBaseProps, type NavigationMenuArrowProps, _default$1 as NavigationMenuContent, type NavigationMenuContentBaseProps, type NavigationMenuContentProps, _default$2 as NavigationMenuContext, type NavigationMenuContextProps, _default$3 as NavigationMenuIndicator, type NavigationMenuIndicatorBaseProps, type NavigationMenuIndicatorProps, _default$4 as NavigationMenuItem, type NavigationMenuItemBaseProps, _default$5 as NavigationMenuItemIndicator, type NavigationMenuItemIndicatorBaseProps, type NavigationMenuItemIndicatorProps, type NavigationMenuItemProps, _default$6 as NavigationMenuLink, type NavigationMenuLinkBaseProps, type NavigationMenuLinkProps, _default$7 as NavigationMenuList, type NavigationMenuListBaseProps, type NavigationMenuListProps, _default$8 as NavigationMenuRoot, type NavigationMenuRootBaseProps, type NavigationMenuRootEmits, type NavigationMenuRootProps, _default$9 as NavigationMenuRootProvider, type NavigationMenuRootProviderBaseProps, type NavigationMenuRootProviderProps, _default$10 as NavigationMenuTrigger, type NavigationMenuTriggerBaseProps, type NavigationMenuTriggerProps, type NavigationMenuValueChangeDetails, _default$11 as NavigationMenuViewport, type NavigationMenuViewportBaseProps, _default$12 as NavigationMenuViewportPositioner, type NavigationMenuViewportPositionerBaseProps, type NavigationMenuViewportPositionerProps, type NavigationMenuViewportProps, type UseNavigationMenuContext, type UseNavigationMenuProps, type UseNavigationMenuReturn, navigationMenuAnatomy, useNavigationMenu, useNavigationMenuContext };
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { a as mergeProps$1, c as normalizeProps$1, d as useForwardExpose, m as createContext, n as RenderStrategyPropsProvider, r as useRenderStrategyProps, s as useMachine } from "./utils-D95V66v9.js";
|
|
3
|
+
import { a as DEFAULT_LOCALE, d as useEnvironmentContext, o as useLocaleContext, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
4
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
5
|
+
import { n as wire } from "./factory-8Ao0DEy3.js";
|
|
6
|
+
import "./presence-jaHZaD_O.js";
|
|
7
|
+
import { t as usePresence } from "./use-presence-oNdFU2c2.js";
|
|
8
|
+
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeDefaults, mergeProps, normalizeProps, openBlock, renderSlot, toValue, unref, useAttrs, useId, withCtx } from "vue";
|
|
9
|
+
import { ensure } from "@wirekyt/dom/utils";
|
|
10
|
+
import * as navigationMenu from "@wirekyt/dom/machines/navigation-menu";
|
|
11
|
+
import { anatomy as navigationMenuAnatomy } from "@wirekyt/dom/machines/navigation-menu";
|
|
12
|
+
//#region src/components/navigation-menu/use-context.ts
|
|
13
|
+
const [NavigationMenuProvider, useNavigationMenuContext] = createContext("NavigationMenuContext");
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/navigation-menu/arrow.vue
|
|
16
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
17
|
+
__name: "arrow",
|
|
18
|
+
props: { asChild: { type: Boolean } },
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const navigationMenu = useNavigationMenuContext();
|
|
21
|
+
useForwardExpose();
|
|
22
|
+
return (_ctx, _cache) => {
|
|
23
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(navigationMenu).getArrowProps(), { "as-child": __props.asChild }), {
|
|
24
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
25
|
+
_: 3
|
|
26
|
+
}, 16, ["as-child"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/navigation-menu/use-item-props-context.ts
|
|
32
|
+
const [NavigationMenuItemPropsProvider, useNavigationMenuItemPropsContext] = createContext("NavigationMenuItemPropsContext");
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/components/navigation-menu/content.vue
|
|
35
|
+
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
36
|
+
__name: "content",
|
|
37
|
+
props: {
|
|
38
|
+
value: {},
|
|
39
|
+
asChild: { type: Boolean }
|
|
40
|
+
},
|
|
41
|
+
setup(__props) {
|
|
42
|
+
const props = __props;
|
|
43
|
+
const attrs = useAttrs();
|
|
44
|
+
const api = useNavigationMenuContext();
|
|
45
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
46
|
+
const renderStrategy = useRenderStrategyProps();
|
|
47
|
+
const value = computed(() => props.value ?? itemContext?.value.value);
|
|
48
|
+
const contentProps = computed(() => ({
|
|
49
|
+
...props,
|
|
50
|
+
value: value.value
|
|
51
|
+
}));
|
|
52
|
+
const presence = usePresence(computed(() => ({
|
|
53
|
+
...renderStrategy.value,
|
|
54
|
+
present: api.value.value === value.value
|
|
55
|
+
})));
|
|
56
|
+
const mergedProps = computed(() => mergeProps$1({ ...attrs }, api.value.getContentProps(contentProps.value), presence.value.presenceProps));
|
|
57
|
+
const viewportNode = computed(() => api.value.getViewportNode());
|
|
58
|
+
const isViewportRendered = computed(() => api.value.isViewportRendered);
|
|
59
|
+
useForwardExpose();
|
|
60
|
+
return (_ctx, _cache) => {
|
|
61
|
+
return isViewportRendered.value && viewportNode.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
62
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(api).getViewportProxyProps(contentProps.value))), null, 16),
|
|
63
|
+
createElementVNode("div", normalizeProps(guardReactiveProps(unref(api).getTriggerProxyProps(contentProps.value))), null, 16),
|
|
64
|
+
(openBlock(), createBlock(Teleport, { to: viewportNode.value }, [!unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
65
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
66
|
+
_: 3
|
|
67
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true)], 8, ["to"]))
|
|
68
|
+
], 64)) : !unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 1 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
69
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
70
|
+
_: 3
|
|
71
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/navigation-menu/context.vue
|
|
77
|
+
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
78
|
+
__name: "context",
|
|
79
|
+
setup(__props) {
|
|
80
|
+
const navigationMenu = useNavigationMenuContext();
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(navigationMenu))));
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/components/navigation-menu/indicator.vue
|
|
88
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
89
|
+
__name: "indicator",
|
|
90
|
+
props: { asChild: { type: Boolean } },
|
|
91
|
+
setup(__props) {
|
|
92
|
+
const navigationMenu = useNavigationMenuContext();
|
|
93
|
+
const renderStrategy = useRenderStrategyProps();
|
|
94
|
+
const presence = usePresence(computed(() => ({
|
|
95
|
+
...renderStrategy.value,
|
|
96
|
+
present: navigationMenu.value.open
|
|
97
|
+
})));
|
|
98
|
+
const mergedProps = computed(() => mergeProps$1(navigationMenu.value.getIndicatorProps(), presence.value.presenceProps));
|
|
99
|
+
useForwardExpose();
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
102
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
103
|
+
_: 3
|
|
104
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/navigation-menu/item.vue
|
|
110
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
111
|
+
__name: "item",
|
|
112
|
+
props: {
|
|
113
|
+
value: {},
|
|
114
|
+
disabled: { type: Boolean },
|
|
115
|
+
asChild: { type: Boolean }
|
|
116
|
+
},
|
|
117
|
+
setup(__props) {
|
|
118
|
+
const props = __props;
|
|
119
|
+
const navigationMenu = useNavigationMenuContext();
|
|
120
|
+
NavigationMenuItemPropsProvider(computed(() => ({
|
|
121
|
+
value: props.value,
|
|
122
|
+
disabled: props.disabled
|
|
123
|
+
})));
|
|
124
|
+
useForwardExpose();
|
|
125
|
+
return (_ctx, _cache) => {
|
|
126
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(navigationMenu).getItemProps(props), { "as-child": __props.asChild }), {
|
|
127
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
128
|
+
_: 3
|
|
129
|
+
}, 16, ["as-child"]);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/components/navigation-menu/item-indicator.vue
|
|
135
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
136
|
+
__name: "item-indicator",
|
|
137
|
+
props: { asChild: { type: Boolean } },
|
|
138
|
+
setup(__props) {
|
|
139
|
+
const attrs = useAttrs();
|
|
140
|
+
const api = useNavigationMenuContext();
|
|
141
|
+
const itemProps = useNavigationMenuItemPropsContext();
|
|
142
|
+
const mergedProps = computed(() => mergeProps$1({ ...attrs }, api.value.getItemIndicatorProps(itemProps?.value)));
|
|
143
|
+
useForwardExpose();
|
|
144
|
+
return (_ctx, _cache) => {
|
|
145
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(mergedProps.value, { "as-child": __props.asChild }), {
|
|
146
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
147
|
+
_: 3
|
|
148
|
+
}, 16, ["as-child"]);
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/navigation-menu/link.vue
|
|
154
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
155
|
+
__name: "link",
|
|
156
|
+
props: {
|
|
157
|
+
value: {},
|
|
158
|
+
current: { type: Boolean },
|
|
159
|
+
onSelect: { type: Function },
|
|
160
|
+
closeOnClick: { type: Boolean },
|
|
161
|
+
asChild: { type: Boolean }
|
|
162
|
+
},
|
|
163
|
+
setup(__props) {
|
|
164
|
+
const props = __props;
|
|
165
|
+
const navigationMenu = useNavigationMenuContext();
|
|
166
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
167
|
+
const value = computed(() => props.value ?? itemContext?.value?.value);
|
|
168
|
+
const linkProps = computed(() => ({
|
|
169
|
+
...props,
|
|
170
|
+
value: value.value
|
|
171
|
+
}));
|
|
172
|
+
useForwardExpose();
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
return openBlock(), createBlock(unref(wire).a, mergeProps(unref(navigationMenu).getLinkProps(linkProps.value), { "as-child": __props.asChild }), {
|
|
175
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 16, ["as-child"]);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/components/navigation-menu/list.vue
|
|
183
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
184
|
+
__name: "list",
|
|
185
|
+
props: { asChild: { type: Boolean } },
|
|
186
|
+
setup(__props) {
|
|
187
|
+
const navigationMenu = useNavigationMenuContext();
|
|
188
|
+
useForwardExpose();
|
|
189
|
+
return (_ctx, _cache) => {
|
|
190
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(navigationMenu).getListProps(), { "as-child": __props.asChild }), {
|
|
191
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
192
|
+
_: 3
|
|
193
|
+
}, 16, ["as-child"]);
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/navigation-menu/use-navigation-menu.ts
|
|
199
|
+
const useNavigationMenu = (props = {}, emit) => {
|
|
200
|
+
const id = useId();
|
|
201
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
202
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
203
|
+
const context = computed(() => {
|
|
204
|
+
const localProps = toValue(props);
|
|
205
|
+
return {
|
|
206
|
+
id,
|
|
207
|
+
dir: locale.value.dir,
|
|
208
|
+
getRootNode: env?.value.getRootNode,
|
|
209
|
+
...cleanProps(localProps),
|
|
210
|
+
onValueChange: (details) => {
|
|
211
|
+
emit?.("valueChange", details);
|
|
212
|
+
emit?.("update:value", details.value);
|
|
213
|
+
localProps.onValueChange?.(details);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
const service = useMachine(navigationMenu.machine, context);
|
|
218
|
+
return computed(() => navigationMenu.connect(service, normalizeProps$1));
|
|
219
|
+
};
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/components/navigation-menu/root.vue
|
|
222
|
+
const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
223
|
+
__name: "root",
|
|
224
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
225
|
+
closeDelay: {},
|
|
226
|
+
defaultValue: {},
|
|
227
|
+
disableClickTrigger: { type: Boolean },
|
|
228
|
+
disableHoverTrigger: { type: Boolean },
|
|
229
|
+
disablePointerLeaveClose: { type: Boolean },
|
|
230
|
+
id: {},
|
|
231
|
+
ids: {},
|
|
232
|
+
openDelay: {},
|
|
233
|
+
orientation: {},
|
|
234
|
+
translations: {},
|
|
235
|
+
value: {},
|
|
236
|
+
lazyMount: { type: Boolean },
|
|
237
|
+
unmountOnExit: { type: Boolean }
|
|
238
|
+
}, {
|
|
239
|
+
disableClickTrigger: void 0,
|
|
240
|
+
disableHoverTrigger: void 0,
|
|
241
|
+
disablePointerLeaveClose: void 0
|
|
242
|
+
}),
|
|
243
|
+
emits: ["valueChange", "update:value"],
|
|
244
|
+
setup(__props, { emit: __emit }) {
|
|
245
|
+
const props = __props;
|
|
246
|
+
const navigationMenu = useNavigationMenu(props, __emit);
|
|
247
|
+
NavigationMenuProvider(navigationMenu);
|
|
248
|
+
RenderStrategyPropsProvider(computed(() => ({
|
|
249
|
+
lazyMount: props.lazyMount,
|
|
250
|
+
unmountOnExit: props.unmountOnExit
|
|
251
|
+
})));
|
|
252
|
+
useForwardExpose();
|
|
253
|
+
return (_ctx, _cache) => {
|
|
254
|
+
return openBlock(), createBlock(unref(wire).nav, normalizeProps(guardReactiveProps(unref(navigationMenu).getRootProps())), {
|
|
255
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
256
|
+
_: 3
|
|
257
|
+
}, 16);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/components/navigation-menu/root-provider.vue
|
|
263
|
+
const _sfc_main$9 = /*@__PURE__*/ defineComponent({
|
|
264
|
+
__name: "root-provider",
|
|
265
|
+
props: {
|
|
266
|
+
value: {},
|
|
267
|
+
lazyMount: { type: Boolean },
|
|
268
|
+
unmountOnExit: { type: Boolean }
|
|
269
|
+
},
|
|
270
|
+
setup(__props) {
|
|
271
|
+
const props = __props;
|
|
272
|
+
const navigationMenu = computed(() => props.value);
|
|
273
|
+
NavigationMenuProvider(navigationMenu);
|
|
274
|
+
RenderStrategyPropsProvider(computed(() => ({
|
|
275
|
+
lazyMount: props.lazyMount,
|
|
276
|
+
unmountOnExit: props.unmountOnExit
|
|
277
|
+
})));
|
|
278
|
+
useForwardExpose();
|
|
279
|
+
return (_ctx, _cache) => {
|
|
280
|
+
return openBlock(), createBlock(unref(wire).nav, normalizeProps(guardReactiveProps(navigationMenu.value.getRootProps())), {
|
|
281
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
282
|
+
_: 3
|
|
283
|
+
}, 16);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region src/components/navigation-menu/trigger.vue
|
|
289
|
+
const _sfc_main$10 = /*@__PURE__*/ defineComponent({
|
|
290
|
+
__name: "trigger",
|
|
291
|
+
props: {
|
|
292
|
+
disabled: { type: Boolean },
|
|
293
|
+
asChild: { type: Boolean }
|
|
294
|
+
},
|
|
295
|
+
setup(__props) {
|
|
296
|
+
const props = __props;
|
|
297
|
+
const navigationMenu = useNavigationMenuContext();
|
|
298
|
+
const itemContext = useNavigationMenuItemPropsContext();
|
|
299
|
+
ensure(itemContext?.value, () => "NavigationMenu.Trigger must be used within NavigationMenu.Item");
|
|
300
|
+
const triggerProps = computed(() => ({
|
|
301
|
+
...props,
|
|
302
|
+
value: itemContext?.value.value,
|
|
303
|
+
disabled: props.disabled ?? itemContext?.value.disabled
|
|
304
|
+
}));
|
|
305
|
+
useForwardExpose();
|
|
306
|
+
return (_ctx, _cache) => {
|
|
307
|
+
return openBlock(), createBlock(unref(wire).button, mergeProps(unref(navigationMenu).getTriggerProps(triggerProps.value), { "as-child": __props.asChild }), {
|
|
308
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
309
|
+
_: 3
|
|
310
|
+
}, 16, ["as-child"]);
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
//#endregion
|
|
315
|
+
//#region src/components/navigation-menu/use-viewport-props-context.ts
|
|
316
|
+
const [setNavigationMenuViewportPropsContext, getNavigationMenuViewportPropsContext] = createContext("NavigationMenuViewportPropsContext");
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/components/navigation-menu/viewport.vue
|
|
319
|
+
const _sfc_main$11 = /*@__PURE__*/ defineComponent({
|
|
320
|
+
__name: "viewport",
|
|
321
|
+
props: { asChild: { type: Boolean } },
|
|
322
|
+
setup(__props) {
|
|
323
|
+
const viewportPropsContext = getNavigationMenuViewportPropsContext();
|
|
324
|
+
const navigationMenu = useNavigationMenuContext();
|
|
325
|
+
const renderStrategy = useRenderStrategyProps();
|
|
326
|
+
const presence = usePresence(computed(() => ({
|
|
327
|
+
...renderStrategy.value,
|
|
328
|
+
present: navigationMenu.value.open
|
|
329
|
+
})));
|
|
330
|
+
const mergedProps = computed(() => mergeProps$1(navigationMenu.value.getViewportProps(viewportPropsContext?.value), presence.value.presenceProps));
|
|
331
|
+
useForwardExpose();
|
|
332
|
+
return (_ctx, _cache) => {
|
|
333
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(wire).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
334
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
335
|
+
_: 3
|
|
336
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
//#endregion
|
|
341
|
+
//#region src/components/navigation-menu/viewport-positioner.vue
|
|
342
|
+
const _sfc_main$12 = /*@__PURE__*/ defineComponent({
|
|
343
|
+
__name: "viewport-positioner",
|
|
344
|
+
props: {
|
|
345
|
+
align: {},
|
|
346
|
+
asChild: { type: Boolean }
|
|
347
|
+
},
|
|
348
|
+
setup(__props) {
|
|
349
|
+
const props = __props;
|
|
350
|
+
const navigationMenu = useNavigationMenuContext();
|
|
351
|
+
const viewportProps = computed(() => ({ align: props.align }));
|
|
352
|
+
setNavigationMenuViewportPropsContext(viewportProps);
|
|
353
|
+
useForwardExpose();
|
|
354
|
+
return (_ctx, _cache) => {
|
|
355
|
+
return openBlock(), createBlock(unref(wire).div, mergeProps(unref(navigationMenu).getViewportPositionerProps(viewportProps.value), { "as-child": __props.asChild }), {
|
|
356
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
357
|
+
_: 3
|
|
358
|
+
}, 16, ["as-child"]);
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region src/components/navigation-menu/navigation-menu.ts
|
|
364
|
+
var navigation_menu_exports = /* @__PURE__ */ __exportAll({
|
|
365
|
+
Arrow: () => _sfc_main,
|
|
366
|
+
Content: () => _sfc_main$1,
|
|
367
|
+
Context: () => _sfc_main$2,
|
|
368
|
+
Indicator: () => _sfc_main$3,
|
|
369
|
+
Item: () => _sfc_main$4,
|
|
370
|
+
ItemIndicator: () => _sfc_main$5,
|
|
371
|
+
Link: () => _sfc_main$6,
|
|
372
|
+
List: () => _sfc_main$7,
|
|
373
|
+
Root: () => _sfc_main$8,
|
|
374
|
+
RootProvider: () => _sfc_main$9,
|
|
375
|
+
Trigger: () => _sfc_main$10,
|
|
376
|
+
Viewport: () => _sfc_main$11,
|
|
377
|
+
ViewportPositioner: () => _sfc_main$12
|
|
378
|
+
});
|
|
379
|
+
//#endregion
|
|
380
|
+
export { navigation_menu_exports as NavigationMenu, _sfc_main as NavigationMenuArrow, _sfc_main$1 as NavigationMenuContent, _sfc_main$2 as NavigationMenuContext, _sfc_main$3 as NavigationMenuIndicator, _sfc_main$4 as NavigationMenuItem, _sfc_main$5 as NavigationMenuItemIndicator, _sfc_main$6 as NavigationMenuLink, _sfc_main$7 as NavigationMenuList, _sfc_main$8 as NavigationMenuRoot, _sfc_main$9 as NavigationMenuRootProvider, _sfc_main$10 as NavigationMenuTrigger, _sfc_main$11 as NavigationMenuViewport, _sfc_main$12 as NavigationMenuViewportPositioner, navigationMenuAnatomy, useNavigationMenu, useNavigationMenuContext };
|