@sierra-95/svelte-scaffold 1.0.41 → 1.0.43

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  const {sections} = $props()
9
9
 
10
- let open = $state(true);
10
+ let open = $state(false);
11
11
  let query = $state('');
12
12
  let results = $state<SearchResult[]>([]);
13
13
  let initialResults = $state<SearchResult[]>([]);
@@ -9,6 +9,7 @@ export type SectionItem = {
9
9
  };
10
10
  export type Section = {
11
11
  label: string;
12
+ hidden?: boolean;
12
13
  items: SectionItem[];
13
14
  };
14
15
  export type SearchResult = {
@@ -67,7 +67,7 @@
67
67
 
68
68
  </script>
69
69
  <nav id="sierra-menu">
70
- {#each sections as section, i}
70
+ {#each sections.filter(section => !section.hidden) as section, i}
71
71
  {#if section.label}
72
72
  <div style="width: 80%;">
73
73
  <h3 style="font-size:small; {isMenuOpen? '':'display:none;'}">{section.label}</h3>
@@ -75,7 +75,7 @@
75
75
  </div>
76
76
  {/if}
77
77
 
78
- {#each section.items.filter(item => !item.hidden) as item}
78
+ {#each section.items as item}
79
79
  <a title={item.label}
80
80
  href={item.children ? 'javascript:void(0)' : item.path}
81
81
  on:click={() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",