@nuxt/ui 3.3.5 → 3.3.6
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/.nuxt/ui/drawer.ts +23 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.d.vue.ts +6 -5
- package/dist/runtime/components/Accordion.vue.d.ts +6 -5
- package/dist/runtime/components/Alert.d.vue.ts +2 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -1
- package/dist/runtime/components/App.d.vue.ts +5 -4
- package/dist/runtime/components/App.vue +1 -1
- package/dist/runtime/components/App.vue.d.ts +5 -4
- package/dist/runtime/components/Avatar.d.vue.ts +2 -1
- package/dist/runtime/components/Avatar.vue.d.ts +2 -1
- package/dist/runtime/components/AvatarGroup.d.vue.ts +2 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Badge.d.vue.ts +2 -1
- package/dist/runtime/components/Badge.vue.d.ts +2 -1
- package/dist/runtime/components/Breadcrumb.d.vue.ts +4 -3
- package/dist/runtime/components/Breadcrumb.vue.d.ts +4 -3
- package/dist/runtime/components/Button.d.vue.ts +2 -1
- package/dist/runtime/components/Button.vue.d.ts +2 -1
- package/dist/runtime/components/ButtonGroup.d.vue.ts +2 -1
- package/dist/runtime/components/ButtonGroup.vue.d.ts +2 -1
- package/dist/runtime/components/Calendar.d.vue.ts +9 -8
- package/dist/runtime/components/Calendar.vue.d.ts +9 -8
- package/dist/runtime/components/Card.d.vue.ts +2 -1
- package/dist/runtime/components/Card.vue.d.ts +2 -1
- package/dist/runtime/components/Carousel.d.vue.ts +7 -6
- package/dist/runtime/components/Carousel.vue +32 -12
- package/dist/runtime/components/Carousel.vue.d.ts +7 -6
- package/dist/runtime/components/Checkbox.d.vue.ts +2 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +2 -1
- package/dist/runtime/components/CheckboxGroup.d.vue.ts +7 -6
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Chip.d.vue.ts +2 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -1
- package/dist/runtime/components/Collapsible.d.vue.ts +2 -1
- package/dist/runtime/components/Collapsible.vue.d.ts +2 -1
- package/dist/runtime/components/ColorPicker.d.vue.ts +2 -1
- package/dist/runtime/components/ColorPicker.vue.d.ts +2 -1
- package/dist/runtime/components/CommandPalette.d.vue.ts +13 -12
- package/dist/runtime/components/CommandPalette.vue.d.ts +13 -12
- package/dist/runtime/components/Container.d.vue.ts +2 -1
- package/dist/runtime/components/Container.vue.d.ts +2 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +6 -5
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -5
- package/dist/runtime/components/ContextMenuContent.d.vue.ts +10 -9
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/Drawer.d.vue.ts +5 -1
- package/dist/runtime/components/Drawer.vue +19 -5
- package/dist/runtime/components/Drawer.vue.d.ts +5 -1
- package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -5
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -5
- package/dist/runtime/components/DropdownMenuContent.d.vue.ts +10 -9
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +10 -9
- package/dist/runtime/components/FileUpload.d.vue.ts +9 -8
- package/dist/runtime/components/FileUpload.vue.d.ts +9 -8
- package/dist/runtime/components/Form.d.vue.ts +7 -6
- package/dist/runtime/components/Form.vue.d.ts +7 -6
- package/dist/runtime/components/FormField.d.vue.ts +2 -1
- package/dist/runtime/components/FormField.vue.d.ts +2 -1
- package/dist/runtime/components/Icon.d.vue.ts +2 -1
- package/dist/runtime/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/components/Input.d.vue.ts +9 -8
- package/dist/runtime/components/Input.vue.d.ts +9 -8
- package/dist/runtime/components/InputMenu.d.vue.ts +17 -16
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -16
- package/dist/runtime/components/InputNumber.d.vue.ts +2 -1
- package/dist/runtime/components/InputNumber.vue.d.ts +2 -1
- package/dist/runtime/components/InputTags.d.vue.ts +13 -12
- package/dist/runtime/components/InputTags.vue.d.ts +13 -12
- package/dist/runtime/components/Kbd.d.vue.ts +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +2 -1
- package/dist/runtime/components/Link.d.vue.ts +2 -1
- package/dist/runtime/components/Link.vue.d.ts +2 -1
- package/dist/runtime/components/LinkBase.d.vue.ts +2 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/components/Modal.d.vue.ts +4 -3
- package/dist/runtime/components/Modal.vue.d.ts +4 -3
- package/dist/runtime/components/NavigationMenu.d.vue.ts +6 -5
- package/dist/runtime/components/NavigationMenu.vue.d.ts +6 -5
- package/dist/runtime/components/OverlayProvider.d.vue.ts +2 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -1
- package/dist/runtime/components/Pagination.d.vue.ts +2 -1
- package/dist/runtime/components/Pagination.vue +4 -4
- package/dist/runtime/components/Pagination.vue.d.ts +2 -1
- package/dist/runtime/components/PinInput.d.vue.ts +10 -9
- package/dist/runtime/components/PinInput.vue.d.ts +10 -9
- package/dist/runtime/components/Popover.d.vue.ts +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +2 -1
- package/dist/runtime/components/Progress.d.vue.ts +2 -1
- package/dist/runtime/components/Progress.vue.d.ts +2 -1
- package/dist/runtime/components/RadioGroup.d.vue.ts +7 -6
- package/dist/runtime/components/RadioGroup.vue.d.ts +7 -6
- package/dist/runtime/components/Select.d.vue.ts +11 -10
- package/dist/runtime/components/Select.vue.d.ts +11 -10
- package/dist/runtime/components/SelectMenu.d.vue.ts +16 -15
- package/dist/runtime/components/SelectMenu.vue.d.ts +16 -15
- package/dist/runtime/components/Separator.d.vue.ts +2 -1
- package/dist/runtime/components/Separator.vue.d.ts +2 -1
- package/dist/runtime/components/Skeleton.d.vue.ts +2 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +2 -1
- package/dist/runtime/components/Slideover.d.vue.ts +4 -3
- package/dist/runtime/components/Slideover.vue.d.ts +4 -3
- package/dist/runtime/components/Slider.d.vue.ts +8 -7
- package/dist/runtime/components/Slider.vue.d.ts +8 -7
- package/dist/runtime/components/Stepper.d.vue.ts +10 -9
- package/dist/runtime/components/Stepper.vue.d.ts +10 -9
- package/dist/runtime/components/Switch.d.vue.ts +2 -1
- package/dist/runtime/components/Switch.vue.d.ts +2 -1
- package/dist/runtime/components/Table.d.vue.ts +20 -19
- package/dist/runtime/components/Table.vue +19 -1
- package/dist/runtime/components/Table.vue.d.ts +20 -19
- package/dist/runtime/components/Tabs.d.vue.ts +7 -6
- package/dist/runtime/components/Tabs.vue.d.ts +7 -6
- package/dist/runtime/components/Textarea.d.vue.ts +9 -8
- package/dist/runtime/components/Textarea.vue.d.ts +9 -8
- package/dist/runtime/components/Timeline.d.vue.ts +7 -6
- package/dist/runtime/components/Timeline.vue.d.ts +7 -6
- package/dist/runtime/components/Toast.d.vue.ts +2 -1
- package/dist/runtime/components/Toast.vue.d.ts +2 -1
- package/dist/runtime/components/Toaster.d.vue.ts +2 -1
- package/dist/runtime/components/Toaster.vue.d.ts +2 -1
- package/dist/runtime/components/Tooltip.d.vue.ts +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +2 -1
- package/dist/runtime/components/Tree.d.vue.ts +7 -6
- package/dist/runtime/components/Tree.vue.d.ts +7 -6
- package/dist/runtime/composables/useKbd.js +1 -1
- package/dist/runtime/composables/usePortal.d.ts +3 -3
- package/dist/runtime/composables/usePortal.js +5 -10
- package/dist/runtime/inertia/components/Link.d.vue.ts +2 -1
- package/dist/runtime/inertia/components/Link.vue.d.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.d.vue.ts +2 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Icon.d.vue.ts +2 -1
- package/dist/runtime/vue/components/Icon.vue.d.ts +2 -1
- package/dist/runtime/vue/components/Link.d.vue.ts +2 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +2 -1
- package/dist/shared/{ui.DH9BUZkq.mjs → ui.DBpKc5X3.mjs} +88 -60
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +14 -14
|
@@ -58,21 +58,22 @@ export interface TextareaSlots {
|
|
|
58
58
|
default(props?: {}): any;
|
|
59
59
|
trailing(props?: {}): any;
|
|
60
60
|
}
|
|
61
|
-
declare const
|
|
62
|
-
props: __VLS_PrettifyLocal<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{
|
|
61
|
+
declare const __VLS_export: <T extends TextareaValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
62
|
+
props: __VLS_PrettifyLocal<TextareaProps<T> & {
|
|
63
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
64
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
65
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
66
|
+
}> & import("vue").PublicProps;
|
|
67
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
68
68
|
textareaRef: import("vue").Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
69
|
-
}>)
|
|
69
|
+
}>) => void;
|
|
70
70
|
attrs: any;
|
|
71
71
|
slots: TextareaSlots;
|
|
72
72
|
emit: ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void);
|
|
73
73
|
}>) => import("vue").VNode & {
|
|
74
74
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
75
75
|
};
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
76
77
|
export default _default;
|
|
77
78
|
type __VLS_PrettifyLocal<T> = {
|
|
78
79
|
[K in keyof T as K]: T[K];
|
|
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
51
51
|
} & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
|
|
52
52
|
item: T;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
54
|
+
declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
+
props: __VLS_PrettifyLocal<(TimelineProps<T> & {
|
|
58
56
|
modelValue?: string | number;
|
|
59
|
-
}) & {
|
|
60
|
-
|
|
57
|
+
}) & {
|
|
58
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
59
|
+
}> & import("vue").PublicProps;
|
|
60
|
+
expose: (exposed: {}) => void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: TimelineSlots<T>;
|
|
63
63
|
emit: (evt: "update:modelValue", value: string | number | undefined) => void;
|
|
64
64
|
}>) => import("vue").VNode & {
|
|
65
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
66
66
|
};
|
|
67
|
+
declare const _default: typeof __VLS_export;
|
|
67
68
|
export default _default;
|
|
68
69
|
type __VLS_PrettifyLocal<T> = {
|
|
69
70
|
[K in keyof T as K]: T[K];
|
|
@@ -51,19 +51,20 @@ export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
|
51
51
|
} & DynamicSlots<T, 'indicator' | 'date' | 'title' | 'description', {
|
|
52
52
|
item: T;
|
|
53
53
|
}>;
|
|
54
|
-
declare const
|
|
55
|
-
props: __VLS_PrettifyLocal<
|
|
56
|
-
readonly "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
57
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (TimelineProps<T> & {
|
|
54
|
+
declare const __VLS_export: <T extends TimelineItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
55
|
+
props: __VLS_PrettifyLocal<(TimelineProps<T> & {
|
|
58
56
|
modelValue?: string | number;
|
|
59
|
-
}) & {
|
|
60
|
-
|
|
57
|
+
}) & {
|
|
58
|
+
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
59
|
+
}> & import("vue").PublicProps;
|
|
60
|
+
expose: (exposed: {}) => void;
|
|
61
61
|
attrs: any;
|
|
62
62
|
slots: TimelineSlots<T>;
|
|
63
63
|
emit: (evt: "update:modelValue", value: string | number | undefined) => void;
|
|
64
64
|
}>) => import("vue").VNode & {
|
|
65
65
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
66
66
|
};
|
|
67
|
+
declare const _default: typeof __VLS_export;
|
|
67
68
|
export default _default;
|
|
68
69
|
type __VLS_PrettifyLocal<T> = {
|
|
69
70
|
[K in keyof T as K]: T[K];
|
|
@@ -67,7 +67,7 @@ export interface ToastSlots {
|
|
|
67
67
|
};
|
|
68
68
|
}): any;
|
|
69
69
|
}
|
|
70
|
-
declare const
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
|
|
71
71
|
height: import("vue").Ref<number, number>;
|
|
72
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
73
|
resume: () => any;
|
|
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
156
156
|
progress: boolean | Pick<ProgressProps, "color" | "ui">;
|
|
157
157
|
orientation: Toast["variants"]["orientation"];
|
|
158
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
159
160
|
export default _default;
|
|
160
161
|
type __VLS_WithSlots<T, S> = T & {
|
|
161
162
|
new (): {
|
|
@@ -67,7 +67,7 @@ export interface ToastSlots {
|
|
|
67
67
|
};
|
|
68
68
|
}): any;
|
|
69
69
|
}
|
|
70
|
-
declare const
|
|
70
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToastProps, {
|
|
71
71
|
height: import("vue").Ref<number, number>;
|
|
72
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
73
73
|
resume: () => any;
|
|
@@ -156,6 +156,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ToastProps
|
|
|
156
156
|
progress: boolean | Pick<ProgressProps, "color" | "ui">;
|
|
157
157
|
orientation: Toast["variants"]["orientation"];
|
|
158
158
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToastSlots>;
|
|
159
|
+
declare const _default: typeof __VLS_export;
|
|
159
160
|
export default _default;
|
|
160
161
|
type __VLS_WithSlots<T, S> = T & {
|
|
161
162
|
new (): {
|
|
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
34
34
|
progress: boolean;
|
|
35
35
|
duration: number;
|
|
36
36
|
expand: boolean;
|
|
37
37
|
portal: boolean | string | HTMLElement;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -30,12 +30,13 @@ export interface ToasterProps extends Omit<ToastProviderProps, 'swipeDirection'>
|
|
|
30
30
|
export interface ToasterSlots {
|
|
31
31
|
default(props?: {}): any;
|
|
32
32
|
}
|
|
33
|
-
declare const
|
|
33
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
|
|
34
34
|
progress: boolean;
|
|
35
35
|
duration: number;
|
|
36
36
|
expand: boolean;
|
|
37
37
|
portal: boolean | string | HTMLElement;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ToasterSlots>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
41
42
|
new (): {
|
|
@@ -41,13 +41,14 @@ export interface TooltipSlots {
|
|
|
41
41
|
}): any;
|
|
42
42
|
content(props?: {}): any;
|
|
43
43
|
}
|
|
44
|
-
declare const
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
"update:open": (value: boolean) => any;
|
|
46
46
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
47
47
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
portal: boolean | string | HTMLElement;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
53
54
|
new (): {
|
|
@@ -41,13 +41,14 @@ export interface TooltipSlots {
|
|
|
41
41
|
}): any;
|
|
42
42
|
content(props?: {}): any;
|
|
43
43
|
}
|
|
44
|
-
declare const
|
|
44
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
"update:open": (value: boolean) => any;
|
|
46
46
|
}, string, import("vue").PublicProps, Readonly<TooltipProps> & Readonly<{
|
|
47
47
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
portal: boolean | string | HTMLElement;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, TooltipSlots>;
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_WithSlots<T, S> = T & {
|
|
53
54
|
new (): {
|
|
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
96
96
|
expanded: boolean;
|
|
97
97
|
selected: boolean;
|
|
98
98
|
}>;
|
|
99
|
-
declare const
|
|
100
|
-
props: __VLS_PrettifyLocal<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
expose(exposed:
|
|
99
|
+
declare const __VLS_export: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
100
|
+
props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
|
|
101
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
102
|
+
"onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
103
|
+
}> & import("vue").PublicProps;
|
|
104
|
+
expose: (exposed: {}) => void;
|
|
105
105
|
attrs: any;
|
|
106
106
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
107
107
|
emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
|
|
108
108
|
}>) => import("vue").VNode & {
|
|
109
109
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
110
110
|
};
|
|
111
|
+
declare const _default: typeof __VLS_export;
|
|
111
112
|
export default _default;
|
|
112
113
|
type __VLS_PrettifyLocal<T> = {
|
|
113
114
|
[K in keyof T as K]: T[K];
|
|
@@ -96,18 +96,19 @@ export type TreeSlots<A extends TreeItem[] = TreeItem[], T extends NestedItem<A>
|
|
|
96
96
|
expanded: boolean;
|
|
97
97
|
selected: boolean;
|
|
98
98
|
}>;
|
|
99
|
-
declare const
|
|
100
|
-
props: __VLS_PrettifyLocal<
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
expose(exposed:
|
|
99
|
+
declare const __VLS_export: <T extends TreeItem[], VK extends GetItemKeys<T> = "value", M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
100
|
+
props: __VLS_PrettifyLocal<TreeProps<T, VK, M> & {
|
|
101
|
+
"onUpdate:modelValue"?: ((value: GetModelValue<T, VK, M>) => any) | undefined;
|
|
102
|
+
"onUpdate:expanded"?: ((val: string[]) => any) | undefined;
|
|
103
|
+
}> & import("vue").PublicProps;
|
|
104
|
+
expose: (exposed: {}) => void;
|
|
105
105
|
attrs: any;
|
|
106
106
|
slots: TreeSlots<T, NestedItem<T>>;
|
|
107
107
|
emit: ((evt: "update:modelValue", value: GetModelValue<T, VK, M>) => void) & ((evt: "update:expanded", val: string[]) => void);
|
|
108
108
|
}>) => import("vue").VNode & {
|
|
109
109
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
110
110
|
};
|
|
111
|
+
declare const _default: typeof __VLS_export;
|
|
111
112
|
export default _default;
|
|
112
113
|
type __VLS_PrettifyLocal<T> = {
|
|
113
114
|
[K in keyof T as K]: T[K];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref, InjectionKey } from 'vue';
|
|
2
|
-
export declare const portalTargetInjectionKey: InjectionKey<Ref<string | HTMLElement>>;
|
|
3
|
-
export declare function usePortal(portal: Ref<
|
|
4
|
-
to: string | HTMLElement;
|
|
2
|
+
export declare const portalTargetInjectionKey: InjectionKey<Ref<boolean | string | HTMLElement>>;
|
|
3
|
+
export declare function usePortal(portal: Ref<boolean | string | HTMLElement | undefined>): import("vue").ComputedRef<{
|
|
4
|
+
to: string | HTMLElement | undefined;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
}>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { inject,
|
|
1
|
+
import { inject, computed } from "vue";
|
|
2
2
|
export const portalTargetInjectionKey = Symbol("nuxt-ui.portal-target");
|
|
3
3
|
export function usePortal(portal) {
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return portal.value;
|
|
10
|
-
});
|
|
11
|
-
const disabled = computed(() => typeof portal.value === "boolean" ? !portal.value : false);
|
|
12
|
-
provide(portalTargetInjectionKey, computed(() => to.value));
|
|
4
|
+
const globalPortal = inject(portalTargetInjectionKey, void 0);
|
|
5
|
+
const value = computed(() => portal.value === true ? globalPortal?.value : portal.value);
|
|
6
|
+
const disabled = computed(() => typeof value.value === "boolean" ? !value.value : false);
|
|
7
|
+
const to = computed(() => typeof value.value === "boolean" ? "body" : value.value);
|
|
13
8
|
return computed(() => ({
|
|
14
9
|
to: to.value,
|
|
15
10
|
disabled: disabled.value
|
|
@@ -48,13 +48,14 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
52
52
|
type: "reset" | "submit" | "button";
|
|
53
53
|
as: any;
|
|
54
54
|
activeClass: string;
|
|
55
55
|
active: boolean;
|
|
56
56
|
inactiveClass: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
58
59
|
export default _default;
|
|
59
60
|
type __VLS_WithSlots<T, S> = T & {
|
|
60
61
|
new (): {
|
|
@@ -48,13 +48,14 @@ export interface LinkSlots {
|
|
|
48
48
|
active: boolean;
|
|
49
49
|
}): any;
|
|
50
50
|
}
|
|
51
|
-
declare const
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
52
52
|
type: "reset" | "submit" | "button";
|
|
53
53
|
as: any;
|
|
54
54
|
activeClass: string;
|
|
55
55
|
active: boolean;
|
|
56
56
|
inactiveClass: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
58
59
|
export default _default;
|
|
59
60
|
type __VLS_WithSlots<T, S> = T & {
|
|
60
61
|
new (): {
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
13
13
|
type: string;
|
|
14
14
|
as: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
|
|
|
17
17
|
} & {
|
|
18
18
|
default?: (props: {}) => any;
|
|
19
19
|
}>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -9,7 +9,7 @@ export interface LinkBaseProps {
|
|
|
9
9
|
active?: boolean;
|
|
10
10
|
isExternal?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
13
13
|
type: string;
|
|
14
14
|
as: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkBasePr
|
|
|
17
17
|
} & {
|
|
18
18
|
default?: (props: {}) => any;
|
|
19
19
|
}>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
20
21
|
export default _default;
|
|
21
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
23
|
new (): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface IconProps {
|
|
2
2
|
name: string;
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface IconProps {
|
|
2
2
|
name: string;
|
|
3
3
|
}
|
|
4
|
-
declare const
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
@@ -77,7 +77,7 @@ export interface LinkSlots {
|
|
|
77
77
|
active: boolean;
|
|
78
78
|
}): any;
|
|
79
79
|
}
|
|
80
|
-
declare const
|
|
80
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
81
81
|
type: "reset" | "submit" | "button";
|
|
82
82
|
as: any;
|
|
83
83
|
activeClass: string;
|
|
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
|
85
85
|
active: boolean;
|
|
86
86
|
inactiveClass: string;
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
88
|
+
declare const _default: typeof __VLS_export;
|
|
88
89
|
export default _default;
|
|
89
90
|
type __VLS_WithSlots<T, S> = T & {
|
|
90
91
|
new (): {
|
|
@@ -77,7 +77,7 @@ export interface LinkSlots {
|
|
|
77
77
|
active: boolean;
|
|
78
78
|
}): any;
|
|
79
79
|
}
|
|
80
|
-
declare const
|
|
80
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
81
81
|
type: "reset" | "submit" | "button";
|
|
82
82
|
as: any;
|
|
83
83
|
activeClass: string;
|
|
@@ -85,6 +85,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<LinkProps,
|
|
|
85
85
|
active: boolean;
|
|
86
86
|
inactiveClass: string;
|
|
87
87
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
88
|
+
declare const _default: typeof __VLS_export;
|
|
88
89
|
export default _default;
|
|
89
90
|
type __VLS_WithSlots<T, S> = T & {
|
|
90
91
|
new (): {
|
|
@@ -1270,69 +1270,97 @@ const drawer = (options) => ({
|
|
|
1270
1270
|
true: {
|
|
1271
1271
|
content: "rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"
|
|
1272
1272
|
}
|
|
1273
|
+
},
|
|
1274
|
+
snapPoints: {
|
|
1275
|
+
true: ""
|
|
1273
1276
|
}
|
|
1274
1277
|
},
|
|
1275
|
-
compoundVariants: [
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1278
|
+
compoundVariants: [
|
|
1279
|
+
{
|
|
1280
|
+
direction: ["top", "bottom"],
|
|
1281
|
+
class: {
|
|
1282
|
+
content: "h-auto max-h-[96%]",
|
|
1283
|
+
handle: "!w-12 !h-1.5 mx-auto"
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
direction: ["top", "bottom"],
|
|
1288
|
+
snapPoints: true,
|
|
1289
|
+
class: {
|
|
1290
|
+
content: "h-full"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
direction: ["right", "left"],
|
|
1295
|
+
class: {
|
|
1296
|
+
content: "w-auto max-w-[calc(100%-2rem)]",
|
|
1297
|
+
handle: "!h-12 !w-1.5 mt-auto mb-auto"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
direction: ["right", "left"],
|
|
1302
|
+
snapPoints: true,
|
|
1303
|
+
class: {
|
|
1304
|
+
content: "w-full"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
direction: "top",
|
|
1309
|
+
inset: true,
|
|
1310
|
+
class: {
|
|
1311
|
+
content: "inset-x-4 top-4"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
direction: "top",
|
|
1316
|
+
inset: false,
|
|
1317
|
+
class: {
|
|
1318
|
+
content: "inset-x-0 top-0 rounded-b-lg"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
direction: "bottom",
|
|
1323
|
+
inset: true,
|
|
1324
|
+
class: {
|
|
1325
|
+
content: "inset-x-4 bottom-4"
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
direction: "bottom",
|
|
1330
|
+
inset: false,
|
|
1331
|
+
class: {
|
|
1332
|
+
content: "inset-x-0 bottom-0 rounded-t-lg"
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
direction: "left",
|
|
1337
|
+
inset: true,
|
|
1338
|
+
class: {
|
|
1339
|
+
content: "inset-y-4 left-4"
|
|
1340
|
+
}
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
direction: "left",
|
|
1344
|
+
inset: false,
|
|
1345
|
+
class: {
|
|
1346
|
+
content: "inset-y-0 left-0 rounded-r-lg"
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
direction: "right",
|
|
1351
|
+
inset: true,
|
|
1352
|
+
class: {
|
|
1353
|
+
content: "inset-y-4 right-4"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
direction: "right",
|
|
1358
|
+
inset: false,
|
|
1359
|
+
class: {
|
|
1360
|
+
content: "inset-y-0 right-0 rounded-l-lg"
|
|
1361
|
+
}
|
|
1334
1362
|
}
|
|
1335
|
-
|
|
1363
|
+
]
|
|
1336
1364
|
});
|
|
1337
1365
|
|
|
1338
1366
|
const dropdownMenu = (options) => ({
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, r as resolveColors, a as getDefaultUiConfig } from './shared/ui.DBpKc5X3.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED