@apptegy/nuxt-navigation 0.1.13 → 0.1.14

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
3
  "configKey": "@apptegy/nuxt-navigation",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "unknown"
@@ -2,14 +2,17 @@
2
2
  import { useSidebar } from "#imports";
3
3
 
4
4
  defineProps<{
5
- icon: string;
5
+ icon?: string;
6
+ active?: boolean;
6
7
  }>();
7
8
  const { state: expanded } = useSidebar();
8
9
  </script>
9
10
 
10
11
  <template>
11
- <NuxtLink class="a-navbar-item" :class="{expanded}">
12
- <a-icon :icon="icon" font-size="32px"/>
12
+ <NuxtLink class="a-navbar-item" :class="{expanded, active}">
13
+ <slot name="icon">
14
+ <a-icon :icon="icon" font-size="32px"/>
15
+ </slot>
13
16
  <slot v-if="expanded" />
14
17
  </NuxtLink>
15
18
  </template>
@@ -31,12 +34,12 @@ const { state: expanded } = useSidebar();
31
34
  outline-offset: 0px;
32
35
  box-shadow: inset 0 0 0px 4px var(--primary-white);
33
36
  }
34
- .a-navbar-item.nuxt-link-exact-active, .a-navbar-item.router-link-exact-active {
37
+ .a-navbar-item.active, .a-navbar-item.nuxt-link-exact-active, .a-navbar-item.router-link-exact-active {
35
38
  background-color: var(--dscl-nav-active-background-color, #463e59);
36
39
  font-weight: 500;
37
40
  /* box-shadow: inset -4px 0px 0px 0px var(--orange-40); */
38
41
  }
39
- .a-navbar-item.nuxt-link-exact-active svg path, .a-navbar-item.router-link-exact-active svg path {
42
+ .a-navbar-item.active svg path, .a-navbar-item.nuxt-link-exact-active svg path, .a-navbar-item.router-link-exact-active svg path {
40
43
  stroke-width: 1.5px;
41
44
  }
42
45
  .a-navbar-item:hover {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {