@nuxt/ui 4.8.0 → 4.8.1
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/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/DashboardSearch.d.vue.ts +1 -1
- package/dist/runtime/components/DashboardSearch.vue +12 -1
- package/dist/runtime/components/DashboardSearch.vue.d.ts +1 -1
- package/dist/runtime/components/EditorDragHandle.vue +1 -0
- package/dist/runtime/components/Form.vue +1 -0
- package/dist/runtime/components/Icon.vue +2 -1
- package/dist/runtime/components/Link.d.vue.ts +1 -1
- package/dist/runtime/components/Link.vue.d.ts +1 -1
- package/dist/runtime/components/LinkBase.d.vue.ts +1 -1
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.d.vue.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.vue +12 -1
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +1 -1
- package/dist/runtime/locale/th.js +6 -6
- package/dist/runtime/types/tv.d.ts +13 -7
- package/dist/runtime/types/utils.d.ts +3 -0
- package/dist/runtime/vue/overrides/inertia/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/LinkBase.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/inertia/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/none/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/overrides/vue-router/Link.vue.d.ts +1 -1
- package/dist/shared/{ui.CoJ8bnb0.mjs → ui.BzjkAvk7.mjs} +9 -4
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +24 -24
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, addImports } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, r as resolveColors, g as getDefaultConfig, p as publicComposables, a as addTemplates } from './shared/ui.
|
|
3
|
+
import { d as defaultOptions, r as resolveColors, g as getDefaultConfig, p as publicComposables, a as addTemplates } from './shared/ui.BzjkAvk7.mjs';
|
|
4
4
|
import '../dist/runtime/utils/index.js';
|
|
5
5
|
import 'node:url';
|
|
6
6
|
import 'scule';
|
|
@@ -11,7 +11,7 @@ import 'pathe';
|
|
|
11
11
|
import 'tinyglobby';
|
|
12
12
|
|
|
13
13
|
const name = "@nuxt/ui";
|
|
14
|
-
const version = "4.8.
|
|
14
|
+
const version = "4.8.1";
|
|
15
15
|
|
|
16
16
|
const module$1 = defineNuxtModule({
|
|
17
17
|
meta: {
|
|
@@ -5,7 +5,7 @@ import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
|
5
5
|
import type { ButtonProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, LinkPropsKeys } from '../types';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type DashboardSearch = ComponentConfig<typeof theme, AppConfig, 'dashboardSearch'>;
|
|
8
|
-
export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<T>, T>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'groups'> {
|
|
8
|
+
export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<T>, T>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> {
|
|
9
9
|
/**
|
|
10
10
|
* @defaultValue 'md'
|
|
11
11
|
*/
|
|
@@ -33,11 +33,22 @@ const _props = defineProps({
|
|
|
33
33
|
modal: { type: Boolean, required: false },
|
|
34
34
|
portal: { type: [Boolean, String], required: false, skipCheck: true },
|
|
35
35
|
icon: { type: null, required: false },
|
|
36
|
+
trailingIcon: { type: null, required: false },
|
|
37
|
+
selectedIcon: { type: null, required: false },
|
|
38
|
+
childrenIcon: { type: null, required: false },
|
|
36
39
|
placeholder: { type: String, required: false },
|
|
37
40
|
autofocus: { type: Boolean, required: false },
|
|
38
41
|
loading: { type: Boolean, required: false },
|
|
39
42
|
loadingIcon: { type: null, required: false },
|
|
40
43
|
closeIcon: { type: null, required: false },
|
|
44
|
+
back: { type: [Boolean, Object], required: false },
|
|
45
|
+
backIcon: { type: null, required: false },
|
|
46
|
+
disabled: { type: Boolean, required: false },
|
|
47
|
+
highlightOnHover: { type: Boolean, required: false },
|
|
48
|
+
labelKey: { type: null, required: false },
|
|
49
|
+
descriptionKey: { type: null, required: false },
|
|
50
|
+
preserveGroupOrder: { type: Boolean, required: false },
|
|
51
|
+
virtualize: { type: [Boolean, Object], required: false },
|
|
41
52
|
groups: { type: Array, required: false }
|
|
42
53
|
});
|
|
43
54
|
const slots = defineSlots();
|
|
@@ -50,7 +61,7 @@ useRuntimeHook("dashboard:search:toggle", () => {
|
|
|
50
61
|
const { t } = useLocale();
|
|
51
62
|
const colorMode = useColorMode();
|
|
52
63
|
const appConfig = useAppConfig();
|
|
53
|
-
const commandPaletteProps = useForwardProps(reactivePick(props, "size", "icon", "placeholder", "autofocus", "loading", "loadingIcon", "close", "closeIcon", "searchDelay"));
|
|
64
|
+
const commandPaletteProps = useForwardProps(reactivePick(props, "size", "icon", "trailingIcon", "selectedIcon", "childrenIcon", "placeholder", "autofocus", "loading", "loadingIcon", "close", "closeIcon", "back", "backIcon", "disabled", "highlightOnHover", "labelKey", "descriptionKey", "preserveGroupOrder", "virtualize", "searchDelay"));
|
|
54
65
|
const modalProps = useForwardProps(reactivePick(props, "overlay", "transition", "content", "dismissible", "fullscreen", "modal", "portal"));
|
|
55
66
|
const getProxySlots = () => omit(slots, ["content"]);
|
|
56
67
|
const fuse = computed(() => defu({}, props.fuse, {
|
|
@@ -5,7 +5,7 @@ import type { UseFuseOptions } from '@vueuse/integrations/useFuse';
|
|
|
5
5
|
import type { ButtonProps, ModalProps, CommandPaletteProps, CommandPaletteSlots, CommandPaletteGroup, CommandPaletteItem, LinkPropsKeys } from '../types';
|
|
6
6
|
import type { ComponentConfig } from '../types/tv';
|
|
7
7
|
type DashboardSearch = ComponentConfig<typeof theme, AppConfig, 'dashboardSearch'>;
|
|
8
|
-
export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<T>, T>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'groups'> {
|
|
8
|
+
export interface DashboardSearchProps<T extends CommandPaletteItem = CommandPaletteItem> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<T>, T>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> {
|
|
9
9
|
/**
|
|
10
10
|
* @defaultValue 'md'
|
|
11
11
|
*/
|
|
@@ -27,6 +27,7 @@ const _props = defineProps({
|
|
|
27
27
|
onElementDragStart: { type: Function, required: false },
|
|
28
28
|
onElementDragEnd: { type: Function, required: false },
|
|
29
29
|
getReferencedVirtualElement: { type: Function, required: false },
|
|
30
|
+
dragImageProperties: { type: Array, required: false },
|
|
30
31
|
nested: { type: [Boolean, Object], required: false },
|
|
31
32
|
label: { type: String, required: false },
|
|
32
33
|
activeColor: { type: null, required: false },
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { useForwardProps } from "reka-ui";
|
|
7
7
|
import { reactivePick } from "@vueuse/core";
|
|
8
|
+
import NuxtIcon from "@nuxt/icon/runtime/components/index.js";
|
|
8
9
|
const props = defineProps({
|
|
9
10
|
name: { type: null, required: true },
|
|
10
11
|
mode: { type: String, required: false },
|
|
@@ -15,6 +16,6 @@ const iconProps = useForwardProps(reactivePick(props, "mode", "size", "customize
|
|
|
15
16
|
</script>
|
|
16
17
|
|
|
17
18
|
<template>
|
|
18
|
-
<
|
|
19
|
+
<NuxtIcon v-if="typeof name === 'string'" :name="name" v-bind="iconProps" />
|
|
19
20
|
<component :is="name" v-else />
|
|
20
21
|
</template>
|
|
@@ -100,8 +100,8 @@ export interface LinkSlots {
|
|
|
100
100
|
declare const _default: typeof __VLS_export;
|
|
101
101
|
export default _default;
|
|
102
102
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
103
|
-
as: any;
|
|
104
103
|
type: "reset" | "submit" | "button";
|
|
104
|
+
as: any;
|
|
105
105
|
active: boolean;
|
|
106
106
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
107
107
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -100,8 +100,8 @@ export interface LinkSlots {
|
|
|
100
100
|
declare const _default: typeof __VLS_export;
|
|
101
101
|
export default _default;
|
|
102
102
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
103
|
-
as: any;
|
|
104
103
|
type: "reset" | "submit" | "button";
|
|
104
|
+
as: any;
|
|
105
105
|
active: boolean;
|
|
106
106
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
107
107
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -14,8 +14,8 @@ export interface LinkBaseProps {
|
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
export default _default;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
17
|
-
as: string;
|
|
18
17
|
type: string;
|
|
18
|
+
as: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
20
20
|
default?: (props: {}) => any;
|
|
21
21
|
}>;
|
|
@@ -14,8 +14,8 @@ export interface LinkBaseProps {
|
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
export default _default;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
17
|
-
as: string;
|
|
18
17
|
type: string;
|
|
18
|
+
as: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
20
20
|
default?: (props: {}) => any;
|
|
21
21
|
}>;
|
|
@@ -44,7 +44,7 @@ export interface ContentSearchItem extends Omit<LinkProps, 'custom'>, CommandPal
|
|
|
44
44
|
*/
|
|
45
45
|
icon?: IconProps['name'];
|
|
46
46
|
}
|
|
47
|
-
export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchLink> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<ContentSearchItem>, ContentSearchItem>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'groups'> {
|
|
47
|
+
export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchLink> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<ContentSearchItem>, ContentSearchItem>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> {
|
|
48
48
|
/**
|
|
49
49
|
* @defaultValue 'md'
|
|
50
50
|
*/
|
|
@@ -39,11 +39,22 @@ const _props = defineProps({
|
|
|
39
39
|
modal: { type: Boolean, required: false },
|
|
40
40
|
portal: { type: [Boolean, String], required: false, skipCheck: true },
|
|
41
41
|
icon: { type: null, required: false },
|
|
42
|
+
trailingIcon: { type: null, required: false },
|
|
43
|
+
selectedIcon: { type: null, required: false },
|
|
44
|
+
childrenIcon: { type: null, required: false },
|
|
42
45
|
placeholder: { type: String, required: false },
|
|
43
46
|
autofocus: { type: Boolean, required: false },
|
|
44
47
|
loading: { type: Boolean, required: false },
|
|
45
48
|
loadingIcon: { type: null, required: false },
|
|
46
49
|
closeIcon: { type: null, required: false },
|
|
50
|
+
back: { type: [Boolean, Object], required: false },
|
|
51
|
+
backIcon: { type: null, required: false },
|
|
52
|
+
disabled: { type: Boolean, required: false },
|
|
53
|
+
highlightOnHover: { type: Boolean, required: false },
|
|
54
|
+
labelKey: { type: null, required: false },
|
|
55
|
+
descriptionKey: { type: null, required: false },
|
|
56
|
+
preserveGroupOrder: { type: Boolean, required: false },
|
|
57
|
+
virtualize: { type: [Boolean, Object], required: false },
|
|
47
58
|
groups: { type: Array, required: false }
|
|
48
59
|
});
|
|
49
60
|
const slots = defineSlots();
|
|
@@ -53,7 +64,7 @@ const { t } = useLocale();
|
|
|
53
64
|
const { open, mapNavigationItems, mapLinks, mapSearchResults, postFilter } = useContentSearch();
|
|
54
65
|
const colorMode = useColorMode();
|
|
55
66
|
const appConfig = useAppConfig();
|
|
56
|
-
const commandPaletteProps = useForwardProps(reactivePick(props, "size", "icon", "placeholder", "autofocus", "loading", "loadingIcon", "close", "closeIcon", "searchDelay"));
|
|
67
|
+
const commandPaletteProps = useForwardProps(reactivePick(props, "size", "icon", "trailingIcon", "selectedIcon", "childrenIcon", "placeholder", "autofocus", "loading", "loadingIcon", "close", "closeIcon", "back", "backIcon", "disabled", "highlightOnHover", "labelKey", "descriptionKey", "preserveGroupOrder", "virtualize", "searchDelay"));
|
|
57
68
|
const modalProps = useForwardProps(reactivePick(props, "overlay", "transition", "content", "dismissible", "fullscreen", "modal", "portal"));
|
|
58
69
|
const getProxySlots = () => omit(slots, ["content"]);
|
|
59
70
|
const fuse = computed(() => defu({}, props.fuse, {
|
|
@@ -44,7 +44,7 @@ export interface ContentSearchItem extends Omit<LinkProps, 'custom'>, CommandPal
|
|
|
44
44
|
*/
|
|
45
45
|
icon?: IconProps['name'];
|
|
46
46
|
}
|
|
47
|
-
export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchLink> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<ContentSearchItem>, ContentSearchItem>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'groups'> {
|
|
47
|
+
export interface ContentSearchProps<T extends ContentSearchLink = ContentSearchLink> extends Pick<ModalProps, 'title' | 'description' | 'overlay' | 'transition' | 'content' | 'dismissible' | 'fullscreen' | 'modal' | 'portal'>, Pick<CommandPaletteProps<CommandPaletteGroup<ContentSearchItem>, ContentSearchItem>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'loadingIcon' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> {
|
|
48
48
|
/**
|
|
49
49
|
* @defaultValue 'md'
|
|
50
50
|
*/
|
|
@@ -32,11 +32,6 @@ export default defineLocale({
|
|
|
32
32
|
chatPromptSubmit: {
|
|
33
33
|
label: "\u0E2A\u0E48\u0E07"
|
|
34
34
|
},
|
|
35
|
-
chatReasoning: {
|
|
36
|
-
thinking: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",
|
|
37
|
-
thought: "\u0E04\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",
|
|
38
|
-
thoughtFor: "\u0E04\u0E34\u0E14\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E27\u0E25\u0E32 {duration}"
|
|
39
|
-
},
|
|
40
35
|
colorMode: {
|
|
41
36
|
dark: "\u0E21\u0E37\u0E14",
|
|
42
37
|
light: "\u0E2A\u0E27\u0E48\u0E32\u0E07",
|
|
@@ -108,7 +103,7 @@ export default defineLocale({
|
|
|
108
103
|
close: "\u0E1B\u0E34\u0E14"
|
|
109
104
|
},
|
|
110
105
|
pricingTable: {
|
|
111
|
-
caption: "\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E23\u0E35\u0E22\u0E1A\u0E40\u0E17\u0E35\u0E22\u0E1A\u0E23\u0E32\u0E04\u0E32
|
|
106
|
+
caption: "\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E23\u0E35\u0E22\u0E1A\u0E40\u0E17\u0E35\u0E22\u0E1A\u0E23\u0E32\u0E04\u0E32"
|
|
112
107
|
},
|
|
113
108
|
prose: {
|
|
114
109
|
codeCollapse: {
|
|
@@ -129,6 +124,11 @@ export default defineLocale({
|
|
|
129
124
|
openIn: "\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E19 {name}"
|
|
130
125
|
}
|
|
131
126
|
},
|
|
127
|
+
chatReasoning: {
|
|
128
|
+
thinking: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",
|
|
129
|
+
thought: "\u0E04\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",
|
|
130
|
+
thoughtFor: "\u0E04\u0E34\u0E14\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E27\u0E25\u0E32 {duration}"
|
|
131
|
+
},
|
|
132
132
|
sidebar: {
|
|
133
133
|
close: "\u0E1B\u0E34\u0E14",
|
|
134
134
|
toggle: "\u0E2A\u0E25\u0E31\u0E1A"
|
|
@@ -39,17 +39,23 @@ type ComponentUI<T extends {
|
|
|
39
39
|
[K in keyof Required<T['slots']>]: (props?: Record<string, any>) => string;
|
|
40
40
|
}>;
|
|
41
41
|
type GetComponentAppConfig<A, U extends string, K extends string> = A extends Record<U, Record<K, any>> ? A[U][K] : {};
|
|
42
|
-
type ComponentAppConfig<T, A extends Record<string, any>, K extends string, U extends string = 'ui' | 'ui.prose'> = A
|
|
43
|
-
ui
|
|
44
|
-
|
|
42
|
+
type ComponentAppConfig<T, A extends Record<string, any>, K extends string, U extends string = 'ui' | 'ui.prose'> = Omit<A, 'ui'> & {
|
|
43
|
+
ui: U extends 'ui.prose' ? (A extends {
|
|
44
|
+
ui: infer UI;
|
|
45
|
+
} ? Omit<UI, 'prose'> : Record<string, never>) & {
|
|
46
|
+
prose?: (A extends {
|
|
47
|
+
ui: {
|
|
48
|
+
prose?: infer P;
|
|
49
|
+
};
|
|
50
|
+
} ? Omit<NonNullable<P>, K> : Record<string, never>) & {
|
|
45
51
|
[k in K]?: Partial<T>;
|
|
46
52
|
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
} : (A extends {
|
|
54
|
+
ui: infer UI;
|
|
55
|
+
} ? Omit<UI, K> : Record<string, never>) & {
|
|
50
56
|
[k in K]?: Partial<T>;
|
|
51
57
|
};
|
|
52
|
-
}
|
|
58
|
+
};
|
|
53
59
|
/**
|
|
54
60
|
* Defines the configuration shape expected for a component.
|
|
55
61
|
* @template T The component's theme imported from `#build/ui/*`.
|
|
@@ -3,6 +3,9 @@ import type { AcceptableValue as _AcceptableValue } from 'reka-ui';
|
|
|
3
3
|
export type DeepPartial<T> = {
|
|
4
4
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] | undefined;
|
|
5
5
|
};
|
|
6
|
+
export type DeepRequired<T> = {
|
|
7
|
+
[P in keyof T]-?: NonNullable<T[P]> extends object ? DeepRequired<NonNullable<T[P]>> : NonNullable<T[P]>;
|
|
8
|
+
};
|
|
6
9
|
export type DynamicSlotsKeys<Name extends string | undefined, Suffix extends string | undefined = undefined> = (Name extends string ? Suffix extends string ? Name | `${Name}-${Suffix}` : Name : never);
|
|
7
10
|
export type DynamicSlots<T extends {
|
|
8
11
|
slot?: string;
|
|
@@ -63,8 +63,8 @@ export interface LinkSlots {
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
66
|
-
as: any;
|
|
67
66
|
type: "reset" | "submit" | "button";
|
|
67
|
+
as: any;
|
|
68
68
|
active: boolean;
|
|
69
69
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
70
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -63,8 +63,8 @@ export interface LinkSlots {
|
|
|
63
63
|
declare const _default: typeof __VLS_export;
|
|
64
64
|
export default _default;
|
|
65
65
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
66
|
-
as: any;
|
|
67
66
|
type: "reset" | "submit" | "button";
|
|
67
|
+
as: any;
|
|
68
68
|
active: boolean;
|
|
69
69
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
70
70
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -13,8 +13,8 @@ export interface LinkBaseProps {
|
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
16
|
-
as: string;
|
|
17
16
|
type: string;
|
|
17
|
+
as: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
19
19
|
default?: (props: {}) => any;
|
|
20
20
|
} & {
|
|
@@ -13,8 +13,8 @@ export interface LinkBaseProps {
|
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkBaseProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkBaseProps> & Readonly<{}>, {
|
|
16
|
-
as: string;
|
|
17
16
|
type: string;
|
|
17
|
+
as: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
19
19
|
default?: (props: {}) => any;
|
|
20
20
|
} & {
|
|
@@ -64,8 +64,8 @@ export interface LinkSlots {
|
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
export default _default;
|
|
66
66
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
67
|
-
as: any;
|
|
68
67
|
type: "reset" | "submit" | "button";
|
|
68
|
+
as: any;
|
|
69
69
|
active: boolean;
|
|
70
70
|
ariaCurrentValue: string;
|
|
71
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -64,8 +64,8 @@ export interface LinkSlots {
|
|
|
64
64
|
declare const _default: typeof __VLS_export;
|
|
65
65
|
export default _default;
|
|
66
66
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
67
|
-
as: any;
|
|
68
67
|
type: "reset" | "submit" | "button";
|
|
68
|
+
as: any;
|
|
69
69
|
active: boolean;
|
|
70
70
|
ariaCurrentValue: string;
|
|
71
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -56,8 +56,8 @@ export interface LinkSlots {
|
|
|
56
56
|
declare const _default: typeof __VLS_export;
|
|
57
57
|
export default _default;
|
|
58
58
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
59
|
-
as: any;
|
|
60
59
|
type: "reset" | "submit" | "button";
|
|
60
|
+
as: any;
|
|
61
61
|
active: boolean;
|
|
62
62
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
63
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -56,8 +56,8 @@ export interface LinkSlots {
|
|
|
56
56
|
declare const _default: typeof __VLS_export;
|
|
57
57
|
export default _default;
|
|
58
58
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
59
|
-
as: any;
|
|
60
59
|
type: "reset" | "submit" | "button";
|
|
60
|
+
as: any;
|
|
61
61
|
active: boolean;
|
|
62
62
|
ariaCurrentValue: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
63
63
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, LinkSlots>;
|
|
@@ -3340,7 +3340,7 @@ const inputMenu = (options) => {
|
|
|
3340
3340
|
trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none",
|
|
3341
3341
|
trailingClear: "p-0",
|
|
3342
3342
|
arrow: "fill-bg stroke-default",
|
|
3343
|
-
content: "max-h-[min(15rem,var(--reka-combobox-content-available-height))] w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
|
|
3343
|
+
content: "max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto flex flex-col",
|
|
3344
3344
|
viewport: "relative scroll-py-1 overflow-y-auto flex-1",
|
|
3345
3345
|
group: "p-1 isolate",
|
|
3346
3346
|
empty: "text-center text-muted",
|
|
@@ -5525,7 +5525,7 @@ const select = (options) => {
|
|
|
5525
5525
|
value: "truncate pointer-events-none",
|
|
5526
5526
|
placeholder: "truncate text-dimmed",
|
|
5527
5527
|
arrow: "fill-bg stroke-default",
|
|
5528
|
-
content: "max-h-[min(15rem,var(--reka-select-content-available-height))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
|
|
5528
|
+
content: "max-h-[min(15rem,var(--reka-select-content-available-height,15rem))] w-(--reka-select-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden origin-(--reka-select-content-transform-origin) pointer-events-auto flex flex-col",
|
|
5529
5529
|
viewport: "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1",
|
|
5530
5530
|
group: "p-1 isolate",
|
|
5531
5531
|
empty: "text-center text-muted",
|
|
@@ -5635,7 +5635,7 @@ const selectMenu = (options) => {
|
|
|
5635
5635
|
input: "border-b border-default",
|
|
5636
5636
|
focusScope: "flex flex-col min-h-0",
|
|
5637
5637
|
viewport: "relative scroll-py-1 overflow-y-auto flex-1",
|
|
5638
|
-
content: (content) => [content, "max-h-[min(15rem,var(--reka-combobox-content-available-height))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
|
|
5638
|
+
content: (content) => [content, "max-h-[min(15rem,var(--reka-combobox-content-available-height,15rem))] origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"],
|
|
5639
5639
|
trailingClear: "p-0"
|
|
5640
5640
|
},
|
|
5641
5641
|
variants: {
|
|
@@ -8307,7 +8307,7 @@ ${themeBlocks}`;
|
|
|
8307
8307
|
const iconKeys = Object.keys(uiConfig?.icons || {});
|
|
8308
8308
|
const iconUnion = iconKeys.length ? iconKeys.map((i) => JSON.stringify(i)).join(" | ") : "string";
|
|
8309
8309
|
return `import * as ui from '#build/ui'
|
|
8310
|
-
import type { TVConfig } from '@nuxt/ui'
|
|
8310
|
+
import type { TVConfig, DeepRequired } from '@nuxt/ui'
|
|
8311
8311
|
import type { defaultConfig } from 'tailwind-variants'
|
|
8312
8312
|
import colors from 'tailwindcss/colors'
|
|
8313
8313
|
|
|
@@ -8326,6 +8326,8 @@ type AppConfigUI = {
|
|
|
8326
8326
|
tv?: typeof defaultConfig
|
|
8327
8327
|
} & TVConfig<typeof ui>
|
|
8328
8328
|
|
|
8329
|
+
type AppConfigRuntimeUI = DeepRequired<Pick<AppConfigUI, 'colors' | 'icons' | 'tv'>> & Omit<AppConfigUI, 'colors' | 'icons' | 'tv'>
|
|
8330
|
+
|
|
8329
8331
|
declare module '@nuxt/schema' {
|
|
8330
8332
|
interface AppConfigInput {
|
|
8331
8333
|
/**
|
|
@@ -8334,6 +8336,9 @@ declare module '@nuxt/schema' {
|
|
|
8334
8336
|
*/
|
|
8335
8337
|
ui?: AppConfigUI
|
|
8336
8338
|
}
|
|
8339
|
+
interface AppConfig {
|
|
8340
|
+
ui: AppConfigRuntimeUI
|
|
8341
|
+
}
|
|
8337
8342
|
}
|
|
8338
8343
|
|
|
8339
8344
|
export {}
|
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 { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.
|
|
6
|
+
import { b as getTemplates, p as publicComposables, d as defaultOptions, r as resolveColors, g as getDefaultConfig } from './shared/ui.BzjkAvk7.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/ui",
|
|
3
3
|
"description": "A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.",
|
|
4
|
-
"version": "4.8.
|
|
5
|
-
"packageManager": "pnpm@11.
|
|
4
|
+
"version": "4.8.1",
|
|
5
|
+
"packageManager": "pnpm@11.3.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/nuxt/ui.git"
|
|
@@ -140,24 +140,24 @@
|
|
|
140
140
|
"@tailwindcss/postcss": "^4.3.0",
|
|
141
141
|
"@tailwindcss/vite": "^4.3.0",
|
|
142
142
|
"@tanstack/vue-table": "^8.21.3",
|
|
143
|
-
"@tanstack/vue-virtual": "^3.13.
|
|
144
|
-
"@tiptap/core": "^3.
|
|
145
|
-
"@tiptap/extension-bubble-menu": "^3.
|
|
146
|
-
"@tiptap/extension-code": "^3.
|
|
147
|
-
"@tiptap/extension-collaboration": "^3.
|
|
148
|
-
"@tiptap/extension-drag-handle": "^3.
|
|
149
|
-
"@tiptap/extension-drag-handle-vue-3": "^3.
|
|
150
|
-
"@tiptap/extension-floating-menu": "^3.
|
|
151
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
152
|
-
"@tiptap/extension-image": "^3.
|
|
153
|
-
"@tiptap/extension-mention": "^3.
|
|
154
|
-
"@tiptap/extension-node-range": "^3.
|
|
155
|
-
"@tiptap/extension-placeholder": "^3.
|
|
156
|
-
"@tiptap/markdown": "^3.
|
|
157
|
-
"@tiptap/pm": "^3.
|
|
158
|
-
"@tiptap/starter-kit": "^3.
|
|
159
|
-
"@tiptap/suggestion": "^3.
|
|
160
|
-
"@tiptap/vue-3": "^3.
|
|
143
|
+
"@tanstack/vue-virtual": "^3.13.25",
|
|
144
|
+
"@tiptap/core": "^3.23.6",
|
|
145
|
+
"@tiptap/extension-bubble-menu": "^3.23.6",
|
|
146
|
+
"@tiptap/extension-code": "^3.23.6",
|
|
147
|
+
"@tiptap/extension-collaboration": "^3.23.6",
|
|
148
|
+
"@tiptap/extension-drag-handle": "^3.23.6",
|
|
149
|
+
"@tiptap/extension-drag-handle-vue-3": "^3.23.6",
|
|
150
|
+
"@tiptap/extension-floating-menu": "^3.23.6",
|
|
151
|
+
"@tiptap/extension-horizontal-rule": "^3.23.6",
|
|
152
|
+
"@tiptap/extension-image": "^3.23.6",
|
|
153
|
+
"@tiptap/extension-mention": "^3.23.6",
|
|
154
|
+
"@tiptap/extension-node-range": "^3.23.6",
|
|
155
|
+
"@tiptap/extension-placeholder": "^3.23.6",
|
|
156
|
+
"@tiptap/markdown": "^3.23.6",
|
|
157
|
+
"@tiptap/pm": "^3.23.6",
|
|
158
|
+
"@tiptap/starter-kit": "^3.23.6",
|
|
159
|
+
"@tiptap/suggestion": "^3.23.6",
|
|
160
|
+
"@tiptap/vue-3": "^3.23.6",
|
|
161
161
|
"@unhead/vue": "^2.1.15",
|
|
162
162
|
"@vueuse/core": "^14.3.0",
|
|
163
163
|
"@vueuse/integrations": "^14.3.0",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"motion-v": "^2.2.1",
|
|
181
181
|
"ohash": "^2.0.11",
|
|
182
182
|
"pathe": "^2.0.3",
|
|
183
|
-
"reka-ui": "2.9.
|
|
183
|
+
"reka-ui": "2.9.8",
|
|
184
184
|
"scule": "^1.3.0",
|
|
185
185
|
"tailwind-merge": "^3.6.0",
|
|
186
186
|
"tailwind-variants": "^3.2.2",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"ufo": "^1.6.4",
|
|
190
190
|
"unplugin": "^3.0.0",
|
|
191
191
|
"unplugin-auto-import": "^21.0.0",
|
|
192
|
-
"unplugin-vue-components": "^32.
|
|
192
|
+
"unplugin-vue-components": "^32.1.0",
|
|
193
193
|
"vaul-vue": "0.4.1",
|
|
194
194
|
"vue-component-type-helpers": "^3.3.0"
|
|
195
195
|
},
|
|
@@ -201,14 +201,14 @@
|
|
|
201
201
|
"@tanstack/table-core": "^8.21.3",
|
|
202
202
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
203
203
|
"@vue/test-utils": "^2.4.10",
|
|
204
|
-
"ai": "^6.0.
|
|
204
|
+
"ai": "^6.0.191",
|
|
205
205
|
"embla-carousel": "^8.6.0",
|
|
206
206
|
"eslint": "^10.4.0",
|
|
207
207
|
"happy-dom": "^20.9.0",
|
|
208
208
|
"nuxt": "^4.4.6",
|
|
209
209
|
"release-it": "^19.2.4",
|
|
210
210
|
"unbuild": "^3.6.1",
|
|
211
|
-
"vitest": "^4.1.
|
|
211
|
+
"vitest": "^4.1.7",
|
|
212
212
|
"vitest-axe": "^0.1.0",
|
|
213
213
|
"vitest-environment-nuxt": "^1.0.1",
|
|
214
214
|
"vue": "^3.5.34",
|