nuance-ui 0.2.34 → 0.2.36
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/LICENSE.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -2
- package/dist/runtime/components/accordion.d.vue.ts +79 -0
- package/dist/runtime/components/accordion.vue +44 -0
- package/dist/runtime/components/accordion.vue.d.ts +79 -0
- package/dist/runtime/components/collapsible/collapsible-content.d.vue.ts +18 -0
- package/dist/runtime/components/collapsible/collapsible-content.vue +76 -0
- package/dist/runtime/components/collapsible/collapsible-content.vue.d.ts +18 -0
- package/dist/runtime/components/collapsible/collapsible-root.d.vue.ts +42 -0
- package/dist/runtime/components/collapsible/collapsible-root.vue +41 -0
- package/dist/runtime/components/collapsible/collapsible-root.vue.d.ts +42 -0
- package/dist/runtime/components/collapsible/collapsible-trigger.d.vue.ts +13 -0
- package/dist/runtime/components/collapsible/collapsible-trigger.vue +20 -0
- package/dist/runtime/components/collapsible/collapsible-trigger.vue.d.ts +13 -0
- package/dist/runtime/components/collapsible/index.d.ts +3 -0
- package/dist/runtime/components/collapsible/index.js +1 -0
- package/dist/runtime/components/dialog/ui/dialog-close-button.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-close-button.vue +9 -11
- package/dist/runtime/components/dialog/ui/dialog-close-button.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-footer.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-footer.vue +3 -5
- package/dist/runtime/components/dialog/ui/dialog-footer.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-header.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-header.vue +3 -5
- package/dist/runtime/components/dialog/ui/dialog-header.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-root.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-root.vue +23 -25
- package/dist/runtime/components/dialog/ui/dialog-root.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-section.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-section.vue +3 -5
- package/dist/runtime/components/dialog/ui/dialog-section.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-title.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-title.vue +3 -5
- package/dist/runtime/components/dialog/ui/dialog-title.vue.d.ts +2 -2
- package/dist/runtime/components/index.d.ts +2 -0
- package/dist/runtime/components/index.js +1 -0
- package/dist/runtime/components/link/lib.d.ts +2 -2
- package/dist/runtime/components/scroll-area.vue +2 -1
- package/dist/runtime/components/select.d.vue.ts +2 -2
- package/dist/runtime/components/select.vue.d.ts +2 -2
- package/dist/runtime/components/table/ui/table.vue +1 -1
- package/dist/runtime/components/tabs/tabs-root.d.vue.ts +1 -1
- package/dist/runtime/components/tabs/tabs-root.vue.d.ts +1 -1
- package/dist/runtime/components/timeline.d.vue.ts +3 -1
- package/dist/runtime/components/timeline.vue +6 -3
- package/dist/runtime/components/timeline.vue.d.ts +3 -1
- package/dist/runtime/components/transition.d.vue.ts +10 -0
- package/dist/runtime/components/transition.vue +14 -3
- package/dist/runtime/components/transition.vue.d.ts +10 -0
- package/dist/runtime/modals/modals-provider.vue +8 -10
- package/dist/runtime/utils/color/get-gradient.js +1 -1
- package/dist/runtime/utils/color/index.d.ts +0 -1
- package/dist/runtime/utils/color/index.js +0 -1
- package/dist/runtime/utils/const/icons.js +33 -0
- package/dist/runtime/utils/const/index.d.ts +2 -0
- package/dist/runtime/utils/const/index.js +2 -0
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +1 -1
- package/dist/runtime/utils/style/create-variant-color-resolver.js +1 -1
- package/package.json +4 -3
- package/dist/runtime/utils/icons/default-icons.js +0 -33
- package/dist/runtime/utils/icons/index.d.ts +0 -1
- package/dist/runtime/utils/icons/index.js +0 -1
- /package/dist/runtime/utils/{color/const.d.ts → const/gradient.d.ts} +0 -0
- /package/dist/runtime/utils/{color/const.js → const/gradient.js} +0 -0
- /package/dist/runtime/utils/{icons/default-icons.d.ts → const/icons.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { BoxProps } from '../../box.vue.js';
|
|
2
2
|
export interface DialogHeaderProps extends BoxProps {
|
|
3
3
|
}
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<DialogHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -36,9 +36,9 @@ type __VLS_ModelProps = {
|
|
|
36
36
|
'open'?: DialogModel['open'];
|
|
37
37
|
};
|
|
38
38
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
39
|
-
declare var
|
|
39
|
+
declare var __VLS_31: {};
|
|
40
40
|
type __VLS_Slots = {} & {
|
|
41
|
-
default?: (props: typeof
|
|
41
|
+
default?: (props: typeof __VLS_31) => any;
|
|
42
42
|
};
|
|
43
43
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
44
|
close: () => any;
|
|
@@ -71,29 +71,27 @@ const style = computed(() => ({
|
|
|
71
71
|
</script>
|
|
72
72
|
|
|
73
73
|
<template>
|
|
74
|
-
<
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</Teleport>
|
|
98
|
-
</ClientOnly>
|
|
74
|
+
<Teleport :disabled='!withinPortal' :to='portalTarget'>
|
|
75
|
+
<Box
|
|
76
|
+
is='dialog'
|
|
77
|
+
ref='dialogRef'
|
|
78
|
+
:class='[css.root, classes?.root]'
|
|
79
|
+
:mod='[{ "without-overlay": withoutOverlay }, mod]'
|
|
80
|
+
:style
|
|
81
|
+
@click='overlayClick'
|
|
82
|
+
@close='$emit("close")'
|
|
83
|
+
@cancel.prevent='opened = false'
|
|
84
|
+
>
|
|
85
|
+
<NTransition :name='transition'>
|
|
86
|
+
<Box
|
|
87
|
+
is='section'
|
|
88
|
+
v-if='opened'
|
|
89
|
+
:class='[css.content, classes?.content]'
|
|
90
|
+
v-bind='$attrs'
|
|
91
|
+
>
|
|
92
|
+
<slot />
|
|
93
|
+
</Box>
|
|
94
|
+
</NTransition>
|
|
95
|
+
</Box>
|
|
96
|
+
</Teleport>
|
|
99
97
|
</template>
|
|
@@ -36,9 +36,9 @@ type __VLS_ModelProps = {
|
|
|
36
36
|
'open'?: DialogModel['open'];
|
|
37
37
|
};
|
|
38
38
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
39
|
-
declare var
|
|
39
|
+
declare var __VLS_31: {};
|
|
40
40
|
type __VLS_Slots = {} & {
|
|
41
|
-
default?: (props: typeof
|
|
41
|
+
default?: (props: typeof __VLS_31) => any;
|
|
42
42
|
};
|
|
43
43
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
44
|
close: () => any;
|
|
@@ -2,9 +2,9 @@ import type { BoxProps } from '../../box.vue.js';
|
|
|
2
2
|
export interface DialogSectionProps extends BoxProps {
|
|
3
3
|
bordered?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<DialogSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogSectionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -9,9 +9,7 @@ const { is = "section", bordered, mod } = defineProps({
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
</Box>
|
|
16
|
-
</ClientOnly>
|
|
12
|
+
<Box :is :mod='[{ bordered }, mod]' :class='css.section'>
|
|
13
|
+
<slot />
|
|
14
|
+
</Box>
|
|
17
15
|
</template>
|
|
@@ -2,9 +2,9 @@ import type { BoxProps } from '../../box.vue.js';
|
|
|
2
2
|
export interface DialogSectionProps extends BoxProps {
|
|
3
3
|
bordered?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare var
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_base: import("vue").DefineComponent<DialogSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogSectionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TitleProps } from '../../title.vue.js';
|
|
2
2
|
export interface DialogTitleProps extends TitleProps {
|
|
3
3
|
}
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<DialogTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -21,9 +21,7 @@ const { size = "md", lh = "1", ...props } = defineProps({
|
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<template>
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
</Title>
|
|
28
|
-
</ClientOnly>
|
|
24
|
+
<Title :class='css.title' :lh :size v-bind='props'>
|
|
25
|
+
<slot />
|
|
26
|
+
</Title>
|
|
29
27
|
</template>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TitleProps } from '../../title.vue.js';
|
|
2
2
|
export interface DialogTitleProps extends TitleProps {
|
|
3
3
|
}
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<DialogTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DialogTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type * from './accordion.vue';
|
|
1
2
|
export * from './action-icon/index.js';
|
|
2
3
|
export * from './app-shell/index.js';
|
|
3
4
|
export * from './avatar/index.js';
|
|
@@ -10,6 +11,7 @@ export * from './calendar/index.js';
|
|
|
10
11
|
export * from './card/index.js';
|
|
11
12
|
export * from './checkbox/index.js';
|
|
12
13
|
export * from './chip/index.js';
|
|
14
|
+
export * from './collapsible/index.js';
|
|
13
15
|
export * from './combobox/index.js';
|
|
14
16
|
export type * from './container.vue';
|
|
15
17
|
export type * from './date-time-picker.vue';
|
|
@@ -6,6 +6,7 @@ export * from "./calendar/index.js";
|
|
|
6
6
|
export * from "./card/index.js";
|
|
7
7
|
export * from "./checkbox/index.js";
|
|
8
8
|
export * from "./chip/index.js";
|
|
9
|
+
export * from "./collapsible/index.js";
|
|
9
10
|
export * from "./combobox/index.js";
|
|
10
11
|
export * from "./dialog/index.js";
|
|
11
12
|
export * from "./drawer/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NuxtLinkProps } from '#app';
|
|
2
2
|
export declare function pickLinkProps<T extends NuxtLinkProps>(props: T): {
|
|
3
|
-
link: Pick<T, "replace" | "
|
|
4
|
-
rest: Omit<T, "replace" | "
|
|
3
|
+
link: Pick<T, "replace" | "target" | "to" | "external" | "rel" | "noRel" | "prefetch" | "noPrefetch" | "prefetchOn" | "trailingSlash" | "activeClass" | "ariaCurrentValue" | "exactActiveClass" | "prefetchedClass" | "viewTransition">;
|
|
4
|
+
rest: Omit<T, "replace" | "target" | "to" | "external" | "rel" | "noRel" | "prefetch" | "noPrefetch" | "prefetchOn" | "trailingSlash" | "activeClass" | "ariaCurrentValue" | "exactActiveClass" | "prefetchedClass" | "viewTransition">;
|
|
5
5
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useVarsResolver } from "@nui/composables";
|
|
3
|
+
import { getSize } from "@nui/utils";
|
|
2
4
|
import { useResizeObserver } from "@vueuse/core";
|
|
3
|
-
import { getSize, useVarsResolver } from "#imports";
|
|
4
5
|
import { computed, onBeforeUnmount, onMounted, ref, useTemplateRef } from "vue";
|
|
5
6
|
import Box from "./box.vue";
|
|
6
7
|
const {
|
|
@@ -40,8 +40,8 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
40
40
|
onSubmit?: ((args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => any) | undefined;
|
|
41
41
|
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
42
42
|
onOpen?: ((args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => any) | undefined;
|
|
43
|
-
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
44
43
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
45
45
|
}> & (typeof globalThis extends {
|
|
46
46
|
__VLS_PROPS_FALLBACK: infer P;
|
|
47
47
|
} ? P : {});
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
63
63
|
} & {
|
|
64
64
|
rightSection?: (props: {}) => any;
|
|
65
65
|
};
|
|
66
|
-
emit: (((evt: "select", args_0: number) => void) & ((evt: "clear") => void) & ((evt: "close", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void) & ((evt: "submit", args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => void) & ((evt: "open", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void)) & (((event: "update:modelValue", value: string | string[] | null) => void) & ((event: "update:
|
|
66
|
+
emit: (((evt: "select", args_0: number) => void) & ((evt: "clear") => void) & ((evt: "close", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void) & ((evt: "submit", args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => void) & ((evt: "open", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void)) & (((event: "update:modelValue", value: string | string[] | null) => void) & ((event: "update:open", value: boolean) => void) & ((event: "update:search", value: string) => void));
|
|
67
67
|
}>) => import("vue").VNode & {
|
|
68
68
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
69
69
|
};
|
|
@@ -40,8 +40,8 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
40
40
|
onSubmit?: ((args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => any) | undefined;
|
|
41
41
|
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
42
42
|
onOpen?: ((args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => any) | undefined;
|
|
43
|
-
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
44
43
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
"onUpdate:search"?: ((value: string) => any) | undefined;
|
|
45
45
|
}> & (typeof globalThis extends {
|
|
46
46
|
__VLS_PROPS_FALLBACK: infer P;
|
|
47
47
|
} ? P : {});
|
|
@@ -63,7 +63,7 @@ declare const __VLS_export: <Value extends string = string, Ext extends Combobox
|
|
|
63
63
|
} & {
|
|
64
64
|
rightSection?: (props: {}) => any;
|
|
65
65
|
};
|
|
66
|
-
emit: (((evt: "select", args_0: number) => void) & ((evt: "clear") => void) & ((evt: "close", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void) & ((evt: "submit", args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => void) & ((evt: "open", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void)) & (((event: "update:modelValue", value: string | string[] | null) => void) & ((event: "update:
|
|
66
|
+
emit: (((evt: "select", args_0: number) => void) & ((evt: "clear") => void) & ((evt: "close", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void) & ((evt: "submit", args_0: string, args_1: import("./combobox/index.js").ComboboxItem<string, object>) => void) & ((evt: "open", args_0: import("./combobox/index.js").ComboboxDropdownEventSource) => void)) & (((event: "update:modelValue", value: string | string[] | null) => void) & ((event: "update:open", value: boolean) => void) & ((event: "update:search", value: string) => void));
|
|
67
67
|
}>) => import("vue").VNode & {
|
|
68
68
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
69
69
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useVarsResolver } from "@nui/composables";
|
|
2
3
|
import { getThemeColor } from "@nui/utils";
|
|
3
4
|
import {
|
|
4
5
|
FlexRender,
|
|
@@ -9,7 +10,6 @@ import {
|
|
|
9
10
|
useVueTable
|
|
10
11
|
} from "@tanstack/vue-table";
|
|
11
12
|
import { reactivePick, unrefElement } from "@vueuse/core";
|
|
12
|
-
import { useVarsResolver } from "#imports";
|
|
13
13
|
import { computed, ref, useTemplateRef, watch } from "vue";
|
|
14
14
|
import Box from "../../box.vue";
|
|
15
15
|
import { createRowHandlers, processColumns, resolveValue, valueUpdater } from "../lib";
|
|
@@ -62,8 +62,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
63
63
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
64
64
|
}>, {
|
|
65
|
-
variant: TabsVariant;
|
|
66
65
|
orientation: "vertical" | "horizontal";
|
|
66
|
+
variant: TabsVariant;
|
|
67
67
|
placement: "left" | "right";
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -62,8 +62,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
63
63
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
64
64
|
}>, {
|
|
65
|
-
variant: TabsVariant;
|
|
66
65
|
orientation: "vertical" | "horizontal";
|
|
66
|
+
variant: TabsVariant;
|
|
67
67
|
placement: "left" | "right";
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
69
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -27,7 +27,7 @@ export interface TimelineItem {
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}
|
|
29
29
|
export interface TimelineVars {
|
|
30
|
-
root: '--tl-line-width' | '--tl-size' | '--tl-color' | '--tl-radius';
|
|
30
|
+
root: '--tl-line-width' | '--tl-size' | '--tl-color' | '--tl-radius' | '--tl-gap';
|
|
31
31
|
}
|
|
32
32
|
export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
33
33
|
bullet?: SlotProps<T>;
|
|
@@ -57,6 +57,8 @@ export interface TimelineProps<T extends TimelineItem> extends BoxProps {
|
|
|
57
57
|
align?: 'right' | 'left';
|
|
58
58
|
/** Control width of the line */
|
|
59
59
|
lineWidth?: number | string;
|
|
60
|
+
/** Gap between items (padding-bottom on each non-last item) */
|
|
61
|
+
gap?: number | string;
|
|
60
62
|
/** If set, the active items direction is reversed without reversing items order @default false */
|
|
61
63
|
reverse?: boolean;
|
|
62
64
|
/** @default 'vertical' */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useVarsResolver } from "@nui/composables";
|
|
3
|
-
import { getRadius, getSize, getThemeColor, rem } from "@nui/utils";
|
|
3
|
+
import { getRadius, getSize, getSpacing, getThemeColor, rem } from "@nui/utils";
|
|
4
4
|
import { computed } from "vue";
|
|
5
5
|
import Box from "./box.vue";
|
|
6
6
|
const {
|
|
@@ -9,6 +9,7 @@ const {
|
|
|
9
9
|
align = "left",
|
|
10
10
|
size,
|
|
11
11
|
lineWidth = 4,
|
|
12
|
+
gap,
|
|
12
13
|
color,
|
|
13
14
|
classes,
|
|
14
15
|
mod,
|
|
@@ -22,6 +23,7 @@ const {
|
|
|
22
23
|
size: { type: [String, Object], required: false },
|
|
23
24
|
align: { type: String, required: false },
|
|
24
25
|
lineWidth: { type: [Number, String], required: false },
|
|
26
|
+
gap: { type: [Number, String], required: false },
|
|
25
27
|
reverse: { type: Boolean, required: false },
|
|
26
28
|
orientation: { type: String, required: false },
|
|
27
29
|
valueKey: { type: String, required: false },
|
|
@@ -37,7 +39,8 @@ const style = useVarsResolver((theme) => ({
|
|
|
37
39
|
"--tl-size": getSize(size, "tl-size"),
|
|
38
40
|
"--tl-line-width": rem(lineWidth),
|
|
39
41
|
"--tl-radius": radius === void 0 ? void 0 : getRadius(radius),
|
|
40
|
-
"--tl-color": color ? getThemeColor(color, theme) : void 0
|
|
42
|
+
"--tl-color": color ? getThemeColor(color, theme) : void 0,
|
|
43
|
+
"--tl-gap": getSpacing(gap)
|
|
41
44
|
}
|
|
42
45
|
}));
|
|
43
46
|
const currentStepIx = computed(() => {
|
|
@@ -108,5 +111,5 @@ function getActive(ix) {
|
|
|
108
111
|
</template>
|
|
109
112
|
|
|
110
113
|
<style module>
|
|
111
|
-
.root{--tl-size-xs:1rem;--tl-size-sm:1.25rem;--tl-size-md:1.5rem;--tl-size-lg:1.75rem;--tl-size-xl:2rem;--tl-size:var(--tl-size-md);--tl-offset:calc((var(--tl-size) - var(--tl-line-width))/2);--tl-line-width:.25rem;--tl-radius:1000px;--tl-color:var(--color-primary-filled)}.root:where([data-align=left]){padding-inline-start:var(--tl-offset)}.root:where([data-align=right]){padding-inline-end:var(--tl-offset)}.root:where([data-orientation=horizontal]){display:flex;flex-direction:row;padding-block-start:var(--tl-offset);padding-inline:0}.item{--tli-bd-style:solid;--tli-bd-color:var(--color-primary-filled);--item-border:var(--tl-line-width) var(--tli-bd-style) var(--tli-bd-color);color:var(--color-text);position:relative}.item:before{border-inline-start:var(--item-border);bottom:0;content:"";display:var(--timeline-line-display,none);left:var(--timeline-line-left,0);pointer-events:none;position:absolute;right:var(--timeline-line-right,0);top:0}.root[data-align=left] .item:before{--timeline-line-left:calc(var(--tl-line-width)*-1);--timeline-line-right:auto;@mixin rtl{--timeline-line-left:auto;--timeline-line-right:calc(var(--tl-line-width)*-1)}}.root[data-align=right] .item:before{--timeline-line-left:auto;--timeline-line-right:calc(var(--tl-line-width)*-1);@mixin rtl{--timeline-line-left:calc(var(--tl-line-width)*-1);--timeline-line-right:auto}}.root:where([data-align=left]) .item{padding-inline-start:var(--tl-offset);text-align:left}.root:where([data-align=right]) .item{padding-inline-end:var(--tl-offset);text-align:right}.root:where([data-orientation=horizontal]) .item{flex:1;padding-block-start:var(--tl-offset);padding-inline:0;text-align:center}.root:where([data-orientation=horizontal]) .item:before{--timeline-line-top:calc((var(--tl-size) - var(--tl-line-width))/2);border-inline-start:none;border-top:var(--item-border);bottom:auto;height:var(--tl-line-width);left:0;right:0;top:var(--timeline-line-top,0)}.root:where([data-orientation=horizontal]) .item:where(:not(:last-of-type)){--timeline-line-display:block;padding-bottom:0}.item{@mixin where-light{--tli-bd-color:var(--color-gray-3)}}.item{@mixin where-dark{--tli-bd-color:var(--color-dark-4)}}.item:where([data-line-active]){--tli-bd-color:var(--tl-color)}.item:where(:not(:last-of-type)){--timeline-line-display:block;padding-bottom:var(--
|
|
114
|
+
.root{--tl-size-xs:1rem;--tl-size-sm:1.25rem;--tl-size-md:1.5rem;--tl-size-lg:1.75rem;--tl-size-xl:2rem;--tl-size:var(--tl-size-md);--tl-offset:calc((var(--tl-size) - var(--tl-line-width))/2);--tl-line-width:.25rem;--tl-radius:1000px;--tl-color:var(--color-primary-filled);--tl-gap:var(--spacing-xl)}.root:where([data-align=left]){padding-inline-start:var(--tl-offset)}.root:where([data-align=right]){padding-inline-end:var(--tl-offset)}.root:where([data-orientation=horizontal]){display:flex;flex-direction:row;padding-block-start:var(--tl-offset);padding-inline:0}.item{--tli-bd-style:solid;--tli-bd-color:var(--color-primary-filled);--item-border:var(--tl-line-width) var(--tli-bd-style) var(--tli-bd-color);color:var(--color-text);position:relative}.item:before{border-inline-start:var(--item-border);bottom:0;content:"";display:var(--timeline-line-display,none);left:var(--timeline-line-left,0);pointer-events:none;position:absolute;right:var(--timeline-line-right,0);top:0}.root[data-align=left] .item:before{--timeline-line-left:calc(var(--tl-line-width)*-1);--timeline-line-right:auto;@mixin rtl{--timeline-line-left:auto;--timeline-line-right:calc(var(--tl-line-width)*-1)}}.root[data-align=right] .item:before{--timeline-line-left:auto;--timeline-line-right:calc(var(--tl-line-width)*-1);@mixin rtl{--timeline-line-left:calc(var(--tl-line-width)*-1);--timeline-line-right:auto}}.root:where([data-align=left]) .item{padding-inline-start:var(--tl-offset);text-align:left}.root:where([data-align=right]) .item{padding-inline-end:var(--tl-offset);text-align:right}.root:where([data-orientation=horizontal]) .item{flex:1;padding-block-start:var(--tl-offset);padding-inline:0;text-align:center}.root:where([data-orientation=horizontal]) .item:before{--timeline-line-top:calc((var(--tl-size) - var(--tl-line-width))/2);border-inline-start:none;border-top:var(--item-border);bottom:auto;height:var(--tl-line-width);left:0;right:0;top:var(--timeline-line-top,0)}.root:where([data-orientation=horizontal]) .item:where(:not(:last-of-type)){--timeline-line-display:block;padding-bottom:0}.item{@mixin where-light{--tli-bd-color:var(--color-gray-3)}}.item{@mixin where-dark{--tli-bd-color:var(--color-dark-4)}}.item:where([data-line-active]){--tli-bd-color:var(--tl-color)}.item:where(:not(:last-of-type)){--timeline-line-display:block;padding-bottom:var(--tl-gap)}.root:where([data-orientation=horizontal]) .item:where(:not(:first-of-type)){padding-bottom:0}.bullet{--tl-bullet-offset:calc(var(--tl-size)/2*-1 + var(--tl-line-width)/2*-1);align-items:center;background-color:var(--color-body);border:var(--tl-line-width) solid;border-radius:var(--tli-radius,var(--tl-radius));color:var(--color-text);display:flex;height:var(--tl-size);justify-content:center;position:absolute;top:0;width:var(--tl-size);@mixin where-light{border-color:var(--color-gray-3)}@mixin where-dark{border-color:var(--color-dark-4)}}.root:where([data-align=left]) .bullet{left:var(--tl-bullet-offset);right:auto;@mixin where-rtl{left:auto;right:var(--tl-bullet-offset)}}.root:where([data-align=right]) .bullet{left:auto;right:var(--tl-bullet-offset);@mixin where-rtl{left:var(--tl-bullet-offset);right:auto}}.root:where([data-orientation=horizontal]) .bullet{--tl-bullet-offset:0}.bullet:where([data-with-child]){border-width:var(--tl-line-width);@mixin where-light{background-color:var(--color-gray-3)}@mixin where-dark{background-color:var(--color-dark-4)}}.bullet:where([data-active]){background-color:var(--color-white);border-color:var(--tli-color,var(--tl-color));color:var(--tl-icon-color,var(--color-white))}.bullet:where([data-active]):where([data-with-child]){background-color:var(--tli-color,var(--tl-color));color:var(--tl-icon-color,var(--color-white))}.root:where([data-align=left]) .body{padding-inline-start:var(--tl-offset);text-align:left;@mixin where-rtl{text-align:right}}.root:where([data-align=right]) .body{padding-inline-end:var(--tl-offset);text-align:right;@mixin where-rtl{text-align:left}}.root:where([data-orientation=horizontal]) .body{padding-block-start:calc(var(--tl-offset) + var(--spacing-xs));padding-inline:0}.label{font-weight:600;line-height:var(--tl-size)}.content{color:var(--color-dimmed)}
|
|
112
115
|
</style>
|
|
@@ -27,7 +27,7 @@ export interface TimelineItem {
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}
|
|
29
29
|
export interface TimelineVars {
|
|
30
|
-
root: '--tl-line-width' | '--tl-size' | '--tl-color' | '--tl-radius';
|
|
30
|
+
root: '--tl-line-width' | '--tl-size' | '--tl-color' | '--tl-radius' | '--tl-gap';
|
|
31
31
|
}
|
|
32
32
|
export type TimelineSlots<T extends TimelineItem = TimelineItem> = {
|
|
33
33
|
bullet?: SlotProps<T>;
|
|
@@ -57,6 +57,8 @@ export interface TimelineProps<T extends TimelineItem> extends BoxProps {
|
|
|
57
57
|
align?: 'right' | 'left';
|
|
58
58
|
/** Control width of the line */
|
|
59
59
|
lineWidth?: number | string;
|
|
60
|
+
/** Gap between items (padding-bottom on each non-last item) */
|
|
61
|
+
gap?: number | string;
|
|
60
62
|
/** If set, the active items direction is reversed without reversing items order @default false */
|
|
61
63
|
reverse?: boolean;
|
|
62
64
|
/** @default 'vertical' */
|
|
@@ -15,6 +15,16 @@ export interface TransitionProps {
|
|
|
15
15
|
* @default `0`
|
|
16
16
|
*/
|
|
17
17
|
delay?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Controls the timing sequence of leaving/entering transitions.
|
|
20
|
+
* Default behavior is simultaneous.
|
|
21
|
+
*/
|
|
22
|
+
mode?: 'in-out' | 'out-in' | 'default';
|
|
23
|
+
/**
|
|
24
|
+
* Whether to apply transition on initial render.
|
|
25
|
+
* Default: false
|
|
26
|
+
*/
|
|
27
|
+
appear?: boolean;
|
|
18
28
|
}
|
|
19
29
|
declare var __VLS_9: {};
|
|
20
30
|
type __VLS_Slots = {} & {
|
|
@@ -3,11 +3,15 @@ import { computed } from "vue";
|
|
|
3
3
|
const {
|
|
4
4
|
name = "pop-bottom-left",
|
|
5
5
|
duration = 250,
|
|
6
|
-
delay
|
|
6
|
+
delay,
|
|
7
|
+
appear,
|
|
8
|
+
mode
|
|
7
9
|
} = defineProps({
|
|
8
10
|
name: { type: String, required: false },
|
|
9
11
|
duration: { type: Number, required: false },
|
|
10
|
-
delay: { type: Number, required: false }
|
|
12
|
+
delay: { type: Number, required: false },
|
|
13
|
+
mode: { type: String, required: false },
|
|
14
|
+
appear: { type: Boolean, required: false }
|
|
11
15
|
});
|
|
12
16
|
const emit = defineEmits(["afterLeave"]);
|
|
13
17
|
const style = computed(() => ({
|
|
@@ -17,7 +21,14 @@ const style = computed(() => ({
|
|
|
17
21
|
</script>
|
|
18
22
|
|
|
19
23
|
<template>
|
|
20
|
-
<Transition
|
|
24
|
+
<Transition
|
|
25
|
+
:class='$style.root'
|
|
26
|
+
:style
|
|
27
|
+
:name
|
|
28
|
+
:mode
|
|
29
|
+
:appear
|
|
30
|
+
@after-leave='() => emit("afterLeave")'
|
|
31
|
+
>
|
|
21
32
|
<slot />
|
|
22
33
|
</Transition>
|
|
23
34
|
</template>
|
|
@@ -15,6 +15,16 @@ export interface TransitionProps {
|
|
|
15
15
|
* @default `0`
|
|
16
16
|
*/
|
|
17
17
|
delay?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Controls the timing sequence of leaving/entering transitions.
|
|
20
|
+
* Default behavior is simultaneous.
|
|
21
|
+
*/
|
|
22
|
+
mode?: 'in-out' | 'out-in' | 'default';
|
|
23
|
+
/**
|
|
24
|
+
* Whether to apply transition on initial render.
|
|
25
|
+
* Default: false
|
|
26
|
+
*/
|
|
27
|
+
appear?: boolean;
|
|
18
28
|
}
|
|
19
29
|
declare var __VLS_9: {};
|
|
20
30
|
type __VLS_Slots = {} & {
|
|
@@ -3,14 +3,12 @@ import { $modals } from "./modal-manager";
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</div>
|
|
15
|
-
</ClientOnly>
|
|
6
|
+
<div id='nui-modals-root'>
|
|
7
|
+
<component
|
|
8
|
+
:is='entry.component'
|
|
9
|
+
v-for='[id, entry] in $modals.modals'
|
|
10
|
+
:key='id'
|
|
11
|
+
v-bind='entry.props'
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
16
14
|
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const DEFAULT_ICONS = {
|
|
2
|
+
// ─── Actions ───
|
|
3
|
+
close: "lucide:x",
|
|
4
|
+
check: "lucide:check",
|
|
5
|
+
minus: "lucide:minus",
|
|
6
|
+
plus: "lucide:plus",
|
|
7
|
+
// ─── Chevrons ───
|
|
8
|
+
chevronRight: "lucide:chevron-right",
|
|
9
|
+
chevronLeft: "lucide:chevron-left",
|
|
10
|
+
chevronDown: "lucide:chevron-down",
|
|
11
|
+
chevronUp: "lucide:chevron-up",
|
|
12
|
+
selectExpand: "lucide:chevrons-up-down",
|
|
13
|
+
// ─── Inputs ───
|
|
14
|
+
email: "lucide:at-sign",
|
|
15
|
+
passwordShow: "lucide:eye",
|
|
16
|
+
passwordHide: "lucide:eye-off",
|
|
17
|
+
calendar: "lucide:calendar",
|
|
18
|
+
clock: "lucide:clock",
|
|
19
|
+
// ─── User ───
|
|
20
|
+
person: "lucide:user",
|
|
21
|
+
// ─── Theme ───
|
|
22
|
+
sun: "lucide:sun",
|
|
23
|
+
moon: "lucide:moon",
|
|
24
|
+
// ─── Files & tree ───
|
|
25
|
+
upload: "lucide:upload",
|
|
26
|
+
file: "lucide:file",
|
|
27
|
+
folder: "lucide:folder",
|
|
28
|
+
folderOpen: "lucide:folder-open",
|
|
29
|
+
// ─── Table sort ───
|
|
30
|
+
sortAsc: "lucide:arrow-up-narrow-wide",
|
|
31
|
+
sortDesc: "lucide:arrow-down-wide-narrow",
|
|
32
|
+
sortOff: "lucide:arrow-up-down"
|
|
33
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './boolean/index.js';
|
|
2
2
|
export * from './color/index.js';
|
|
3
|
+
export * from './const/index.js';
|
|
3
4
|
export * from './css/index.js';
|
|
4
5
|
export * from './date/index.js';
|
|
5
|
-
export * from './icons/index.js';
|
|
6
6
|
export * from './style/index.js';
|
|
7
7
|
export * from './tree.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./boolean/index.js";
|
|
2
2
|
export * from "./color/index.js";
|
|
3
|
+
export * from "./const/index.js";
|
|
3
4
|
export * from "./css/index.js";
|
|
4
5
|
export * from "./date/index.js";
|
|
5
|
-
export * from "./icons/index.js";
|
|
6
6
|
export * from "./style/index.js";
|
|
7
7
|
export * from "./tree.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DEFAULT_GRADIENT } from "../color/const.js";
|
|
2
1
|
import { getGradient, getGradientOutline } from "../color/get-gradient.js";
|
|
3
2
|
import { getThemeColor, parseThemeColor } from "../color/parse-theme-color.js";
|
|
3
|
+
import { DEFAULT_GRADIENT } from "../const/index.js";
|
|
4
4
|
export function createVariantColorResolver({
|
|
5
5
|
color = "primary",
|
|
6
6
|
variant,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuance-ui",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "A modern
|
|
3
|
+
"version": "0.2.36",
|
|
4
|
+
"description": "A modern Nuxt UI library inspired by the best of the React ecosystem.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/Igor-Iugin/nuance-ui.git"
|
|
@@ -77,10 +77,11 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@antfu/eslint-config": "^
|
|
80
|
+
"@antfu/eslint-config": "^9.1.0",
|
|
81
81
|
"@nuxt/devtools": "^3.1.1",
|
|
82
82
|
"@nuxt/eslint": "1.10.0",
|
|
83
83
|
"@nuxt/eslint-config": "^1.13.0",
|
|
84
|
+
"@nuxt/icon": "^2.2.1",
|
|
84
85
|
"@nuxt/image": "^2.0.0",
|
|
85
86
|
"@nuxt/module-builder": "^1.0.2",
|
|
86
87
|
"@nuxt/schema": "^4.4.2",
|