@sierra-95/svelte-scaffold 1.0.50 → 1.0.51

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.
@@ -30,7 +30,7 @@
30
30
  background-color: var(--menu-item-hover);
31
31
  }
32
32
  #sierra-menu .icon-active i{
33
- color: var(--primary-bg) !important;
33
+ color: var(--menu-active-icon-color) !important;
34
34
  }
35
35
  #sierra-menu h3{
36
36
  width: 50%;
@@ -10,6 +10,7 @@
10
10
  export let closeMobileMenu: () => void;
11
11
  export let isMenuOpen: boolean;
12
12
  export let sections: Section[];
13
+ export let menuActiveIconColor: string;
13
14
 
14
15
  function isParentActive(item: any, pathname: string) {
15
16
  if (item.path === '/') {
@@ -88,7 +89,7 @@
88
89
  closeMobileMenu();
89
90
  }
90
91
  }}
91
- style="{isMenuOpen? '':'border-radius: unset;border-left: none;'}"
92
+ style="{isMenuOpen? '':'border-radius: unset;border-left: none;'}; --menu-active-icon-color: {menuActiveIconColor};"
92
93
  class={`
93
94
  icon-base
94
95
  ${
@@ -18,6 +18,7 @@ declare const Menu: $$__sveltets_2_IsomorphicComponent<{
18
18
  closeMobileMenu: () => void;
19
19
  isMenuOpen: boolean;
20
20
  sections: Section[];
21
+ menuActiveIconColor: string;
21
22
  }, {
22
23
  [evt: string]: CustomEvent<any>;
23
24
  }, {}, {}, string>;
@@ -21,6 +21,7 @@
21
21
  gridToggle = false,
22
22
  toggleMenuColor = 'var(--hamburger)',
23
23
  toggleMenuSize = "25px",
24
+ menuActiveIconColor = 'var(--primary-bg)',
24
25
  } = $props();
25
26
 
26
27
  let isSmallscreen = $state(true);
@@ -51,9 +52,9 @@
51
52
  theme.set(storedTheme);
52
53
  document.body.setAttribute('data-theme', storedTheme);
53
54
  } else {
54
- theme.set('dark');
55
- localStorage.setItem('theme', 'dark');
56
- document.body.setAttribute('data-theme', 'dark');
55
+ theme.set('light');
56
+ localStorage.setItem('theme', 'light');
57
+ document.body.setAttribute('data-theme', 'light');
57
58
  }
58
59
  }
59
60
  });
@@ -102,6 +103,7 @@
102
103
  {isMenuOpen}
103
104
  {toggleMenu}
104
105
  {closeMobileMenu}
106
+ {menuActiveIconColor}
105
107
  />
106
108
  <Collapse {isMenuOpen} {toggleMenu}/>
107
109
  </div>
@@ -17,6 +17,7 @@ declare const Main: import("svelte").Component<{
17
17
  gridToggle?: boolean;
18
18
  toggleMenuColor?: string;
19
19
  toggleMenuSize?: string;
20
+ menuActiveIconColor?: string;
20
21
  }, {}, "">;
21
22
  type $$ComponentProps = {
22
23
  children: any;
@@ -32,4 +33,5 @@ type $$ComponentProps = {
32
33
  gridToggle?: boolean;
33
34
  toggleMenuColor?: string;
34
35
  toggleMenuSize?: string;
36
+ menuActiveIconColor?: string;
35
37
  };
package/dist/global.css CHANGED
@@ -81,7 +81,7 @@
81
81
  --background-v1-gradient-line-dark-end: #6366f1;
82
82
 
83
83
  }
84
- body[data-theme='light'] {
84
+ body, body[data-theme='light'] {
85
85
  background-color: var(--light-Theme);
86
86
  color: var(--text-on-light);
87
87
  --background : var(--light-Theme);
@@ -114,7 +114,7 @@ body[data-theme='light'] {
114
114
  --background-v1-gradient-line-end: var(--background-v1-gradient-line-light-end);
115
115
  }
116
116
 
117
- body, body[data-theme='dark']{
117
+ body[data-theme='dark']{
118
118
  background-color: var(--hsl-220-14);
119
119
  color: var(--text-on-dark);
120
120
  --background : var(--dark-Theme);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",