UNPKG

@web3sdkio/chain-icons

Version:

A quick, easy and light-weight way to add chain / network icons to your react app.

49 lines (48 loc) 3.94 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/centrality.tsx var centrality_exports = {}; __export(centrality_exports, { default: () => centrality_default }); module.exports = __toCommonJS(centrality_exports); var React = __toESM(require("react")); var Centrality = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 477 477", ...props }, /* @__PURE__ */ React.createElement("path", { fill: "#0886fb", fillRule: "evenodd", d: "M0 0h477.98v477.98H0V0z" }), /* @__PURE__ */ React.createElement("path", { fill: "#fffdfc", fillRule: "evenodd", d: "M396.14 247.6a13.29 13.29 0 0 0-1.65-7.91c-3.79-6.75-13.18-9.55-19.44-6.59a11.5 11.5 0 0 0-3.62 2.8l-64.57 57.16V359s-63.59-9.72-77.75-13.51c-18.12-4.78-31-8.24-42.83-19.27-4.12-3.79-15.81-14.66-16.47-30v-6.26l-.33-168.52L253 134.1c6.59 1.15 23.39 4.94 36.57 17a65.56 65.56 0 0 1 11 13.51c5.11 8.07 5.93 12.68 6.09 15.65v53a15.81 15.81 0 0 0 3.62 8.73 13.28 13.28 0 0 0 8.57 4.94c3.29.33 5.93-1 8.57-2.14a23.45 23.45 0 0 0 4.45-2.8l65.73-55.18V130c-.66-16.64-9.23-28.66-14.83-36.57-3.13-4.28-19.27-25.86-48.6-35.91-2.64-.82-4.78-1.48-6.26-2l-72.12-13.17A111.83 111.83 0 0 0 239 40.21c-3.29-.16-16.8-1-29.65 1.32C185.29 46 153 63.27 148.39 88.8a35 35 0 0 0-.49 4.94h-7.74a97.43 97.43 0 0 0-21.09 10.71c-6.59 4.45-19.77 13.51-29.16 31a84.12 84.12 0 0 0-9.55 37.89V333.1a82.36 82.36 0 0 0 .33 8.24s1 13.51 4.61 25c4.12 12.68 16.8 33.61 39.21 46.95 6.59 4 21.41 7.41 51.07 14.33a416.42 416.42 0 0 0 55.17 9.38c11.7 1.15 17.3 1.15 22.24.82 9.55-.49 22.57-1.32 37.06-8.24 24.87-12 36.24-33.61 39-39.21.82-1.65 1.48-3.13 2-4.12h3.29a89.54 89.54 0 0 0 42-27.67c4.28-4.94 18.78-22.73 20.26-48.27a77.26 77.26 0 0 0 0-8.73c-.49-18.29-.49-36.08-.49-54ZM186.77 86.82a76.38 76.38 0 0 1 16.14-10.71c5.44-2.64 19.44-9.22 35.42-5.44 2 .49 3.62 1 4.61 1.32L317.4 86a57.83 57.83 0 0 1 34.6 17.63c2.8 3 13.84 15.16 15.16 32.95a41.07 41.07 0 0 1 0 6.42v29.49L337 195.88v-14.67a90.3 90.3 0 0 0-1.15-9.06 77.08 77.08 0 0 0-14-31.79c-2.64-3.79-17.79-24.71-45.3-33.77-1.48-.49-2.64-.82-3.62-1.15l-87.64-15.32 1.48-3.29Zm102.3 305.74c-7.58 11.7-24.87 13.51-33.44 14.33a83.34 83.34 0 0 1-11.86.33l-90.11-15.65-2.47-1.15a47.54 47.54 0 0 1-17.63-7.42 49.11 49.11 0 0 1-14-14.83 53.57 53.57 0 0 1-7.08-16.8 55.09 55.09 0 0 1-1.32-14.5L111 171.82v-2.47c.66-17.13 13.51-30.31 23.56-38.22l4.12-2.14c.16 53.37.16 106.75.33 160.12 0 1.48-.16 3.62 0 6.26 1.15 24.54 15.65 42.17 20.1 47.28 18.29 21.41 42.17 28 57.66 32.12 9.88 2.64 74.62 13.51 74.62 13.51a29 29 0 0 1-2.31 4.28Zm78.08-85.82a53.47 53.47 0 0 1-11.7 28.5 54.23 54.23 0 0 1-16.8 13.51v-44.48c9.55-7.91 19.11-15.81 28.5-23.56.16 8.57.16 17.3 0 26Z" })); var centrality_default = Centrality; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {}); //# sourceMappingURL=centrality.js.map