mountain-ui 1.0.64 → 1.0.65

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.d.ts CHANGED
@@ -72,5 +72,6 @@ export { default as EntryActionTypeCard } from './src/lib/registry/entryActionTy
72
72
  export { entryActionRegistry } from './src/lib/registry/entryActionRegistry/registry.svelte.js';
73
73
  export { createEntryAction } from './src/lib/registry/entryActionRegistry/createEntryAction.js';
74
74
 
75
+ export { default as EntryActionCard } from './src/lib/registry/entryActionRegistry/components/EntryActionCard.svelte';
75
76
  export { default as EntryActionButton } from './src/lib/registry/entryActionRegistry/components/EntryActionButton.svelte';
76
77
  export { default as EntryActionsButtons } from './src/lib/registry/entryActionRegistry/components/EntryActionsButtons.svelte';
package/index.js CHANGED
@@ -72,5 +72,6 @@ export { default as EntryActionTypeCard } from './src/lib/registry/entryActionTy
72
72
  export { entryActionRegistry } from './src/lib/registry/entryActionRegistry/registry.svelte.js';
73
73
  export { createEntryAction } from './src/lib/registry/entryActionRegistry/createEntryAction.js';
74
74
 
75
+ export { default as EntryActionCard } from './src/lib/registry/entryActionRegistry/components/EntryActionCard.svelte';
75
76
  export { default as EntryActionButton } from './src/lib/registry/entryActionRegistry/components/EntryActionButton.svelte';
76
77
  export { default as EntryActionsButtons } from './src/lib/registry/entryActionRegistry/components/EntryActionsButtons.svelte';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mountain-ui",
3
3
  "private": false,
4
- "version": "1.0.64",
4
+ "version": "1.0.65",
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",
@@ -0,0 +1,27 @@
1
+ <script>
2
+ import { Button } from "hamzus-ui";
3
+ import { entryActionRegistry } from "../registry.svelte";
4
+ import { entryActionTypeRegistry } from "../../entryActionTypeRegistry/registry.svelte";
5
+
6
+ let {id, variant="ghost", ...props} = $props()
7
+
8
+ const entryAction = $derived(entryActionRegistry.select(id))
9
+ const entryActionType = $derived($entryAction.type ? entryActionTypeRegistry.select($entryAction.type) : null)
10
+ </script>
11
+
12
+ {#if $entryAction && $entryActionType}
13
+ <Button {variant} {...props}>
14
+ <div class="btn">
15
+ <h4>{$entryAction.name}</h4>
16
+ <h6>{$entryActionType.name}</h6>
17
+ </div>
18
+ </Button>
19
+ {/if}
20
+
21
+ <style>
22
+ .btn {
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: baseline;
26
+ }
27
+ </style>