@razorpay/blade 8.9.0 → 8.9.1
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/build/components/index.native.js +1 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/index.web.js +5 -2
- package/build/components/index.web.js.map +1 -1
- package/build/css/bankingThemeDarkDesktop.css +1 -1
- package/build/css/bankingThemeDarkMobile.css +1 -1
- package/build/css/bankingThemeLightDesktop.css +1 -1
- package/build/css/bankingThemeLightMobile.css +1 -1
- package/build/css/paymentThemeDarkDesktop.css +1 -1
- package/build/css/paymentThemeDarkMobile.css +1 -1
- package/build/css/paymentThemeLightDesktop.css +1 -1
- package/build/css/paymentThemeLightMobile.css +1 -1
- package/package.json +1 -1
|
@@ -27000,8 +27000,11 @@ var getFlooredFixed = function getFlooredFixed(value, decimalPlaces) {
|
|
|
27000
27000
|
return Number(roundedValue.toFixed(decimalPlaces));
|
|
27001
27001
|
};
|
|
27002
27002
|
var addCommas = function addCommas(amountValue, currency) {
|
|
27003
|
+
var decimalPlaces = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
27003
27004
|
var locale = currencyLocaleMapping[currency];
|
|
27004
|
-
return amountValue.toLocaleString(locale
|
|
27005
|
+
return amountValue.toLocaleString(locale, {
|
|
27006
|
+
minimumFractionDigits: decimalPlaces
|
|
27007
|
+
});
|
|
27005
27008
|
};
|
|
27006
27009
|
/**
|
|
27007
27010
|
* This function returns the humanized amount
|
|
@@ -27032,7 +27035,7 @@ var formatAmountWithSuffix = function formatAmountWithSuffix(_ref3) {
|
|
|
27032
27035
|
case 'decimals':
|
|
27033
27036
|
{
|
|
27034
27037
|
var decimalNumber = getFlooredFixed(value, 2);
|
|
27035
|
-
return addCommas(decimalNumber, currency);
|
|
27038
|
+
return addCommas(decimalNumber, currency, 2);
|
|
27036
27039
|
}
|
|
27037
27040
|
|
|
27038
27041
|
case 'humanize':
|