rimelight-components 1.7.13 → 1.7.15

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.
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  to?: string;
5
5
  target?: string;
6
6
  };
7
- declare var __VLS_19: {}, __VLS_45: {};
7
+ declare var __VLS_18: {}, __VLS_43: {};
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_19) => any;
9
+ default?: (props: typeof __VLS_18) => any;
10
10
  } & {
11
- default?: (props: typeof __VLS_45) => any;
11
+ default?: (props: typeof __VLS_43) => any;
12
12
  };
13
13
  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>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,11 +2,7 @@
2
2
  import { useAppConfig } from "#imports";
3
3
  import { computed } from "#imports";
4
4
  const appConfig = useAppConfig();
5
- const {
6
- variant,
7
- to = "",
8
- target = ""
9
- } = defineProps({
5
+ const { variant, to, target } = defineProps({
10
6
  variant: { type: String, required: true },
11
7
  to: { type: String, required: false },
12
8
  target: { type: String, required: false }
@@ -24,8 +20,35 @@ const tooltip = computed(() => config.value.tooltip);
24
20
  </script>
25
21
 
26
22
  <template>
27
- <NuxtLink v-if="to" :to="to" :target="target" class="block cursor-pointer">
23
+ <div class="block">
24
+ <NuxtLink v-if="to" :to="to" :target="target" class="cursor-pointer">
25
+ <UAlert
26
+ :title="$t(title)"
27
+ :color="variant"
28
+ variant="subtle"
29
+ :close="{
30
+ class: 'pointer-events-none focus-visible:outline-none'
31
+ }"
32
+ >
33
+ <template #leading>
34
+ <UIcon :name="icon" class="size-6" />
35
+ </template>
36
+ <template #description>
37
+ <slot />
38
+ </template>
39
+ <template #close>
40
+ <UTooltip v-if="tooltip" :text="$t(tooltip)">
41
+ <UIcon
42
+ name="lucide:circle-question-mark"
43
+ class="pointer-events-auto size-5"
44
+ />
45
+ </UTooltip>
46
+ </template>
47
+ </UAlert>
48
+ </NuxtLink>
49
+
28
50
  <UAlert
51
+ v-else
29
52
  :title="$t(title)"
30
53
  :color="variant"
31
54
  variant="subtle"
@@ -41,34 +64,9 @@ const tooltip = computed(() => config.value.tooltip);
41
64
  </template>
42
65
  <template #close>
43
66
  <UTooltip v-if="tooltip" :text="$t(tooltip)">
44
- <UIcon
45
- name="lucide:circle-question-mark"
46
- class="pointer-events-auto size-5"
47
- />
67
+ <UIcon name="lucide:circle-question-mark" class="size-5" />
48
68
  </UTooltip>
49
69
  </template>
50
70
  </UAlert>
51
- </NuxtLink>
52
-
53
- <UAlert
54
- v-else
55
- :title="$t(title)"
56
- :color="variant"
57
- variant="subtle"
58
- :close="{
59
- class: 'pointer-events-none focus-visible:outline-none'
60
- }"
61
- >
62
- <template #leading>
63
- <UIcon :name="icon" class="size-6" />
64
- </template>
65
- <template #description>
66
- <slot />
67
- </template>
68
- <template #close>
69
- <UTooltip v-if="tooltip" :text="$t(tooltip)">
70
- <UIcon name="lucide:circle-question-mark" class="size-5" />
71
- </UTooltip>
72
- </template>
73
- </UAlert>
71
+ </div>
74
72
  </template>
@@ -4,11 +4,11 @@ type __VLS_Props = {
4
4
  to?: string;
5
5
  target?: string;
6
6
  };
7
- declare var __VLS_19: {}, __VLS_45: {};
7
+ declare var __VLS_18: {}, __VLS_43: {};
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_19) => any;
9
+ default?: (props: typeof __VLS_18) => any;
10
10
  } & {
11
- default?: (props: typeof __VLS_45) => any;
11
+ default?: (props: typeof __VLS_43) => any;
12
12
  };
13
13
  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>;
14
14
  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.13",
4
+ "version": "1.7.15",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"