@dorsk/tsumikit 0.8.0 → 0.8.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.
@@ -49,7 +49,14 @@
49
49
  <span class="metric-label">{label}</span>
50
50
  {#if icon || iconChildren}
51
51
  <span class="metric-chip" aria-hidden="true">
52
- <Icon name={icon}>{@render iconChildren?.()}</Icon>
52
+ <!-- Only forward a children snippet when a custom icon was actually
53
+ provided; otherwise Icon's `children` branch always wins and the
54
+ registry `name` glyph never renders (empty chip). -->
55
+ {#if iconChildren}
56
+ <Icon name={icon}>{@render iconChildren()}</Icon>
57
+ {:else}
58
+ <Icon name={icon} />
59
+ {/if}
53
60
  </span>
54
61
  {/if}
55
62
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorsk/tsumikit",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Minimal, dependency-free Svelte 5 + pure-CSS UI kit. Token-driven atoms, molecules & layouts with theming out of the box.",
5
5
  "type": "module",
6
6
  "license": "MIT",