@dfx.swiss/react-components 1.3.0-beta.155 → 1.3.0-beta.157
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DfxAssetIcon.d.ts","sourceRoot":"","sources":["../../src/stories/DfxAssetIcon.tsx"],"names":[],"mappings":";AAEA,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,WAAW;IAChB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,UAAU;IACd,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAA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IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,iBAAiB;IAC9B,YAAY,gBAAgB;IAC5B,GAAG,QAAQ;IACX,IAAI,SAAS;IAEb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,oBAAY,aAAa;IACvB,EAAE,UAAU;IACZ,EAAE,WAAW;IACb,EAAE,UAAU;CACb;AAED,eAAO,MAAM,WAAW,wCAAkC,CAAC;AA0E3D,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,IAAuB,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAOnG;AAED,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAwyGD,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,EAAE,kBAAkB,2CA42BlE"}
|
|
@@ -71,6 +71,7 @@ export var AssetIconVariant;
|
|
|
71
71
|
AssetIconVariant["dEURO_PRESALE"] = "dEUROPresale";
|
|
72
72
|
AssetIconVariant["DEPS_PRESALE"] = "DEPSPresale";
|
|
73
73
|
AssetIconVariant["SOL"] = "SOL";
|
|
74
|
+
AssetIconVariant["xDAI"] = "xDAI";
|
|
74
75
|
AssetIconVariant["EUR"] = "EUR";
|
|
75
76
|
AssetIconVariant["USD"] = "USD";
|
|
76
77
|
AssetIconVariant["CHF"] = "CHF";
|
|
@@ -317,6 +318,10 @@ var VARIANT_MAPS = (_b = {},
|
|
|
317
318
|
var forceColor = _a.forceColor;
|
|
318
319
|
return _jsx(DfxAssetIconSOL, { forceColor: forceColor });
|
|
319
320
|
},
|
|
321
|
+
_b[AssetIconVariant.xDAI] = function (_a) {
|
|
322
|
+
var forceColor = _a.forceColor;
|
|
323
|
+
return _jsx(DfxAssetIconXDAI, { forceColor: forceColor });
|
|
324
|
+
},
|
|
320
325
|
_b[AssetIconVariant.EUR] = function (_a) {
|
|
321
326
|
var forceColor = _a.forceColor;
|
|
322
327
|
return _jsx(DfxAssetIconEUR, { forceColor: forceColor });
|
|
@@ -680,6 +685,11 @@ function DfxAssetIconSOL(_a) {
|
|
|
680
685
|
var sizeContext = useContext(SizeContext);
|
|
681
686
|
return (_jsxs("svg", __assign({ width: SIZE_MAPS[sizeContext], height: SIZE_MAPS[sizeContext], viewBox: "0 0 397.7 311.7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsxs("linearGradient", __assign({ id: "sol_a", x1: 360.879, x2: 141.213, y1: 351.455, y2: -69.294, gradientTransform: "matrix(1 0 0 -1 0 314)", gradientUnits: "userSpaceOnUse" }, { children: [_jsx("stop", { offset: 0, style: { stopColor: '#00ffa3' } }), _jsx("stop", { offset: 1, style: { stopColor: '#dc1fff' } })] })), _jsx("path", { d: "M64.6 237.9c2.4-2.4 5.7-3.8 9.2-3.8h317.4c5.8 0 8.7 7 4.6 11.1l-62.7 62.7c-2.4 2.4-5.7 3.8-9.2 3.8H6.5c-5.8 0-8.7-7-4.6-11.1l62.7-62.7z", style: { fill: forceColor !== null && forceColor !== void 0 ? forceColor : 'url(#sol_a)' } }), _jsxs("linearGradient", __assign({ id: "sol_b", x1: 264.829, x2: 45.163, y1: 401.601, y2: -19.148, gradientTransform: "matrix(1 0 0 -1 0 314)", gradientUnits: "userSpaceOnUse" }, { children: [_jsx("stop", { offset: 0, style: { stopColor: '#00ffa3' } }), _jsx("stop", { offset: 1, style: { stopColor: '#dc1fff' } })] })), _jsx("path", { d: "M64.6 3.8C67.1 1.4 70.4 0 73.8 0h317.4c5.8 0 8.7 7 4.6 11.1l-62.7 62.7c-2.4 2.4-5.7 3.8-9.2 3.8H6.5c-5.8 0-8.7-7-4.6-11.1L64.6 3.8z", style: { fill: forceColor !== null && forceColor !== void 0 ? forceColor : 'url(#sol_b)' } }), _jsxs("linearGradient", __assign({ id: "sol_c", x1: 312.548, x2: 92.882, y1: 376.688, y2: -44.061, gradientTransform: "matrix(1 0 0 -1 0 314)", gradientUnits: "userSpaceOnUse" }, { children: [_jsx("stop", { offset: 0, style: { stopColor: '#00ffa3' } }), _jsx("stop", { offset: 1, style: { stopColor: '#dc1fff' } })] })), _jsx("path", { d: "M333.1 120.1c-2.4-2.4-5.7-3.8-9.2-3.8H6.5c-5.8 0-8.7 7-4.6 11.1l62.7 62.7c2.4 2.4 5.7 3.8 9.2 3.8h317.4c5.8 0 8.7-7 4.6-11.1l-62.7-62.7z", style: { fill: forceColor !== null && forceColor !== void 0 ? forceColor : 'url(#sol_c)' } })] })));
|
|
682
687
|
}
|
|
688
|
+
function DfxAssetIconXDAI(_a) {
|
|
689
|
+
var forceColor = _a.forceColor;
|
|
690
|
+
var sizeContext = useContext(SizeContext);
|
|
691
|
+
return (_jsxs("svg", __assign({ width: SIZE_MAPS[sizeContext], height: SIZE_MAPS[sizeContext], viewBox: "60 60 260 260", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#09E23A', d: "M129 87c6.96 5.588 13.2 12.088 19.454 18.44 1.486 1.508 2.976 3.012 4.467 4.514a5312.89 5312.89 0 0 1 12.673 12.812c2.599 2.636 5.205 5.265 7.816 7.89.987.995 1.972 1.993 2.954 2.994a765.055 765.055 0 0 0 4.118 4.157l2.358 2.387c2.735 2.381 2.735 2.381 6.16 2.806 1.98-1.524 3.548-2.967 5.252-4.764l1.55-1.571a492.835 492.835 0 0 0 3.316-3.407 679.63 679.63 0 0 1 5.277-5.397c4.39-4.459 8.755-8.943 13.12-13.427 3.68-3.78 7.37-7.548 11.074-11.303a812.575 812.575 0 0 0 5.147-5.306c6.81-6.968 13.27-12.869 23.205-14.454 11.194.205 18.12 2.163 26.336 9.84 5.859 6.084 7.78 12.298 8.098 20.602-.218 10.254-4.28 17.062-11.375 24.187l-2.056 2.07c-3.116 3.116-6.276 6.187-9.431 9.263-3.51 3.43-7.004 6.876-10.498 10.322a1327.982 1327.982 0 0 1-5.552 5.429 1286.434 1286.434 0 0 0-8.01 7.877l-2.522 2.428c-3.41 3.408-5.644 5.725-7.147 10.363.383 5.756 3.775 9.05 7.776 12.94l2.792 2.733 1.486 1.441a928.078 928.078 0 0 1 4.63 4.535c4.376 4.309 8.759 8.61 13.164 12.888 2.7 2.625 5.386 5.265 8.063 7.915 1.014.997 2.033 1.99 3.058 2.976 7.583 7.3 13.974 14.945 15.938 25.554-.453 10.597-2.817 18.943-10.878 26.391-8.385 6.722-16.164 7.86-26.813 6.875-11.394-1.8-20.263-14.125-27.953-21.89l-4.144-4.161c-2.386-2.398-4.77-4.798-7.153-7.199-3.773-3.8-7.55-7.596-11.328-11.39l-2.595-2.62c-4.124-4.141-8.25-8.105-12.827-11.74-3.826 1.574-6.195 3.984-9.069 6.921l-1.49 1.514a1173.042 1173.042 0 0 0-3.188 3.254 1247.79 1247.79 0 0 1-5.076 5.159c-4.82 4.878-9.63 9.765-14.426 14.668a1855.292 1855.292 0 0 1-8.845 8.974 559.1 559.1 0 0 0-3.34 3.412c-7.16 7.372-13.93 13.888-24.402 15.797-9.996-.033-17.73-1.904-25.355-8.633-5.71-6.115-8.602-12.831-8.934-21.23l.125-3.461.063-3.414c2.028-12.374 14.384-21.905 22.874-30.211 1.347-1.335 2.693-2.671 4.038-4.008 11.342-11.236 11.342-11.236 17.432-16.375 8.286-6.965 8.286-6.965 11.936-16.7-.424-4.53-1.536-5.7-4.762-8.833l-1.424-1.412c-1.55-1.531-3.125-3.036-4.7-4.543a1416.156 1416.156 0 0 1-3.26-3.208 1355.17 1355.17 0 0 0-8.62-8.4 2598.844 2598.844 0 0 1-13.746-13.428 862.646 862.646 0 0 0-4.794-4.645c-8.83-8.58-14.793-16.178-15.537-28.886.173-8.14 3.295-14.647 8.621-20.738C102.075 83.138 116.486 80.258 129 87Z" }), _jsx("path", { fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#0CB40A', d: "M212 169c4.782 4 9.328 8.164 13.758 12.55l1.925 1.894c2.079 2.05 4.154 4.103 6.227 6.158l2.165 2.144a9316.21 9316.21 0 0 1 11.322 11.246 2535.04 2535.04 0 0 0 9.337 9.234c3.788 3.728 7.562 7.471 11.325 11.225a816.7 816.7 0 0 0 4.298 4.24c17.053 16.722 17.053 16.722 19.334 29.043-.453 10.597-2.817 18.943-10.878 26.391-8.385 6.722-16.164 7.86-26.813 6.875-11.394-1.8-20.263-14.125-27.953-21.89l-4.144-4.161c-2.386-2.398-4.77-4.798-7.153-7.199-3.773-3.8-7.55-7.596-11.328-11.39l-2.595-2.62c-4.124-4.141-8.25-8.105-12.827-11.74 1.51-3.584 3.596-5.777 6.395-8.45l2.646-2.571c1.832-1.763 3.668-3.52 5.508-5.274 8.194-7.989 14.32-16.249 14.826-28.018-.085-5.677-1.8-9.724-4.375-14.687l-1-3Z" }), _jsx("path", { fill: forceColor ? '#fff' : '#04795A', d: "M272.938 85.563c7.843 4.188 13.993 10.265 17.312 18.562 1.787 9.233 1.521 17.602-3.25 25.875-2.139 2.884-4.469 5.458-7 8l-2.056 2.07c-3.116 3.116-6.276 6.187-9.431 9.263-3.51 3.43-7.004 6.876-10.498 10.322a1327.982 1327.982 0 0 1-5.552 5.429 1286.434 1286.434 0 0 0-8.01 7.877l-2.522 2.428c-4.507 4.504-6.859 7.151-6.931 13.611l-1 2-47-47 1.366-1.144c5.648-4.828 10.871-10.026 16.064-15.333 2.068-2.111 4.147-4.212 6.225-6.315a3094.65 3094.65 0 0 0 11.522-11.708c2.683-2.742 5.378-5.471 8.081-8.193a474.742 474.742 0 0 0 3.04-3.103c11.014-11.337 23.417-19.097 39.64-12.641Z" }), _jsx("path", { fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#09E13A', d: "M277 88c7.177 5.312 12.26 11.01 14 20 .951 10.188-.712 18.256-7.188 26.313-5.185 5.52-11.65 9.177-19.222 9.925-9.045.253-16.786-1.665-23.965-7.363-5.593-5.318-9.206-12.686-9.828-20.39-.153-8.925 1.616-15.389 7.203-22.485 10.448-10.63 25.656-14.922 39-6Z" })] })));
|
|
692
|
+
}
|
|
683
693
|
function DfxAssetIconEUR(_a) {
|
|
684
694
|
var forceColor = _a.forceColor;
|
|
685
695
|
var sizeContext = useContext(SizeContext);
|