@wpic/ui 0.5.2 → 0.5.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.3 — 2026-09-08
4
+
5
+ - Add compact themed metric cards with the same surface, radius and ring.
6
+ - Add optional label-level variation and comparison tooltip through changePosition and changeTitle; existing value-level variation remains the default.
7
+
8
+
3
9
  ## 0.5.2 — 2026-09-08
4
10
 
5
11
  - Fix the default date-range size to md so the shared theme applies the same 36px height as other fields and buttons. Explicit small and large sizes remain supported.
package/COMPONENTS.md CHANGED
@@ -682,3 +682,5 @@ delay?: number
682
682
  ### UI5 metric cards (0.5.1)
683
683
 
684
684
  Inside WThemeProvider, WStatCard uses the approved UI5 composition. Use `featured` for an accent label band, `change` for a variation beside the value, and `changeTone="negative"` for a negative variation. Values retain the normal text color unless `color` is explicitly provided. Existing `sub`, `unit` and color props are preserved.
685
+
686
+ For a shorter metric card, use `compact`. Use `changePosition="label"` to align the variation with the label and `changeTitle` for the previous-value tooltip. Both sizes share their card surface and ring.
@@ -1,4 +1,7 @@
1
1
  type __VLS_Props = {
2
+ compact?: boolean;
3
+ changePosition?: 'value' | 'label';
4
+ changeTitle?: string;
2
5
  featured?: boolean;
3
6
  change?: string;
4
7
  changeTone?: 'positive' | 'negative' | 'neutral';