rimelight-components 1.7.3 → 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 __VLS_14: {};
7
+ declare var __VLS_19: {};
6
8
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_14) => any;
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 { variant } = defineProps({
6
- variant: { type: String, required: true }
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
- <UAlert
22
- :title="$t(title)"
23
- :color="variant"
24
- variant="subtle"
25
- :close="{
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
- <template #leading>
30
- <UIcon :name="icon" class="size-6" />
31
- </template>
32
- <template #description>
33
- <slot />
34
- </template>
35
- <template #close>
36
- <UTooltip v-if="description" :text="$t(description)">
37
- <UIcon name="lucide:circle-question-mark" class="size-5" />
38
- </UTooltip>
39
- </template>
40
- </UAlert>
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 __VLS_14: {};
7
+ declare var __VLS_19: {};
6
8
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_14) => any;
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>;
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.7.3",
4
+ "version": "1.7.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"