@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 +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +13 -2
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +13 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/common/amountUtils.js +12 -1
package/dist/index.module.js
CHANGED
|
@@ -1888,6 +1888,15 @@ var AmountUtils = /*#__PURE__*/function () {
|
|
|
1888
1888
|
trim: false,
|
|
1889
1889
|
limitTotalLength: false
|
|
1890
1890
|
});
|
|
1891
|
+
};
|
|
1892
|
+
AmountUtils.cryptoFullPureNumber = function cryptoFullPureNumber(amount, digits) {
|
|
1893
|
+
return this.crypto(amount, null, digits, {
|
|
1894
|
+
ticker: false,
|
|
1895
|
+
collapsible: false,
|
|
1896
|
+
trim: false,
|
|
1897
|
+
limitTotalLength: false,
|
|
1898
|
+
numberPartsSeparator: false
|
|
1899
|
+
});
|
|
1891
1900
|
}
|
|
1892
1901
|
|
|
1893
1902
|
/**
|
|
@@ -1934,7 +1943,7 @@ var AmountUtils = /*#__PURE__*/function () {
|
|
|
1934
1943
|
// Collapse the 1M+ amounts if applicable
|
|
1935
1944
|
processedAmount = this._collapseToMillionsAndFormat(BigNumber(processedAmount), this.collapsedDecimalCount, params);
|
|
1936
1945
|
wereMillionsCollapsed = true;
|
|
1937
|
-
} else {
|
|
1946
|
+
} else if (params.numberPartsSeparator) {
|
|
1938
1947
|
// Add separators to integer part of the amount
|
|
1939
1948
|
processedAmount = BigNumber(processedAmount).toFormat();
|
|
1940
1949
|
}
|
|
@@ -2129,7 +2138,9 @@ AmountUtils.defaultCryptoParams = {
|
|
|
2129
2138
|
// Limits the total amount length to maxTotalLength
|
|
2130
2139
|
extraSmallLength: false,
|
|
2131
2140
|
// Limits the total amount length to extraSmallMaxTotalLength
|
|
2132
|
-
periods: true
|
|
2141
|
+
periods: true,
|
|
2142
|
+
// Whether we add periods ("..") as suffix for trimmed numbers
|
|
2143
|
+
numberPartsSeparator: true // Whether we add separators e.g. for 1000000 -> 1,000,000
|
|
2133
2144
|
};
|
|
2134
2145
|
|
|
2135
2146
|
var Blockchain =
|