@stokr/components-library 3.0.72-beta.7 → 3.0.72
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/components/Payment/PaymentSuccessCard.js +1 -0
- package/dist/index.js +2 -1
- package/dist/static/images/currency/eur.svg +3 -2
- package/dist/static/images/currency/eur.svg.js +4 -0
- package/dist/static/images/currency/usd.svg +4 -0
- package/dist/static/images/currency/usd.svg.js +4 -0
- package/dist/utils/formatCurrencyValue.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -131,7 +131,7 @@ import { generateCoreChecklistTasks, getVerifyIdentityChecklist } from "./utils/
|
|
|
131
131
|
import { CopyToClipBoardTooltip, copyTextToClipboard, useCopyToClipboard, withCopyToClipboard } from "./utils/copyToClipboard.js";
|
|
132
132
|
import { cooldownHOC, useComponentVisible, useContainerSize, useCooldown, useMobileView, usePrevious } from "./utils/customHooks.js";
|
|
133
133
|
import { fixDecimals, formatDisplayNumber } from "./utils/fix-decimals.js";
|
|
134
|
-
import { CURRENCY_CONFIG, formatCurrencyValue, getCurrencyConfig, getCurrencyIcon, getCurrencySymbol, getLiquidAssetIcon, getProjectCurrencySign } from "./utils/formatCurrencyValue.js";
|
|
134
|
+
import { CURRENCY_CONFIG, formatAmountForDisplay, formatCurrencyValue, getCurrencyConfig, getCurrencyIcon, getCurrencySymbol, getLiquidAssetIcon, getProjectCurrencySign } from "./utils/formatCurrencyValue.js";
|
|
135
135
|
import { isUSInvestor, usCountries } from "./utils/isUSInvestor.js";
|
|
136
136
|
import { ENTROPY_MEDIUM, ENTROPY_WEAK, PASSWORD_MIN_LENGTH, PASSWORD_REQUIREMENTS_MESSAGE, getPasswordCriteria, getPasswordEntropy, isPasswordValid } from "./utils/password-validation.js";
|
|
137
137
|
import { km_ify } from "./utils/km_ify.js";
|
|
@@ -614,6 +614,7 @@ export {
|
|
|
614
614
|
flatten,
|
|
615
615
|
default2 as fontFaces,
|
|
616
616
|
format,
|
|
617
|
+
formatAmountForDisplay,
|
|
617
618
|
formatCurrencyValue,
|
|
618
619
|
formatDisplayNumber,
|
|
619
620
|
generateCoreChecklistTasks,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
<
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
|
2
|
+
<circle cx="16" cy="16" r="16" fill="#202020"/>
|
|
3
|
+
<text x="16" y="21.5" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="700" fill="#ffffff">€</text>
|
|
3
4
|
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const EURLogo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KICA8Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzIwMjAyMCIvPgogIDx0ZXh0IHg9IjE2IiB5PSIyMS41IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmb250LWZhbWlseT0iQXJpYWwsIEhlbHZldGljYSwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNiIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iI2ZmZmZmZiI+JiM4MzY0OzwvdGV4dD4KPC9zdmc+Cg==";
|
|
2
|
+
export {
|
|
3
|
+
EURLogo as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
|
2
|
+
<circle cx="16" cy="16" r="16" fill="#202020"/>
|
|
3
|
+
<text x="16" y="22" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="17" font-weight="700" fill="#ffffff">$</text>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const USDLogo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIj4KICA8Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSIxNiIgZmlsbD0iIzIwMjAyMCIvPgogIDx0ZXh0IHg9IjE2IiB5PSIyMiIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZm9udC1mYW1pbHk9IkFyaWFsLCBIZWx2ZXRpY2EsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTciIGZvbnQtd2VpZ2h0PSI3MDAiIGZpbGw9IiNmZmZmZmYiPiQ8L3RleHQ+Cjwvc3ZnPgo=";
|
|
2
|
+
export {
|
|
3
|
+
USDLogo as default
|
|
4
|
+
};
|
|
@@ -4,6 +4,8 @@ import BitcoinLogo from "../static/images/currency/bitcoin-logo.png.js";
|
|
|
4
4
|
import BMN2Logo from "../static/images/currency/bmn2-logo.png.js";
|
|
5
5
|
import ETHLogo from "../static/images/currency/eth_logo.svg.js";
|
|
6
6
|
import USDTLogo from "../static/images/currency/usdt-logo.png.js";
|
|
7
|
+
import USDLogo from "../static/images/currency/usd.svg.js";
|
|
8
|
+
import EURLogo from "../static/images/currency/eur.svg.js";
|
|
7
9
|
import { formatDisplayNumber } from "./fix-decimals.js";
|
|
8
10
|
const CURRENCY_CONFIG = {
|
|
9
11
|
tether: ["USDT", 2],
|
|
@@ -88,6 +90,12 @@ const getCurrencyIcon = (currency, customIcon) => {
|
|
|
88
90
|
case "eth":
|
|
89
91
|
case "eth-fb":
|
|
90
92
|
return ETHLogo;
|
|
93
|
+
case "usd":
|
|
94
|
+
case "usd-in-kind":
|
|
95
|
+
return USDLogo;
|
|
96
|
+
case "euro":
|
|
97
|
+
case "eur":
|
|
98
|
+
return EURLogo;
|
|
91
99
|
default:
|
|
92
100
|
return null;
|
|
93
101
|
}
|