ui-beyable 1.0.36-beta.4 → 1.0.36-beta.6

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.
@@ -4,8 +4,8 @@ interface IKpiList {
4
4
  }
5
5
  interface IKpiItem {
6
6
  name: React.ReactNode | string;
7
- description: React.ReactNode | string;
8
- value: number;
7
+ description?: React.ReactNode | string;
8
+ value: string | number;
9
9
  prepend?: React.ReactNode | string;
10
10
  append?: React.ReactNode | string;
11
11
  unit?: string;
package/lib/cjs/index.js CHANGED
@@ -3059,6 +3059,7 @@ function KpiItem(_a) {
3059
3059
  :
3060
3060
  React.createElement("span", { className: getVariationClass() }, displayPercent(variation, variationNbDecimal))));
3061
3061
  }
3062
+ var valueToDisplay = typeof value == 'number' ? getFormattedNumber(value) : value;
3062
3063
  return (React.createElement(React.Fragment, null,
3063
3064
  React.createElement("div", { className: className.join(' ') },
3064
3065
  React.createElement("div", { className: [styles$6.item_header, flex.flex].join(' ') },
@@ -3073,7 +3074,7 @@ function KpiItem(_a) {
3073
3074
  prepend &&
3074
3075
  React.createElement("div", { className: styles$6.item_value_prepend }, prepend),
3075
3076
  React.createElement("span", null,
3076
- getFormattedNumber(value),
3077
+ valueToDisplay,
3077
3078
  unit &&
3078
3079
  React.createElement(React.Fragment, null,
3079
3080
  "\u00A0",