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.
@@ -13,6 +13,7 @@ export interface SideNavigationProps extends SideNavigationVariants {
13
13
  sideNavHref?: string;
14
14
  language?: string;
15
15
  items?: SideNavigationItem[];
16
+ bottomChildren?: any;
16
17
  }
17
18
  export declare const SCREEN_BREAK_POINTS: {
18
19
  sm: number;
@@ -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>
@@ -3,6 +3,7 @@ declare const SideNavigationLayout: import("svelte").Component<{
3
3
  children: any;
4
4
  language: any;
5
5
  items: any;
6
+ bottomChildren: any;
6
7
  }, {}, "">;
7
8
  type SideNavigationLayout = ReturnType<typeof SideNavigationLayout>;
8
9
  export default SideNavigationLayout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tera-system-ui",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run customPrepublish && npm run generate-index && vite build && npm run package && npm run postpublish",