@unsource/ui 2.5.0 → 2.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unsource-ui",
3
3
  "configKey": "unsourceUi",
4
- "version": "2.5.0",
4
+ "version": "2.6.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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,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,40 @@
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
+ <NuxtLink :to="{ name: item.routeName }" v-for="item in clientItem" :key="item.routeName"
5
+ class="flex flex-col items-center gap-1">
6
+ <TheNuxtIcon :name="item.icon"
7
+ :class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-500'"/>
8
+ <p class="text-xs font-medium"
9
+ :class="route.name === item.routeName ? 'text-primary-500' : 'text-gray-600'">
10
+ {{ item.title }}
11
+ </p>
12
+ </NuxtLink>
13
+ </div>
14
+ </template>
15
+
16
+ <script setup>
17
+ const route = useRoute();
18
+ const clientItem = computed(() => [
19
+ {
20
+ title: "\u062E\u0627\u0646\u0647",
21
+ routeName: "index",
22
+ icon: "solar:home-2-bold-duotone"
23
+ },
24
+ {
25
+ title: "\u0645\u0639\u0627\u0645\u0644\u0647 \u06AF\u0631",
26
+ routeName: "trade",
27
+ icon: "solar:chart-square-bold-duotone"
28
+ },
29
+ {
30
+ title: " \u0645\u0639\u0627\u0645\u0644\u0627\u062A",
31
+ routeName: "trades-list",
32
+ icon: "solar:document-text-bold-duotone"
33
+ },
34
+ {
35
+ title: "\u062D\u0633\u0627\u0628 \u0645\u0646",
36
+ routeName: "profile",
37
+ icon: "solar:user-bold-duotone"
38
+ }
39
+ ]);
40
+ </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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsource/ui",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "private": false,
5
5
  "description": "nuxt ui kit for unsource env",
6
6
  "repository": "https://github.com/alisa2142/unsource-ui",