nuxt-hs-ui 2.1.3 → 2.1.5

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.
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.15.0"
6
6
  },
7
- "version": "2.1.3",
7
+ "version": "2.1.5",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -20,14 +20,24 @@ import CardItem from "../layout/card-item.vue";
20
20
  interface Props {
21
21
  class?: ClassType;
22
22
  links: { label: string; to?: string }[];
23
+ classLink?: ClassType;
24
+ classUnlink?: ClassType;
23
25
  }
24
26
  const props = withDefaults(defineProps<Props>(), {
25
27
  class: "",
28
+ classLink: "",
29
+ classUnlink: "",
26
30
  });
27
31
 
28
32
  const classStyle = computed(() => {
29
33
  return twMerge(`w-full min-w-0`, ClassTypeToString(props.class));
30
34
  });
35
+ const classStyleLink = computed(() => {
36
+ return twMerge(`text-main1`, ClassTypeToString(props.classLink));
37
+ });
38
+ const classStyleUnlink = computed(() => {
39
+ return twMerge(`text-gray-600`, ClassTypeToString(props.classLink));
40
+ });
31
41
  </script>
32
42
 
33
43
  <template>
@@ -43,15 +53,14 @@ const classStyle = computed(() => {
43
53
  <NuxtLink
44
54
  v-if="item.to !== undefined"
45
55
  :to="item.to"
46
- class="text-main1"
47
- :class="{ hasBefore: index !== 0 }"
56
+ :class="[classStyleLink, { hasBefore: index !== 0 }]"
48
57
  >
49
58
  {{ item.label }}
50
59
  </NuxtLink>
51
60
  <span
52
61
  v-else
53
- class="text-gray-600"
54
- :class="{ hasBefore: index !== 0 }"
62
+ class=""
63
+ :class="[classStyleUnlink, { hasBefore: index !== 0 }]"
55
64
  >
56
65
  {{ item.label }}
57
66
  </span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-hs-ui",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "https://github.com/hare-systems-ryo/nuxt-hs-ui",
6
6
  "license": "MIT",