@headless-adminapp/fluent 1.4.4 → 1.4.5

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.
@@ -139,7 +139,18 @@ function createCurrencyAxisFormatter(locale) {
139
139
  if (!info) {
140
140
  return '';
141
141
  }
142
- return (0, exports.formatCurrency)(locale, info.value, 0) + info.symbol;
142
+ let maxDigit = 0;
143
+ if (info.symbol) {
144
+ if (Math.abs(info.value) < 10) {
145
+ maxDigit = 2;
146
+ }
147
+ else if (Math.abs(info.value) < 100) {
148
+ maxDigit = 1;
149
+ }
150
+ }
151
+ return ((0, exports.formatCurrency)(locale, info.value, {
152
+ maxDigit,
153
+ }) + info.symbol);
143
154
  };
144
155
  }
145
156
  function createCategoryAxisFormatter(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@headless-adminapp/fluent",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -52,5 +52,5 @@
52
52
  "uuid": "11.0.3",
53
53
  "yup": "^1.4.0"
54
54
  },
55
- "gitHead": "ca80572e64d16eafd78c1e511c0f15b563af51e5"
55
+ "gitHead": "5f91697e5b3d509091ea75d4c2e61e64a492aa91"
56
56
  }