rimelight-components 1.7.2 → 1.7.4
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export type CalloutVariant = "info" | "success" | "warning" | "error" | "commentary" | "ideation" | "source";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
variant: CalloutVariant;
|
|
4
|
+
to?: string;
|
|
5
|
+
target?: string;
|
|
4
6
|
};
|
|
5
|
-
declare var
|
|
7
|
+
declare var __VLS_19: {};
|
|
6
8
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_19) => any;
|
|
8
10
|
};
|
|
9
11
|
declare const __VLS_base: 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>;
|
|
10
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -2,8 +2,14 @@
|
|
|
2
2
|
import { useAppConfig } from "#imports";
|
|
3
3
|
import { computed } from "#imports";
|
|
4
4
|
const appConfig = useAppConfig();
|
|
5
|
-
const {
|
|
6
|
-
variant
|
|
5
|
+
const {
|
|
6
|
+
variant,
|
|
7
|
+
to = "",
|
|
8
|
+
target = ""
|
|
9
|
+
} = defineProps({
|
|
10
|
+
variant: { type: String, required: true },
|
|
11
|
+
to: { type: String, required: false },
|
|
12
|
+
target: { type: String, required: false }
|
|
7
13
|
});
|
|
8
14
|
const config = computed(() => {
|
|
9
15
|
return appConfig.rimelightComponents?.callouts?.[variant] ?? {
|
|
@@ -18,24 +24,26 @@ const description = computed(() => config.value.description);
|
|
|
18
24
|
</script>
|
|
19
25
|
|
|
20
26
|
<template>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
<NuxtLink :to="to" :target="target">
|
|
28
|
+
<UAlert
|
|
29
|
+
:title="$t(title)"
|
|
30
|
+
:color="variant"
|
|
31
|
+
variant="subtle"
|
|
32
|
+
:close="{
|
|
26
33
|
class: 'pointer-events-none focus-visible:outline-none'
|
|
27
34
|
}"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
>
|
|
36
|
+
<template #leading>
|
|
37
|
+
<UIcon :name="icon" class="size-6" />
|
|
38
|
+
</template>
|
|
39
|
+
<template #description>
|
|
40
|
+
<slot />
|
|
41
|
+
</template>
|
|
42
|
+
<template #close>
|
|
43
|
+
<UTooltip v-if="description" :text="$t(description)">
|
|
44
|
+
<UIcon name="lucide:circle-question-mark" class="size-5" />
|
|
45
|
+
</UTooltip>
|
|
46
|
+
</template>
|
|
47
|
+
</UAlert>
|
|
48
|
+
</NuxtLink>
|
|
41
49
|
</template>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export type CalloutVariant = "info" | "success" | "warning" | "error" | "commentary" | "ideation" | "source";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
variant: CalloutVariant;
|
|
4
|
+
to?: string;
|
|
5
|
+
target?: string;
|
|
4
6
|
};
|
|
5
|
-
declare var
|
|
7
|
+
declare var __VLS_19: {};
|
|
6
8
|
type __VLS_Slots = {} & {
|
|
7
|
-
default?: (props: typeof
|
|
9
|
+
default?: (props: typeof __VLS_19) => any;
|
|
8
10
|
};
|
|
9
11
|
declare const __VLS_base: 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>;
|
|
10
12
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -20,61 +20,65 @@ const {
|
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
22
|
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2">
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<div class="gap-
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
<div>
|
|
24
|
+
<ULink v-if="previousTitle" :to="previousTo" class="h-full">
|
|
25
|
+
<UCard
|
|
26
|
+
variant="outline"
|
|
27
|
+
class="hover:bg-elevated/50 focus-visible:outline-primary group block h-full bg-transparent"
|
|
28
|
+
>
|
|
29
|
+
<div class="gap-md flex flex-col">
|
|
30
|
+
<div class="gap-xs flex flex-col">
|
|
31
|
+
<UButton
|
|
32
|
+
variant="outline"
|
|
33
|
+
icon="lucide:arrow-left"
|
|
34
|
+
class="group-hover text-primary group-hover:text-highlighted w-fit rounded-full"
|
|
35
|
+
/>
|
|
36
|
+
<span class="text-muted">
|
|
37
|
+
{{ $t("navigation_previous") }}
|
|
38
|
+
{{ $t(pageType) }}
|
|
39
|
+
</span>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="gap-xs flex flex-col">
|
|
42
|
+
<p class="text-primary group-hover:text-highlighted">
|
|
43
|
+
{{ previousTitle }}
|
|
44
|
+
</p>
|
|
45
|
+
<p class="text-toned">
|
|
46
|
+
{{ previousDescription }}
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
39
49
|
</div>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
</UCard>
|
|
51
|
+
</ULink>
|
|
52
|
+
</div>
|
|
53
|
+
<div>
|
|
54
|
+
<ULink v-if="nextTitle" :to="nextTo" class="h-full">
|
|
55
|
+
<UCard
|
|
56
|
+
variant="outline"
|
|
57
|
+
class="hover:bg-elevated/50 focus-visible:outline-primary group block h-full bg-transparent"
|
|
58
|
+
>
|
|
59
|
+
<div class="gap-md flex flex-col items-end">
|
|
60
|
+
<div class="gap-xs flex flex-col items-end">
|
|
61
|
+
<UButton
|
|
62
|
+
variant="outline"
|
|
63
|
+
icon="lucide:arrow-right"
|
|
64
|
+
class="text-primary group-hover:text-highlighted w-fit rounded-full"
|
|
65
|
+
/>
|
|
66
|
+
<span class="text-muted">
|
|
67
|
+
{{ $t("navigation_next") }}
|
|
68
|
+
{{ $t(pageType) }}</span
|
|
69
|
+
>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="gap-xs flex flex-col items-end">
|
|
72
|
+
<p class="text-primary group-hover:text-highlighted text-right">
|
|
73
|
+
{{ nextTitle }}
|
|
74
|
+
</p>
|
|
75
|
+
<p class="text-toned text-right">
|
|
76
|
+
{{ nextDescription }}
|
|
77
|
+
</p>
|
|
78
|
+
</div>
|
|
47
79
|
</div>
|
|
48
|
-
</
|
|
49
|
-
</
|
|
50
|
-
</
|
|
51
|
-
<ULink v-if="nextTitle" :to="nextTo" class="h-full">
|
|
52
|
-
<UCard
|
|
53
|
-
variant="outline"
|
|
54
|
-
class="hover:bg-elevated/50 focus-visible:outline-primary group block h-full 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 text-right">
|
|
70
|
-
{{ nextTitle }}
|
|
71
|
-
</p>
|
|
72
|
-
<p class="text-toned text-right">
|
|
73
|
-
{{ nextDescription }}
|
|
74
|
-
</p>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</UCard>
|
|
78
|
-
</ULink>
|
|
80
|
+
</UCard>
|
|
81
|
+
</ULink>
|
|
82
|
+
</div>
|
|
79
83
|
</div>
|
|
80
84
|
</template>
|