@unsource/ui 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/UnAuth.vue +0 -4
- package/dist/runtime/components/UnMobileHeader.d.vue.ts +3 -0
- package/dist/runtime/components/UnMobileHeader.vue +27 -0
- package/dist/runtime/components/UnMobileHeader.vue.d.ts +3 -0
- package/dist/runtime/components/UnNavbar.d.vue.ts +10 -0
- package/dist/runtime/components/UnNavbar.vue +32 -0
- package/dist/runtime/components/UnNavbar.vue.d.ts +10 -0
- package/dist/runtime/components/UnProfile.d.vue.ts +7 -2
- package/dist/runtime/components/UnProfile.vue +3 -7
- package/dist/runtime/components/UnProfile.vue.d.ts +7 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex justify-between items-center p-2 bg-white w-full z-2 shadow-box sticky top-0 rounded-b-xl">
|
|
3
|
+
<UnNuxtIcon
|
|
4
|
+
name="solar:alt-arrow-right-broken"
|
|
5
|
+
class="cursor-pointer text-(4xl gray-500)"
|
|
6
|
+
@click="meta?.backward ? navigateTo(meta.backward) : router.back()"
|
|
7
|
+
/>
|
|
8
|
+
<p class="text-(base gray-500) font-semibold">
|
|
9
|
+
{{ meta.title }}
|
|
10
|
+
</p>
|
|
11
|
+
<div class="flex justify-center items-center w-9 shrink-0">
|
|
12
|
+
<UnNuxtIcon
|
|
13
|
+
v-if="meta?.appendIcon"
|
|
14
|
+
:name="meta.appendIcon"
|
|
15
|
+
class="cursor-pointer text-(3xl gray-500)"
|
|
16
|
+
@click="meta?.handler?.()"
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup>
|
|
23
|
+
import { navigateTo, useMeta, useRouter } from "#imports";
|
|
24
|
+
const router = useRouter();
|
|
25
|
+
const meta = useMeta();
|
|
26
|
+
const route = useRouter();
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
routeName: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="flex justify-between items-center fixed bg-white bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-120 px-4 py-2 shadow-header z-1 rounded-t-xl"
|
|
4
|
+
>
|
|
5
|
+
<NuxtLink
|
|
6
|
+
v-for="item in items"
|
|
7
|
+
:key="item.routeName"
|
|
8
|
+
:to="{ name: item.routeName }"
|
|
9
|
+
class="flex flex-col items-center gap-1"
|
|
10
|
+
>
|
|
11
|
+
<UnNuxtIcon
|
|
12
|
+
:name="item.icon"
|
|
13
|
+
:class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-500'"
|
|
14
|
+
/>
|
|
15
|
+
<p
|
|
16
|
+
v-if="item.title"
|
|
17
|
+
class="text-xs font-medium"
|
|
18
|
+
:class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-600'"
|
|
19
|
+
>
|
|
20
|
+
{{ item.title }}
|
|
21
|
+
</p>
|
|
22
|
+
</NuxtLink>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script setup>
|
|
27
|
+
import { useRoute } from "#imports";
|
|
28
|
+
const route = useRoute();
|
|
29
|
+
const {} = defineProps({
|
|
30
|
+
items: { type: Array, required: true }
|
|
31
|
+
});
|
|
32
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
items: {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
routeName: string;
|
|
6
|
+
}[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
import type { CardItem } from '~/src/runtime/components/UnCard.vue';
|
|
2
3
|
export type ProfileItem = {
|
|
3
4
|
head?: string;
|
|
4
5
|
label: string;
|
|
@@ -12,8 +13,12 @@ export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>
|
|
|
12
13
|
item?: CardCustomClass;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Props = {
|
|
15
|
-
items:
|
|
16
|
-
|
|
16
|
+
items: (CardItem & {
|
|
17
|
+
disable?: boolean;
|
|
18
|
+
appendIcon?: string;
|
|
19
|
+
to?: string;
|
|
20
|
+
})[];
|
|
21
|
+
version?: string;
|
|
17
22
|
developer?: string;
|
|
18
23
|
developerLink?: string;
|
|
19
24
|
developerIcon?: string;
|
|
@@ -8,12 +8,8 @@
|
|
|
8
8
|
body: '!items-center'
|
|
9
9
|
}, merge)"
|
|
10
10
|
:class="customClass.items"
|
|
11
|
-
:to="item.
|
|
12
|
-
:item="
|
|
13
|
-
logo: item.icon,
|
|
14
|
-
name: item.head,
|
|
15
|
-
desc: item.label
|
|
16
|
-
}"
|
|
11
|
+
:to="item.to"
|
|
12
|
+
:item="item"
|
|
17
13
|
>
|
|
18
14
|
<template #header>
|
|
19
15
|
<UnNuxtIcon
|
|
@@ -51,7 +47,7 @@
|
|
|
51
47
|
import { _mergeWith, merge } from "#imports";
|
|
52
48
|
const { customClass = {} } = defineProps({
|
|
53
49
|
items: { type: Array, required: true },
|
|
54
|
-
version: { type: String, required:
|
|
50
|
+
version: { type: String, required: false },
|
|
55
51
|
developer: { type: String, required: false },
|
|
56
52
|
developerLink: { type: String, required: false },
|
|
57
53
|
developerIcon: { type: String, required: false },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CardCustomClass } from './UnCard.vue.js';
|
|
2
|
+
import type { CardItem } from '~/src/runtime/components/UnCard.vue';
|
|
2
3
|
export type ProfileItem = {
|
|
3
4
|
head?: string;
|
|
4
5
|
label: string;
|
|
@@ -12,8 +13,12 @@ export type ProfileCustomClass = Partial<Record<'items' | 'appendIcon', unknown>
|
|
|
12
13
|
item?: CardCustomClass;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_Props = {
|
|
15
|
-
items:
|
|
16
|
-
|
|
16
|
+
items: (CardItem & {
|
|
17
|
+
disable?: boolean;
|
|
18
|
+
appendIcon?: string;
|
|
19
|
+
to?: string;
|
|
20
|
+
})[];
|
|
21
|
+
version?: string;
|
|
17
22
|
developer?: string;
|
|
18
23
|
developerLink?: string;
|
|
19
24
|
developerIcon?: string;
|