@molecule/app-kpi-card-svelte 0.0.1-stage → 1.1.1
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/README.md +1 -1
- package/dist/KpiCard.svelte +6 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-18T23:41:55.975Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-kpi-card-svelte
|
package/dist/KpiCard.svelte
CHANGED
|
@@ -56,22 +56,22 @@
|
|
|
56
56
|
<div class={stackClass}>
|
|
57
57
|
<div class={headerClass}>
|
|
58
58
|
<div class={innerClass}>
|
|
59
|
-
{#if typeof icon === 'function'}{@render icon()}{:else if icon}{icon}{/if}
|
|
59
|
+
{#if typeof icon === 'function'}{@render icon?.()}{:else if icon}{icon}{/if}
|
|
60
60
|
<span class={titleClass}>
|
|
61
|
-
{#if typeof title === 'function'}{@render title()}{:else}{title}{/if}
|
|
61
|
+
{#if typeof title === 'function'}{@render title?.()}{:else}{title}{/if}
|
|
62
62
|
</span>
|
|
63
63
|
</div>
|
|
64
|
-
{#if typeof action === 'function'}{@render action()}{:else if action}{action}{/if}
|
|
64
|
+
{#if typeof action === 'function'}{@render action?.()}{:else if action}{action}{/if}
|
|
65
65
|
</div>
|
|
66
66
|
<div class={valueClass}>
|
|
67
|
-
{#if typeof value === 'function'}{@render value()}{:else}{value}{/if}
|
|
67
|
+
{#if typeof value === 'function'}{@render value?.()}{:else}{value}{/if}
|
|
68
68
|
</div>
|
|
69
69
|
{#if hasTrendRow}
|
|
70
70
|
<div class={innerClass}>
|
|
71
|
-
{#if typeof trend === 'function'}{@render trend()}{:else if trend}{trend}{/if}
|
|
71
|
+
{#if typeof trend === 'function'}{@render trend?.()}{:else if trend}{trend}{/if}
|
|
72
72
|
{#if subtitle}
|
|
73
73
|
<span class={subtitleClass}>
|
|
74
|
-
{#if typeof subtitle === 'function'}{@render subtitle()}{:else}{subtitle}{/if}
|
|
74
|
+
{#if typeof subtitle === 'function'}{@render subtitle?.()}{:else}{subtitle}{/if}
|
|
75
75
|
</span>
|
|
76
76
|
{/if}
|
|
77
77
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-kpi-card-svelte",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Svelte KPI / metric card components with trend, icon, and grid variants",
|
|
5
5
|
"homepage": "https://www.molecule.dev/packages/app-kpi-card-svelte",
|
|
6
6
|
"type": "module",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@molecule/app-framework-conformance": "0.0.0",
|
|
58
58
|
"@molecule/app-i18n": "1.2.2",
|
|
59
59
|
"@molecule/app-icons": "1.0.4",
|
|
60
|
-
"@molecule/app-svelte": "3.
|
|
61
|
-
"@molecule/app-ui": "1.
|
|
62
|
-
"@molecule/app-ui-svelte": "1.1
|
|
60
|
+
"@molecule/app-svelte": "3.13.0",
|
|
61
|
+
"@molecule/app-ui": "1.5.0",
|
|
62
|
+
"@molecule/app-ui-svelte": "1.4.1",
|
|
63
63
|
"@sveltejs/package": "3.0.2",
|
|
64
64
|
"@sveltejs/vite-plugin-svelte": "7.1.2",
|
|
65
65
|
"@types/node": "26.6.5",
|
|
66
|
-
"jsdom": "
|
|
66
|
+
"jsdom": "31.0.1",
|
|
67
67
|
"svelte": "5.57.2",
|
|
68
68
|
"svelte-check": "4.7.7",
|
|
69
69
|
"typescript": "6.0.3",
|