@molecule/app-kpi-card-svelte 1.1.1 → 1.1.2

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 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-18T23:41:55.975Z
6
+ Generated: 2026-11-24T08:58:47.732Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-kpi-card-svelte
@@ -210,7 +210,7 @@ const KpiCardTrend: LegacyComponentType
210
210
 
211
211
  Peer dependencies:
212
212
 
213
- - `@molecule/app-svelte` ^3.5.0
213
+ - `@molecule/app-svelte` ^3.13.0
214
214
  - `@molecule/app-ui` ^1.3.11
215
215
  - `@molecule/app-ui-svelte` ^1.1.0
216
216
  - `svelte` ^5.0.0
@@ -5,6 +5,7 @@
5
5
  props are snippets, or plain strings.
6
6
  -->
7
7
  <script lang="ts">
8
+ import { PresentWhileContent } from '@molecule/app-svelte'
8
9
  import { getClassMap } from '@molecule/app-ui'
9
10
  import { Card } from '@molecule/app-ui-svelte'
10
11
 
@@ -49,7 +50,6 @@
49
50
  cm.cn(cm.textSize('3xl'), emphasizeValue ? cm.fontWeight('extrabold') : cm.fontWeight('bold')),
50
51
  )
51
52
  const subtitleClass = $derived(cm.textSize('sm'))
52
- const hasTrendRow = $derived(Boolean(trend || subtitle))
53
53
  </script>
54
54
 
55
55
  <Card className={cardClass} data-mol-id={dataMolId}>
@@ -66,15 +66,12 @@
66
66
  <div class={valueClass}>
67
67
  {#if typeof value === 'function'}{@render value?.()}{:else}{value}{/if}
68
68
  </div>
69
- {#if hasTrendRow}
70
- <div class={innerClass}>
71
- {#if typeof trend === 'function'}{@render trend?.()}{:else if trend}{trend}{/if}
72
- {#if subtitle}
73
- <span class={subtitleClass}>
74
- {#if typeof subtitle === 'function'}{@render subtitle?.()}{:else}{subtitle}{/if}
75
- </span>
76
- {/if}
77
- </div>
78
- {/if}
69
+ <PresentWhileContent class={innerClass}
70
+ >{#if typeof trend === 'function'}{@render trend?.()}{:else if trend}{trend}{/if}{#if subtitle}<PresentWhileContent
71
+ tag="span"
72
+ class={subtitleClass}
73
+ >{#if typeof subtitle === 'function'}{@render subtitle?.()}{:else}{subtitle}{/if}</PresentWhileContent
74
+ >{/if}</PresentWhileContent
75
+ >
79
76
  </div>
80
77
  </Card>
@@ -1 +1 @@
1
- {"version":3,"file":"KpiCard.svelte.d.ts","sourceRoot":"","sources":["../src/KpiCard.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgF/C,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"KpiCard.svelte.d.ts","sourceRoot":"","sources":["../src/KpiCard.svelte"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAuE/C,QAAA,MAAM,OAAO,kDAAwC,CAAC;AACtD,KAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAC1C,eAAe,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-kpi-card-svelte",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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",
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "peerDependencies": {
51
- "@molecule/app-svelte": "^3.5.0",
51
+ "@molecule/app-svelte": "^3.13.0",
52
52
  "@molecule/app-ui": "^1.3.11",
53
53
  "@molecule/app-ui-svelte": "^1.1.0",
54
54
  "svelte": "^5.0.0"
@@ -57,9 +57,9 @@
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.13.0",
60
+ "@molecule/app-svelte": "3.14.1",
61
61
  "@molecule/app-ui": "1.5.0",
62
- "@molecule/app-ui-svelte": "1.4.1",
62
+ "@molecule/app-ui-svelte": "1.4.2",
63
63
  "@sveltejs/package": "3.0.2",
64
64
  "@sveltejs/vite-plugin-svelte": "7.1.2",
65
65
  "@types/node": "26.6.5",