mountain-ui 1.0.92 → 1.0.94
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/index.js +2 -0
- package/package.json +1 -1
- package/src/lib/components/Icons/Icon.svelte +3 -13
- package/src/lib/components/Icons/svgs.js +6567 -0
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { init as initMountainUi } from "hamzus-ui";
|
|
|
6
6
|
|
|
7
7
|
export { userState, createUserState, loadSession, logout } from './src/lib/components/User/user.js';
|
|
8
8
|
export { default as UserDropdown } from './src/lib/components/User/UserDropdown.svelte';
|
|
9
|
+
export { default as Nothing } from './src/lib/components/Nothing.svelte';
|
|
9
10
|
|
|
10
11
|
// ============================================
|
|
11
12
|
// Project Registry
|
|
@@ -69,6 +70,7 @@ export { default as EntityForm } from './src/lib/registry/entityRegistry/compone
|
|
|
69
70
|
export { default as EntityPage } from './src/lib/registry/entityRegistry/components/EntityPage.svelte';
|
|
70
71
|
export { default as EntityFieldContainer } from './src/lib/registry/entityRegistry/components/EntityFieldContainer.svelte';
|
|
71
72
|
export { default as EntryForm } from './src/lib/registry/entityRegistry/components/EntryForm.svelte';
|
|
73
|
+
export { default as EntityRow } from './src/lib/registry/entityRegistry/components/EntityRow.svelte';
|
|
72
74
|
export { default as EntryPage } from './src/lib/registry/entityRegistry/components/EntryPage.svelte';
|
|
73
75
|
export { default as FieldButton } from './src/lib/registry/entityRegistry/components/FieldButton.svelte';
|
|
74
76
|
export { default as FieldCard } from './src/lib/registry/entityRegistry/components/FieldCard.svelte';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.94",
|
|
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,20 +1,10 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
2
|
+
import { svgs } from './svgs.js';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
query: '?raw',
|
|
6
|
-
import: 'default',
|
|
7
|
-
eager: true
|
|
8
|
-
});
|
|
4
|
+
let { value = '' } = $props();
|
|
9
5
|
|
|
10
6
|
function getSvg(value) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!value) return '';
|
|
14
|
-
|
|
15
|
-
const [theme, name] = value.split('|');
|
|
16
|
-
|
|
17
|
-
return svgs[`./icons/${theme}/${name}.svg`] ?? '';
|
|
7
|
+
return svgs[value] ?? '';
|
|
18
8
|
}
|
|
19
9
|
</script>
|
|
20
10
|
|