rimelight-components 1.7.11 → 1.7.13

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,9 +4,11 @@ type __VLS_Props = {
4
4
  to?: string;
5
5
  target?: string;
6
6
  };
7
- declare var __VLS_19: {};
7
+ declare var __VLS_19: {}, __VLS_45: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_19) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_45) => any;
10
12
  };
11
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>;
12
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,7 +1,6 @@
1
1
  <script setup>
2
2
  import { useAppConfig } from "#imports";
3
3
  import { computed } from "#imports";
4
- import { NuxtLink } from "#components";
5
4
  const appConfig = useAppConfig();
6
5
  const {
7
6
  variant,
@@ -22,24 +21,10 @@ const config = computed(() => {
22
21
  const icon = computed(() => config.value.icon);
23
22
  const title = computed(() => config.value.title);
24
23
  const tooltip = computed(() => config.value.tooltip);
25
- const RootComponent = computed(() => to ? NuxtLink : "div");
26
- const rootProps = computed(() => {
27
- const commonClasses = {
28
- class: ""
29
- };
30
- if (to) {
31
- return {
32
- ...commonClasses,
33
- to,
34
- target: target || void 0
35
- };
36
- }
37
- return commonClasses;
38
- });
39
24
  </script>
40
25
 
41
26
  <template>
42
- <component :is="RootComponent" v-bind="rootProps">
27
+ <NuxtLink v-if="to" :to="to" :target="target" class="block cursor-pointer">
43
28
  <UAlert
44
29
  :title="$t(title)"
45
30
  :color="variant"
@@ -56,9 +41,34 @@ const rootProps = computed(() => {
56
41
  </template>
57
42
  <template #close>
58
43
  <UTooltip v-if="tooltip" :text="$t(tooltip)">
59
- <UIcon name="lucide:circle-question-mark" class="size-5" />
44
+ <UIcon
45
+ name="lucide:circle-question-mark"
46
+ class="pointer-events-auto size-5"
47
+ />
60
48
  </UTooltip>
61
49
  </template>
62
50
  </UAlert>
63
- </component>
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>
64
74
  </template>
@@ -4,9 +4,11 @@ type __VLS_Props = {
4
4
  to?: string;
5
5
  target?: string;
6
6
  };
7
- declare var __VLS_19: {};
7
+ declare var __VLS_19: {}, __VLS_45: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_19) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_45) => any;
10
12
  };
11
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>;
12
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.11",
4
+ "version": "1.7.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Rimelight-Entertainment/rimelight-components.git"
@@ -61,35 +61,35 @@
61
61
  ],
62
62
  "dependencies": {
63
63
  "@nuxt/image": "^1.11.0",
64
- "@nuxt/kit": "^4.1.3",
65
- "@nuxt/ui": "^4.0.1",
66
- "@nuxtjs/i18n": "^10.1.1",
64
+ "@nuxt/kit": "^4.2.0",
65
+ "@nuxt/ui": "^4.1.0",
66
+ "@nuxtjs/i18n": "^10.1.2",
67
67
  "@vueuse/core": "^13.9.0",
68
68
  "@vueuse/nuxt": "^13.9.0",
69
69
  "date-fns": "^4.1.0",
70
- "nuxt": "^4.1.3",
70
+ "nuxt": "^4.2.0",
71
71
  "tailwind-variants": "^3.1.1",
72
72
  "vue": "^3.5.22"
73
73
  },
74
74
  "devDependencies": {
75
- "@nuxt/devtools": "^2.6.5",
75
+ "@nuxt/devtools": "^2.7.0",
76
76
  "@nuxt/module-builder": "^1.0.2",
77
- "@nuxt/schema": "^4.1.3",
78
- "@nuxt/test-utils": "^3.19.2",
77
+ "@nuxt/schema": "^4.2.0",
78
+ "@nuxt/test-utils": "^3.20.1",
79
79
  "@prettier/plugin-oxc": "^0.0.4",
80
80
  "@types/node": "latest",
81
81
  "changelogen": "^0.6.2",
82
82
  "class-variance-authority": "^0.7.1",
83
83
  "clsx": "^2.1.1",
84
- "motion-v": "^1.7.2",
85
- "oxlint": "^1.21.0",
84
+ "motion-v": "^1.7.4",
85
+ "oxlint": "^1.25.0",
86
86
  "prettier": "^3.6.2",
87
87
  "prettier-plugin-tailwindcss": "^0.6.14",
88
88
  "tailwind-merge": "^3.3.1",
89
89
  "tw-animate-css": "^1.4.0",
90
90
  "typescript": "~5.9.3",
91
91
  "vitest": "^3.2.4",
92
- "vue-tsc": "^3.1.0"
92
+ "vue-tsc": "^3.1.2"
93
93
  },
94
94
  "trustedDependencies": [
95
95
  "@parcel/watcher",