@dfx.swiss/react-components 1.2.0-beta.40 → 1.2.0-beta.42
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/stories/DfxAssetIcon.d.ts +1 -0
- package/dist/stories/DfxAssetIcon.d.ts.map +1 -1
- package/dist/stories/DfxAssetIcon.js +10 -0
- package/dist/stories/DfxAssetIcon.js.map +1 -1
- package/dist/stories/DfxIcon.d.ts +2 -1
- package/dist/stories/DfxIcon.d.ts.map +1 -1
- package/dist/stories/DfxIcon.js +3 -1
- package/dist/stories/DfxIcon.js.map +1 -1
- package/package.json +2 -2
|
@@ -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,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,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,SAA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;AAED,oBAAY,aAAa;IACvB,EAAE,UAAU;IACZ,EAAE,WAAW;IACb,EAAE,UAAU;CACb;AAED,eAAO,MAAM,WAAW,wCAAkC,CAAC;AA0D3D,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;AAqxGD,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,EAAE,kBAAkB,2CAw5BlE"}
|
|
@@ -55,6 +55,7 @@ export var AssetIconVariant;
|
|
|
55
55
|
AssetIconVariant["ZCHF"] = "ZCHF";
|
|
56
56
|
AssetIconVariant["FPS"] = "FPS";
|
|
57
57
|
AssetIconVariant["YLD"] = "YLD";
|
|
58
|
+
AssetIconVariant["ISLM"] = "ISLM";
|
|
58
59
|
AssetIconVariant["EUR"] = "EUR";
|
|
59
60
|
AssetIconVariant["USD"] = "USD";
|
|
60
61
|
AssetIconVariant["CHF"] = "CHF";
|
|
@@ -237,6 +238,10 @@ var VARIANT_MAPS = (_b = {},
|
|
|
237
238
|
var forceColor = _a.forceColor;
|
|
238
239
|
return _jsx(DfxAssetIconYLD, { forceColor: forceColor });
|
|
239
240
|
},
|
|
241
|
+
_b[AssetIconVariant.ISLM] = function (_a) {
|
|
242
|
+
var forceColor = _a.forceColor;
|
|
243
|
+
return _jsx(DfxAssetIconISLM, { forceColor: forceColor });
|
|
244
|
+
},
|
|
240
245
|
_b[AssetIconVariant.EUR] = function (_a) {
|
|
241
246
|
var forceColor = _a.forceColor;
|
|
242
247
|
return _jsx(DfxAssetIconEUR, { forceColor: forceColor });
|
|
@@ -572,6 +577,11 @@ function DfxAssetIconYLD(_a) {
|
|
|
572
577
|
var sizeContext = useContext(SizeContext);
|
|
573
578
|
return (_jsxs("svg", __assign({ width: SIZE_MAPS[sizeContext], height: SIZE_MAPS[sizeContext], viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("g", __assign({ clipPath: "url(#yld-a)" }, { children: _jsxs("g", __assign({ clipPath: "url(#yld-b)" }, { children: [_jsx("path", { fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#104499', d: "M32 16c0 8.838-7.163 16-16 16S0 24.836 0 16 7.163 0 16 0s16 7.164 16 16" }), _jsx("path", { fill: "#fff", fillRule: "evenodd", d: "m20.716 10.531-6.74 5.99a4.6 4.6 0 0 1-2.717.875 4.642 4.642 0 0 1 0-9.284c2.31 0 3.486 1.307 4.064 2.386l-1.85 1.52c-.467-1.088-1.135-1.584-2.214-1.584a2.322 2.322 0 0 0 0 4.644c.541 0 1.176-.305 1.57-.617l6.144-5.518c1.88-1.483 3.626-1.247 4.695-.843l-2.255 1.86c-.222.17-.452.355-.697.571M11.192 21.47l6.74-5.99a4.6 4.6 0 0 1 2.716-.875 4.642 4.642 0 0 1 0 9.284c-2.311 0-3.487-1.307-4.064-2.385l1.85-1.521c.466 1.088 1.135 1.584 2.214 1.584a2.322 2.322 0 0 0 0-4.644c-.542 0-1.176.305-1.57.617l-6.142 5.518c-1.881 1.483-3.626 1.247-4.695.843l2.255-1.86c.222-.17.452-.355.696-.571", clipRule: "evenodd" })] })) })), _jsxs("defs", { children: [_jsx("clipPath", __assign({ id: "yld-a" }, { children: _jsx("path", { fill: "#fff", d: "M0 0h137v32H0z" }) })), _jsx("clipPath", __assign({ id: "yld-b" }, { children: _jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }) }))] })] })));
|
|
574
579
|
}
|
|
580
|
+
function DfxAssetIconISLM(_a) {
|
|
581
|
+
var forceColor = _a.forceColor;
|
|
582
|
+
var sizeContext = useContext(SizeContext);
|
|
583
|
+
return (_jsxs("svg", __assign({ width: SIZE_MAPS[sizeContext], height: SIZE_MAPS[sizeContext], viewBox: "0 0 256 256", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("g", __assign({ clipPath: "url(#islm-a)" }, { children: _jsx("path", { fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#04D484', fillRule: "evenodd", d: "M127.999 0c35.346 0 67.348 14.328 90.511 37.49 22.888 22.889 37.147 54.407 37.482 89.251v.073l.004.475.004.705-.008 1.179v.078c-.335 34.843-14.594 66.358-37.482 89.247-23.163 23.162-55.162 37.489-90.511 37.489-35.344 0-67.345-14.327-90.508-37.489C14.328 195.335 0 163.333 0 127.989c0-35.343 14.328-67.34 37.49-90.503C60.655 14.324 92.656 0 128 0Zm73.569 73.563c4.852 0 9.56.64 14.042 1.828-13.201-12.81-31.201-20.698-51.049-20.698-20.244 0-38.571 8.203-51.831 21.467-13.265 13.264-21.468 31.591-21.468 51.834 0 20.243 8.203 38.569 21.468 51.829 13.265 13.265 31.591 21.468 51.831 21.468 19.848 0 37.852-7.889 51.049-20.699a54.517 54.517 0 0 1-14.039 1.829c-15.028 0-28.638-6.093-38.485-15.943-9.85-9.85-15.942-23.46-15.942-38.489 0-15.027 6.092-28.638 15.942-38.488 9.843-9.842 23.449-15.939 38.482-15.939Zm25.659 28.771c-6.568-6.564-15.64-10.627-25.663-10.627s-19.095 4.063-25.663 10.627c-6.568 6.568-10.628 15.641-10.628 25.664 0 10.023 4.063 19.095 10.628 25.663 6.568 6.564 15.64 10.626 25.663 10.626s19.095-4.062 25.663-10.626c6.564-6.568 10.628-15.64 10.628-25.663l-.005-.467c-.12-9.843-4.16-18.733-10.623-25.197Zm-62.67-65.782c11.399 0 22.309 2.086 32.376 5.9-18.85-15.206-42.83-24.311-68.934-24.311-30.334 0-57.802 12.298-77.683 32.175-19.877 19.876-32.175 47.343-32.175 77.678 0 30.338 12.295 57.801 32.175 77.682 19.881 19.877 47.345 32.175 77.683 32.175 26.108 0 50.084-9.105 68.934-24.315-10.067 3.814-20.977 5.9-32.376 5.9-25.25 0-48.115-10.237-64.657-26.783-16.546-16.547-26.783-39.407-26.783-64.655 0-25.249 10.237-48.113 26.782-64.66 16.543-16.55 39.408-26.786 64.658-26.786Z", clipRule: "evenodd" }) })), _jsx("defs", { children: _jsx("clipPath", __assign({ id: "islm-a" }, { children: _jsx("path", { fill: "#fff", d: "M0 0h256v256H0z" }) })) })] })));
|
|
584
|
+
}
|
|
575
585
|
function DfxAssetIconEUR(_a) {
|
|
576
586
|
var forceColor = _a.forceColor;
|
|
577
587
|
var sizeContext = useContext(SizeContext);
|