ketekny-ui-kit 1.0.64 → 1.0.65

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,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.64",
4
+ "version": "1.0.65",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -83,7 +83,7 @@
83
83
  <component
84
84
  v-for="item in normalizedMainMenu"
85
85
  :key="item.key"
86
- :is="item.isLink ? RouterLink : item.isExternal ? 'a' : 'button'"
86
+ :is="menuItemTag(item)"
87
87
  v-bind="item.bindings"
88
88
  class="flex w-full items-start gap-3 rounded-2xl border px-4 py-4 text-left transition-all duration-200"
89
89
  :class="item.classes"
@@ -325,6 +325,11 @@ export default {
325
325
  this.isSidebarCollapsed = !this.isSidebarCollapsed
326
326
  this.persistSidebarState()
327
327
  },
328
+ menuItemTag(item) {
329
+ if (item?.isLink) return 'RouterLink'
330
+ if (item?.isExternal) return 'a'
331
+ return 'button'
332
+ },
328
333
  },
329
334
  computed: {
330
335
  normalizedMainMenu() {