tera-system-ui 0.1.18 → 0.1.20
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/components/side-navigation/SideNavigation.d.ts +1 -0
- package/dist/components/side-navigation/SideNavigation.svelte +3 -2
- package/dist/components/side-navigation/SideNavigationLayout.svelte +2 -2
- package/dist/components/side-navigation/SideNavigationLayout.svelte.d.ts +1 -0
- package/package.json +1 -1
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
import {getGlobalContext} from "../tera-ui-context/global-context";
|
|
20
20
|
import {SupportedLanguage as CalculatorSupportedLanguage} from "../../tera-i18n/projects/tera-calculator/supported-language";
|
|
21
21
|
import {SupportedLanguage as ConverterSupportedLanguage} from "../../tera-i18n/projects/tera-converter/supported-language";
|
|
22
|
+
import {LightDarkToggle} from "../light-dark-toggle";
|
|
22
23
|
|
|
23
|
-
let {children, sideNavHref, language, items, ...props}: SideNavigationProps = $props();
|
|
24
|
+
let {children, sideNavHref, language, items, bottomChildren, ...props}: SideNavigationProps = $props();
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
function handleClickOutside() {
|
|
@@ -123,5 +124,5 @@
|
|
|
123
124
|
</SideNavItem>
|
|
124
125
|
{/each}
|
|
125
126
|
</ul>
|
|
126
|
-
|
|
127
|
+
{@render bottomChildren?.()}
|
|
127
128
|
</nav>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {SideNavigation} from "./";
|
|
3
3
|
import './sidenav.scss'
|
|
4
4
|
|
|
5
|
-
let {children, language, items} = $props()
|
|
5
|
+
let {children, language, items, bottomChildren} = $props()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<main
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
class="side-nav_main-layout relative"
|
|
11
11
|
data-side-nav-state="compact"
|
|
12
12
|
>
|
|
13
|
-
<SideNavigation language={language} items={items}/>
|
|
13
|
+
<SideNavigation language={language} items={items} bottomChildren={bottomChildren}/>
|
|
14
14
|
<div class="side-nav-backdrop">
|
|
15
15
|
|
|
16
16
|
</div>
|