@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.
- package/dist/Modules/Layout/Menu/menu.css +1 -1
- package/dist/Modules/Layout/Menu/menu.svelte +2 -1
- package/dist/Modules/Layout/Menu/menu.svelte.d.ts +1 -0
- package/dist/Modules/Layout/main.svelte +5 -3
- package/dist/Modules/Layout/main.svelte.d.ts +2 -0
- package/dist/global.css +2 -2
- package/package.json +1 -1
|
@@ -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
|
${
|
|
@@ -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('
|
|
55
|
-
localStorage.setItem('theme', '
|
|
56
|
-
document.body.setAttribute('data-theme', '
|
|
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
|
|
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);
|