spoko-design-system 0.6.2 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -1,27 +1,29 @@
1
1
  <template>
2
- <div class="text-light-blue-400 uppercase text-base z-3 relative w-full">
3
- <template v-if="categories">
4
- <template v-for="(category, index) in categories" :key="category.uri">
5
-
6
- class="term-link text-sm sm:text-base"
7
- :class="{ 'before:content-empty before:w-px before:h-2.5 before:bg-gray-300 before:mx-2.5 before:inline-block before:relative': index > 0 }"
8
- :href="category.uri"
9
- >
10
- {{ category.name }}
11
- </a>
12
- </template>
13
- </template>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- name: 'CategoryLink',
20
- props: {
21
- categories: {
22
- type: Array,
23
- default: () => []
24
- }
2
+ <a
3
+ :href="href"
4
+ class="category-link"
5
+ :class="{ 'active': active }"
6
+ >
7
+ {{ text }}
8
+ </a>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ name: 'CategoryLink',
14
+ props: {
15
+ active: {
16
+ type: Boolean,
17
+ default: false
18
+ },
19
+ text: {
20
+ type: String,
21
+ required: true
22
+ },
23
+ href: {
24
+ type: String,
25
+ required: true
25
26
  }
26
27
  }
27
- </script>
28
+ }
29
+ </script>