@rabbitio/ui-kit 1.0.0-beta.29 → 1.0.0-beta.30

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.cjs CHANGED
@@ -1894,6 +1894,15 @@ var AmountUtils = /*#__PURE__*/function () {
1894
1894
  trim: false,
1895
1895
  limitTotalLength: false
1896
1896
  });
1897
+ };
1898
+ AmountUtils.cryptoFullPureNumber = function cryptoFullPureNumber(amount, digits) {
1899
+ return this.crypto(amount, null, digits, {
1900
+ ticker: false,
1901
+ collapsible: false,
1902
+ trim: false,
1903
+ limitTotalLength: false,
1904
+ numberPartsSeparator: false
1905
+ });
1897
1906
  }
1898
1907
 
1899
1908
  /**
@@ -1940,7 +1949,7 @@ var AmountUtils = /*#__PURE__*/function () {
1940
1949
  // Collapse the 1M+ amounts if applicable
1941
1950
  processedAmount = this._collapseToMillionsAndFormat(bignumber_js.BigNumber(processedAmount), this.collapsedDecimalCount, params);
1942
1951
  wereMillionsCollapsed = true;
1943
- } else {
1952
+ } else if (params.numberPartsSeparator) {
1944
1953
  // Add separators to integer part of the amount
1945
1954
  processedAmount = bignumber_js.BigNumber(processedAmount).toFormat();
1946
1955
  }
@@ -2135,7 +2144,9 @@ AmountUtils.defaultCryptoParams = {
2135
2144
  // Limits the total amount length to maxTotalLength
2136
2145
  extraSmallLength: false,
2137
2146
  // Limits the total amount length to extraSmallMaxTotalLength
2138
- periods: true // Whether we add periods ("..") as suffix for trimmed numbers
2147
+ periods: true,
2148
+ // Whether we add periods ("..") as suffix for trimmed numbers
2149
+ numberPartsSeparator: true // Whether we add separators e.g. for 1000000 -> 1,000,000
2139
2150
  };
2140
2151
 
2141
2152
  var Blockchain =