mountain-ui 1.0.84 → 1.0.86

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mountain-ui",
3
3
  "private": false,
4
- "version": "1.0.84",
4
+ "version": "1.0.86",
5
5
  "description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
6
6
  "type": "module",
7
7
  "module": "index.js",
@@ -1,24 +1,21 @@
1
1
  <script>
2
- import { onMount } from 'svelte';
3
- import icons from './icons/icons.json';
4
- import { Button, DropdownMenu, IconButton, Tabs } from 'hamzus-ui';
5
-
6
2
  let { value = '' } = $props();
7
3
 
8
4
  const svgs = import.meta.glob('./icons/**/*.svg', {
9
5
  query: '?raw',
10
- import: 'default'
6
+ import: 'default',
7
+ eager: true
11
8
  });
12
9
 
13
- async function loadSvg(theme, name) {
14
- [theme, name] = value.split('|');
10
+ function getSvg(value) {
11
+ if (!value) return '';
12
+
13
+ const [theme, name] = value.split('|');
15
14
 
16
- return await svgs[`./icons/${theme}/${name}.svg`]();
15
+ return svgs[`./icons/${theme}/${name}.svg`] ?? '';
17
16
  }
18
17
  </script>
19
18
 
20
- {#await loadSvg(value) then svg}
21
- {#if value}
22
- {@html svg}
23
- {/if}
24
- {/await}
19
+ {#if value}
20
+ {@html getSvg(value)}
21
+ {/if}
@@ -7,7 +7,7 @@
7
7
  import { projectRegistry } from '../../registry/projectRegistry/registry.svelte';
8
8
  import { goto } from '$app/navigation';
9
9
 
10
- let { settingsHref="",reportHref="", guideHref = '', logoutHref = '' } = $props();
10
+ let { settingsHref="",reportHref="", guideHref = '', logoutHref = '', getProjectHref } = $props();
11
11
 
12
12
  const targetProject = $derived(projectRegistry.selectTargetProject());
13
13
  const targetProjectPercent = $derived($targetProject?.getPercent() ?? null);
@@ -58,7 +58,7 @@
58
58
  <h5 style="color: var(--accent);">{$userState.email}</h5>
59
59
  </div>
60
60
  </div>
61
- <TargetProjectSubscriptionCard></TargetProjectSubscriptionCard>
61
+ <TargetProjectSubscriptionCard {getProjectHref}></TargetProjectSubscriptionCard>
62
62
  <div class="content">
63
63
 
64
64
  <Button href={settingsHref} variant="ghost" style="width:100%;">
@@ -169,19 +169,4 @@
169
169
  justify-content: center;
170
170
  padding: 60px var(--pad-m);
171
171
  }
172
- .entities {
173
- width: 100%;
174
- height: 40px;
175
- position: sticky;
176
- top: 43px;
177
- display: flex;
178
- align-items: center;
179
- column-gap: var(--pad-m);
180
- padding: var(--pad-s);
181
- border-bottom: 1px solid var(--stroke);
182
- overflow-x: auto;
183
- flex-shrink: 0;
184
- background-color: var(--bg-1);
185
- z-index: 20;
186
- }
187
172
  </style>