@apptegy/nuxt-navigation 0.1.13 → 0.1.15

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.15",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "unknown"
@@ -135,7 +135,7 @@ function onHoverLeave() {
135
135
  background-color: var(--dscl-nav-background-color, var(--purple-70));
136
136
  color: var(--dscl-nav-font-color, var(--dscl-light-font, var(--primary-white)));
137
137
  transition: width 0.3s ease-in-out, translate 0.2s ease-in-out;
138
- height: 100vh;
138
+ height: 100%;
139
139
  overflow-y: auto;
140
140
  width: 64px;
141
141
  }
@@ -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 {
@@ -36,6 +36,10 @@ function getActiveIcon(src){
36
36
  box-shadow: inset 0px -1px 0px 0px var(--dscl-nav-section-border-bottom-color, var(--purple-65));
37
37
  padding-bottom: 4px;
38
38
  }
39
+ .a-nav-section--content {
40
+ display: flex;
41
+ flex-direction: column;
42
+ }
39
43
  .a-nav-section--link {
40
44
  display: flex;
41
45
  color: var(--dscl-nav-font-color, var(--dscl-light-font, var(--primary-white)));
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.15",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {