@dfx.swiss/react-components 1.3.0-beta.114 → 1.3.0-beta.115
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,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,GAAG,QAAQ;IACX,IA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AAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,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;AAmE3D,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"}
|
|
@@ -26,6 +26,7 @@ export var AssetIconVariant;
|
|
|
26
26
|
AssetIconVariant["BTC"] = "BTC";
|
|
27
27
|
AssetIconVariant["WBTC"] = "WBTC";
|
|
28
28
|
AssetIconVariant["BTCB"] = "BTCB";
|
|
29
|
+
AssetIconVariant["kBTC"] = "kBTC";
|
|
29
30
|
AssetIconVariant["MATIC"] = "MATIC";
|
|
30
31
|
AssetIconVariant["POL"] = "POL";
|
|
31
32
|
AssetIconVariant["GMX"] = "GMX";
|
|
@@ -130,6 +131,10 @@ var VARIANT_MAPS = (_b = {},
|
|
|
130
131
|
var forceColor = _a.forceColor;
|
|
131
132
|
return _jsx(DfxAssetIconBTCB, { forceColor: forceColor });
|
|
132
133
|
},
|
|
134
|
+
_b[AssetIconVariant.kBTC] = function (_a) {
|
|
135
|
+
var forceColor = _a.forceColor;
|
|
136
|
+
return _jsx(DfxAssetIconKBTC, { forceColor: forceColor });
|
|
137
|
+
},
|
|
133
138
|
_b[AssetIconVariant.MATIC] = function (_a) {
|
|
134
139
|
var forceColor = _a.forceColor;
|
|
135
140
|
return _jsx(DfxAssetIconPOL, { forceColor: forceColor });
|
|
@@ -354,6 +359,11 @@ function DfxAssetIconBTCB(_a) {
|
|
|
354
359
|
var sizeContext = useContext(SizeContext);
|
|
355
360
|
return (_jsxs("svg", __assign({ width: SIZE_MAPS[sizeContext], height: SIZE_MAPS[sizeContext], viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsxs("g", __assign({ clipPath: "url(#clip0_1817_1412)" }, { children: [_jsx("circle", { cx: "12", cy: "12", r: "12", fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#333333' }), _jsxs("g", __assign({ clipPath: "url(#clip1_1817_1412)" }, { children: [_jsx("path", { d: "M7.9218 10.3242L12 6.246L16.0803 10.3263L18.4533 7.9533L12 1.5L5.5488 7.9512L7.9218 10.3242ZM1.5 12L3.873 9.627L6.246 12L3.873 14.373L1.5 12ZM7.9218 13.6758L12 17.754L16.0803 13.6737L18.4543 16.0456H18.4533L12 22.5L5.5488 16.0488L5.54565 16.0456L7.9218 13.6758ZM17.754 12.001L20.127 9.62805L22.5 12.001L20.127 14.374L17.754 12.001Z", fill: forceColor ? '#ffffff' : '#E7BB41' }), _jsx("path", { d: "M14.4063 11.9985L11.9986 9.59082L10.2189 11.3706L10.0141 11.5753L9.59202 11.9974L9.58887 12.0006L9.59202 12.0037L11.9976 14.4093L14.4052 12.0016H14.4063L14.4042 11.9995", fill: forceColor ? '#ffffff' : '#E7BB41' })] })), _jsx("mask", __assign({ id: "mask0_1817_1412", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24" }, { children: _jsx("circle", { cx: "12", cy: "12", r: "12", fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#333333' }) })), _jsxs("g", __assign({ mask: "url(#mask0_1817_1412)" }, { children: [_jsx("ellipse", { cx: "17.25", cy: "19.3496", rx: "4.5", ry: "4.5", fill: forceColor ? '#cccccc' : '#F99602' }), _jsx("path", { d: "M18.2386 17.4662L18.4636 16.6224L17.9573 16.4818L17.7604 17.2974C17.6198 17.2693 17.4792 17.2412 17.3386 17.2131L17.5355 16.3693L17.0011 16.2568L16.8042 17.1006C16.6917 17.0724 16.5792 17.0443 16.4667 17.0162L15.7636 16.8474L15.623 17.4099C15.623 17.4099 16.0168 17.4943 15.9886 17.4943C16.1855 17.5505 16.2417 17.6912 16.2417 17.8037L15.6511 20.1098C15.623 20.1661 15.5668 20.2786 15.398 20.2223L15.0324 20.138L14.7793 20.7286L15.4543 20.8973L15.8199 20.9817L15.5949 21.8254L16.1011 21.966L16.3261 21.1223C16.4667 21.1504 16.6074 21.2067 16.748 21.2348L16.5511 22.0785L17.0573 22.2191L17.2823 21.3754C18.1542 21.5442 18.8292 21.4879 19.1104 20.6723C19.3354 20.0255 19.1104 19.6598 18.6323 19.4349C18.9698 19.3505 19.2229 19.1255 19.2792 18.6755C19.3635 18.0287 18.9135 17.6912 18.2386 17.4662ZM18.0979 20.3067C17.9292 20.9536 16.8605 20.5879 16.523 20.5036L16.8042 19.3786C17.1417 19.463 18.2667 19.6317 18.0979 20.3067ZM18.2667 18.6474C18.1261 19.238 17.2261 18.9286 16.9449 18.8724L17.198 17.8318C17.4792 17.888 18.4073 18.0287 18.2667 18.6474Z", fill: "white" })] }))] })), _jsxs("defs", { children: [_jsx("clipPath", __assign({ id: "clip0_1817_1412" }, { children: _jsx("rect", { width: "24", height: "24", fill: "white" }) })), _jsx("clipPath", __assign({ id: "clip1_1817_1412" }, { children: _jsx("rect", { width: "21", height: "21", fill: "white", transform: "translate(1.5 1.5)" }) }))] })] })));
|
|
356
361
|
}
|
|
362
|
+
function DfxAssetIconKBTC(_a) {
|
|
363
|
+
var forceColor = _a.forceColor;
|
|
364
|
+
var sizeContext = useContext(SizeContext);
|
|
365
|
+
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("circle", { cx: "16", cy: "16", r: "16", fill: forceColor !== null && forceColor !== void 0 ? forceColor : '#7132F5' }), _jsx("path", { d: "M19.5141 9.30328L20.3141 6.30338L18.5141 5.80339L17.8142 8.7033C17.3142 8.6033 16.8142 8.5033 16.3142 8.40331L17.0142 5.40341L15.1143 5.00342L14.4143 8.00332C14.0143 7.90332 13.6143 7.80333 13.2143 7.70333L10.7144 7.10335L10.2144 9.10328C10.2144 9.10328 11.6144 9.40327 11.5144 9.40327C12.2144 9.60327 12.4143 10.1033 12.4143 10.5032L10.3144 18.703C10.2144 18.903 10.0144 19.303 9.41444 19.103L8.11449 18.803L7.21452 20.9029L9.61444 21.5029L10.9144 21.8029L10.1144 24.8028L11.9144 25.3028L12.7143 22.3029C13.2143 22.4029 13.7143 22.6028 14.2143 22.7028L13.5143 25.7027L15.3143 26.2027L16.1142 23.2028C19.2141 23.8028 21.614 23.6028 22.614 20.7029C23.414 18.403 22.614 17.103 20.9141 16.303C22.114 16.0031 23.014 15.2031 23.214 13.6031C23.514 11.3032 21.914 10.1033 19.5141 9.30328ZM19.0141 19.4029C18.4142 21.7029 14.6143 20.4029 13.4143 20.1029L14.4143 16.1031C15.6142 16.403 19.6141 17.003 19.0141 19.4029ZM19.6141 13.5031C19.1141 15.6031 15.9142 14.5031 14.9143 14.3031L15.8142 10.6032C16.8142 10.8032 20.1141 11.3032 19.6141 13.5031Z", fill: "white" })] })));
|
|
366
|
+
}
|
|
357
367
|
function DfxAssetIconWBTC(_a) {
|
|
358
368
|
var forceColor = _a.forceColor;
|
|
359
369
|
var sizeContext = useContext(SizeContext);
|