@mlw-packages/react-components 1.10.15 → 1.10.16

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/dist/index.js CHANGED
@@ -17712,15 +17712,10 @@ var renderInsideBarLabel = (color, valueFormatter) => {
17712
17712
  };
17713
17713
  };
17714
17714
 
17715
- // src/utils/calcDivision.ts
17716
- var calcDivision = (dividend, divisor) => {
17717
- return dividend / divisor;
17718
- };
17719
-
17720
17715
  // src/components/ui/charts/utils/formatters.ts
17721
17716
  function formatLinePercentage(value) {
17722
17717
  const numValue = typeof value === "number" ? value : typeof value === "string" ? parseFloat(value) : 0;
17723
- const percentage = calcDivision(numValue, 100);
17718
+ const percentage = numValue;
17724
17719
  const formattedPercentage = typeof percentage === "number" ? percentage.toFixed(1).replace(".", ",") : String(percentage).replace(".", ",");
17725
17720
  return `${formattedPercentage}%`;
17726
17721
  }
package/dist/index.mjs CHANGED
@@ -17669,15 +17669,10 @@ var renderInsideBarLabel = (color, valueFormatter) => {
17669
17669
  };
17670
17670
  };
17671
17671
 
17672
- // src/utils/calcDivision.ts
17673
- var calcDivision = (dividend, divisor) => {
17674
- return dividend / divisor;
17675
- };
17676
-
17677
17672
  // src/components/ui/charts/utils/formatters.ts
17678
17673
  function formatLinePercentage(value) {
17679
17674
  const numValue = typeof value === "number" ? value : typeof value === "string" ? parseFloat(value) : 0;
17680
- const percentage = calcDivision(numValue, 100);
17675
+ const percentage = numValue;
17681
17676
  const formattedPercentage = typeof percentage === "number" ? percentage.toFixed(1).replace(".", ",") : String(percentage).replace(".", ",");
17682
17677
  return `${formattedPercentage}%`;
17683
17678
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "access": "public",
6
6
  "type":"module"
7
7
  },
8
- "version": "1.10.15",
8
+ "version": "1.10.16",
9
9
  "homepage": "https://main--68e80310a069c2f10b546ef3.chromatic.com/",
10
10
  "repository": {
11
11
  "type": "git",