@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 +1 -6
- package/dist/index.mjs +1 -6
- package/package.json +1 -1
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 =
|
|
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 =
|
|
17675
|
+
const percentage = numValue;
|
|
17681
17676
|
const formattedPercentage = typeof percentage === "number" ? percentage.toFixed(1).replace(".", ",") : String(percentage).replace(".", ",");
|
|
17682
17677
|
return `${formattedPercentage}%`;
|
|
17683
17678
|
}
|