@fixefy/fixefy-ui-components 0.3.61 → 0.3.63
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.
|
@@ -22,7 +22,7 @@ const FxProgressCircle = ({ radius = 70, border = 70, value, hasLabel = true, ma
|
|
|
22
22
|
const strokeWidth = border;
|
|
23
23
|
const strokeDashoffset = p * (1 - _value);
|
|
24
24
|
const strokeDasharray = p;
|
|
25
|
-
const label = type === 'progress' ? `${value}/${max}` : `${value.toFixed()}%`;
|
|
25
|
+
const label = type === 'progress' ? `${new Intl.NumberFormat('en-US', {}).format(Number(value))}/${new Intl.NumberFormat('en-US', {}).format(Number(max))}` : `${value.toFixed()}%`;
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_progress_circlestyles.Container, {
|
|
27
27
|
children: [
|
|
28
28
|
hasLabel && type === 'progress' && /*#__PURE__*/ (0, _jsxruntime.jsx)(_progress_circlestyles.Label, {
|
|
@@ -128,9 +128,10 @@ function FxStatisticsBar({ value, type = 'currency', label, structure, collapsed
|
|
|
128
128
|
switch(statisticsType){
|
|
129
129
|
case 'percentage':
|
|
130
130
|
{
|
|
131
|
-
return
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
return value + '%';
|
|
132
|
+
// return new Intl.NumberFormat('en-US', {
|
|
133
|
+
// style: 'percent',
|
|
134
|
+
// }).format(Number(value))
|
|
134
135
|
}
|
|
135
136
|
case 'currency':
|
|
136
137
|
{
|
package/package.json
CHANGED