@wpic/ui 0.5.3 → 0.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1 — 2026-09-09
4
+
5
+ - Fix loading button spinners inheriting the wrong foreground in dark themes.
6
+ - Restore themed segmented-control backgrounds in dark mode, including Appearance controls in popovers.
7
+
8
+ ## 0.6.0 — 2026-09-08
9
+
10
+ - Add WTrendBadge and optional below-value trends in WStatCard, with green/rose tinted pills, directional markers and keyboard-accessible comparison tooltips.
11
+ - Add customizable trendPositive/trendNegative colors, independent of the brand accent.
12
+ - Apply shared UI5 tokens to segmented controls, modals and tooltips, including nested teleported overlays and explicit theme overrides.
13
+ - Retain existing metric change props and unthemed component presentation; WTable structure is unchanged.
14
+
15
+
3
16
  ## 0.5.3 — 2026-09-08
4
17
 
5
18
  - Add compact themed metric cards with the same surface, radius and ring.
package/COMPONENTS.md CHANGED
@@ -684,3 +684,11 @@ delay?: number
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
685
 
686
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.
687
+
688
+ ### Trend badges and overlay theming (0.6.0)
689
+
690
+ `WTrendBadge` accepts `value` (percentage or null), `inverse` (lower is favorable) and `description` (comparison tooltip). Direction follows the value; color follows favorable/unfavorable meaning. Zero and missing values are neutral.
691
+
692
+ `WStatCard` accepts `trend`, `trendInverse`, `trendLabel`, `trendTitle` to display this badge beneath the value. Existing `change`/`changePosition` props still work.
693
+
694
+ `trendPositive` and `trendNegative` are optional color overrides in WThemeProvider. WModal, WTooltip and WSegmentedControl now follow the same theme. Teleported overlays preserve explicit and custom themes.
@@ -1,4 +1,8 @@
1
1
  type __VLS_Props = {
2
+ trend?: number | null;
3
+ trendInverse?: boolean;
4
+ trendLabel?: string;
5
+ trendTitle?: string;
2
6
  compact?: boolean;
3
7
  changePosition?: 'value' | 'label';
4
8
  changeTitle?: string;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ value?: number | null;
3
+ inverse?: boolean;
4
+ description?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -85,3 +85,4 @@ export { default as WThemeProvider } from './components/WThemeProvider.vue';
85
85
  export { default as WPageHeader } from './components/WPageHeader.vue';
86
86
  export { ui5Theme, themeVariables, chartPalettes, useWTheme } from './theme';
87
87
  export type { WThemeMode, WThemeColors, WThemeOverrides } from './theme';
88
+ export { default as WTrendBadge } from './components/WTrendBadge.vue';
@@ -24,6 +24,8 @@ export interface WThemeColors {
24
24
  switchOff: string;
25
25
  switchDisabled: string;
26
26
  switchThumb: string;
27
+ trendPositive: string;
28
+ trendNegative: string;
27
29
  focusRing: string;
28
30
  positive: string;
29
31
  negative: string;