rimelight-components 1.6.0 → 1.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.
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ pageType: string;
3
+ previousTitle?: string;
4
+ previousDescription?: string;
5
+ previousTo?: string;
6
+ nextTitle?: string;
7
+ nextDescription?: string;
8
+ nextTo?: string;
9
+ };
10
+ 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>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,80 @@
1
+ <script setup>
2
+ const {
3
+ pageType,
4
+ previousTitle,
5
+ previousDescription,
6
+ previousTo,
7
+ nextTitle,
8
+ nextDescription,
9
+ nextTo
10
+ } = defineProps({
11
+ pageType: { type: String, required: true },
12
+ previousTitle: { type: String, required: false },
13
+ previousDescription: { type: String, required: false },
14
+ previousTo: { type: String, required: false },
15
+ nextTitle: { type: String, required: false },
16
+ nextDescription: { type: String, required: false },
17
+ nextTo: { type: String, required: false }
18
+ });
19
+ </script>
20
+
21
+ <template>
22
+ <div class="grid grid-cols-1 gap-8 sm:grid-cols-2">
23
+ <ULink v-if="previousTitle" :to="previousTo">
24
+ <UCard
25
+ variant="outline"
26
+ class="hover:bg-elevated/50 focus-visible:outline-primary group block bg-transparent"
27
+ >
28
+ <div class="gap-md flex flex-col">
29
+ <div class="gap-xs flex flex-col">
30
+ <UButton
31
+ variant="outline"
32
+ icon="lucide:arrow-left"
33
+ class="group-hover text-primary group-hover:text-highlighted w-fit rounded-full"
34
+ />
35
+ <span class="text-muted">
36
+ {{ $t("navigation_previous") }}
37
+ {{ $t(pageType) }}
38
+ </span>
39
+ </div>
40
+ <div class="gap-xs flex flex-col">
41
+ <p class="text-primary group-hover:text-highlighted">
42
+ {{ previousTitle }}
43
+ </p>
44
+ <p class="text-toned">
45
+ {{ previousDescription }}
46
+ </p>
47
+ </div>
48
+ </div>
49
+ </UCard>
50
+ </ULink>
51
+ <ULink v-if="nextTitle" :to="nextTo">
52
+ <UCard
53
+ variant="outline"
54
+ class="hover:bg-elevated/50 focus-visible:outline-primary group block bg-transparent"
55
+ >
56
+ <div class="gap-md flex flex-col items-end">
57
+ <div class="gap-xs flex flex-col items-end">
58
+ <UButton
59
+ variant="outline"
60
+ icon="lucide:arrow-right"
61
+ class="text-primary group-hover:text-highlighted w-fit rounded-full"
62
+ />
63
+ <span class="text-muted">
64
+ {{ $t("navigation_next") }}
65
+ {{ $t(pageType) }}</span
66
+ >
67
+ </div>
68
+ <div class="gap-xs flex flex-col items-end">
69
+ <p class="text-primary group-hover:text-highlighted">
70
+ {{ nextTitle }}
71
+ </p>
72
+ <p class="text-toned">
73
+ {{ nextDescription }}
74
+ </p>
75
+ </div>
76
+ </div>
77
+ </UCard>
78
+ </ULink>
79
+ </div>
80
+ </template>
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ pageType: string;
3
+ previousTitle?: string;
4
+ previousDescription?: string;
5
+ previousTo?: string;
6
+ nextTitle?: string;
7
+ nextDescription?: string;
8
+ nextTo?: string;
9
+ };
10
+ 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>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
3
  "description": "My new Nuxt module",
4
- "version": "1.6.0",
4
+ "version": "1.7.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"