Skip to content

Commit

Permalink
added iota token icon
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfantaholic committed Jul 3, 2024
1 parent 438f22d commit 2f6f1d2
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@real-wagmi/uikit",
"version": "1.3.13",
"version": "1.3.14",
"description": "",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down
86 changes: 86 additions & 0 deletions src/components/Svg/Tokens/components/Iota.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import { FC, ReactElement, PropsWithChildren, memo } from "react";
import Svg from "../../Svg";
import { SvgProps } from "../../types";
import { v4 as uuid } from "uuid";

const Token: FC<PropsWithChildren<SvgProps>> = (props): ReactElement => {
const id = uuid();
const id1 = uuid();
return (
<Svg viewBox="0 0 32 32" {...props} fill="none" stroke="none">
<g clipPath={`url(#${id})`}>
<path d="M31.5212 19.8707C29.3841 28.4422 20.7016 33.6587 12.1281 31.5212C3.55818 29.3843 -1.65886 20.7022 0.47923 12.1314C2.61545 3.55895 11.298 -1.6579 19.8688 0.479019C28.4417 2.61593 33.6584 11.299 31.521 19.8709L31.5212 19.8707H31.5212Z" fill={`url(#${id1})`}/>
<path d="M31.0359 19.7499L31.0171 19.8251C28.9148 28.0838 20.5295 33.1005 12.249 31.0361C3.94707 28.966 -1.10688 20.5552 0.964363 12.2524L0.964393 12.2523C3.03383 3.94784 11.445 -1.10594 19.7479 0.964167L19.7479 0.964174C28.0528 3.03429 33.1065 11.4459 31.0359 19.7499Z" stroke="white" strokeOpacity="0.2"/>
<path d="M20.9923 7.79015C21.7094 7.79015 22.2907 7.21032 22.2907 6.49508C22.2907 5.77983 21.7094 5.20001 20.9923 5.20001C20.2752 5.20001 19.6938 5.77983 19.6938 6.49508C19.6938 7.21032 20.2752 7.79015 20.9923 7.79015Z" fill="white"/>
<path d="M22.4528 26.0832C23.1698 26.0832 23.7512 25.5034 23.7512 24.7882C23.7512 24.0729 23.1698 23.4931 22.4528 23.4931C21.7356 23.4931 21.1543 24.0729 21.1543 24.7882C21.1543 25.5034 21.7356 26.0832 22.4528 26.0832Z" fill="white"/>
<path d="M21.3636 11.0279C21.9655 11.0279 22.4534 10.5413 22.4534 9.94096C22.4534 9.34066 21.9655 8.85406 21.3636 8.85406C20.7618 8.85406 20.2739 9.34066 20.2739 9.94096C20.2739 10.5413 20.7618 11.0279 21.3636 11.0279Z" fill="white"/>
<path d="M24.2616 11.4441C24.8635 11.4441 25.3514 10.9574 25.3514 10.3571C25.3514 9.75686 24.8635 9.2702 24.2616 9.2702C23.6598 9.2702 23.1719 9.75686 23.1719 10.3571C23.1719 10.9574 23.6598 11.4441 24.2616 11.4441Z" fill="white"/>
<path d="M20.9928 13.7799C21.5051 13.7799 21.9203 13.3657 21.9203 12.8549C21.9203 12.344 21.5051 11.9298 20.9928 11.9298C20.4807 11.9298 20.0654 12.344 20.0654 12.8549C20.0654 13.3657 20.4807 13.7799 20.9928 13.7799Z" fill="white"/>
<path d="M23.8909 14.1732C24.403 14.1732 24.8183 13.7591 24.8183 13.2482C24.8183 12.7373 24.403 12.3231 23.8909 12.3231C23.3786 12.3231 22.9634 12.7373 22.9634 13.2482C22.9634 13.7591 23.3786 14.1732 23.8909 14.1732Z" fill="white"/>
<path d="M26.2092 15.075C26.7214 15.075 27.1366 14.6608 27.1366 14.1499C27.1366 13.639 26.7214 13.2249 26.2092 13.2249C25.6969 13.2249 25.2817 13.639 25.2817 14.1499C25.2817 14.6608 25.6969 15.075 26.2092 15.075Z" fill="white"/>
<path d="M23.0332 16.3932C23.4813 16.3932 23.8447 16.0308 23.8447 15.5838C23.8447 15.1368 23.4813 14.7744 23.0332 14.7744C22.585 14.7744 22.2217 15.1368 22.2217 15.5838C22.2217 16.0308 22.585 16.3932 23.0332 16.3932Z" fill="white"/>
<path d="M20.1347 15.9998C20.5829 15.9998 20.9462 15.6374 20.9462 15.1903C20.9462 14.7433 20.5829 14.3809 20.1347 14.3809C19.6865 14.3809 19.3232 14.7433 19.3232 15.1903C19.3232 15.6374 19.6865 15.9998 20.1347 15.9998Z" fill="white"/>
<path d="M25.3745 17.295C25.8227 17.295 26.186 16.9326 26.186 16.4855C26.186 16.0385 25.8227 15.6761 25.3745 15.6761C24.9263 15.6761 24.563 16.0385 24.563 16.4855C24.563 16.9326 24.9263 17.295 25.3745 17.295Z" fill="white"/>
<path d="M21.8733 18.0812C22.2575 18.0812 22.5689 17.7705 22.5689 17.3874C22.5689 17.0042 22.2575 16.6936 21.8733 16.6936C21.4892 16.6936 21.1777 17.0042 21.1777 17.3874C21.1777 17.7705 21.4892 18.0812 21.8733 18.0812Z" fill="white"/>
<path d="M24.2156 18.9601C24.5997 18.9601 24.9112 18.6495 24.9112 18.2664C24.9112 17.8831 24.5997 17.5725 24.2156 17.5725C23.8314 17.5725 23.52 17.8831 23.52 18.2664C23.52 18.6495 23.8314 18.9601 24.2156 18.9601Z" fill="white"/>
<path d="M18.9983 17.6648C19.3825 17.6648 19.6939 17.3542 19.6939 16.9711C19.6939 16.5879 19.3825 16.2773 18.9983 16.2773C18.6142 16.2773 18.3027 16.5879 18.3027 16.9711C18.3027 17.3542 18.6142 17.6648 18.9983 17.6648Z" fill="white"/>
<path d="M20.5982 19.2145C20.9183 19.2145 21.1779 18.9557 21.1779 18.6364C21.1779 18.3171 20.9183 18.0582 20.5982 18.0582C20.2781 18.0582 20.0186 18.3171 20.0186 18.6364C20.0186 18.9557 20.2781 19.2145 20.5982 19.2145Z" fill="white"/>
<path d="M21.595 20.8102C21.8768 20.8102 22.1051 20.5824 22.1051 20.3014C22.1051 20.0204 21.8768 19.7926 21.595 19.7926C21.3133 19.7926 21.085 20.0204 21.085 20.3014C21.085 20.5824 21.3133 20.8102 21.595 20.8102Z" fill="white"/>
<path d="M20.3666 21.1342C20.5971 21.1342 20.7839 20.9478 20.7839 20.7179C20.7839 20.4881 20.5971 20.3016 20.3666 20.3016C20.1361 20.3016 19.9492 20.4881 19.9492 20.7179C19.9492 20.9478 20.1361 21.1342 20.3666 21.1342Z" fill="white"/>
<path d="M19.2767 19.9315C19.5584 19.9315 19.7868 19.7037 19.7868 19.4227C19.7868 19.1417 19.5584 18.9139 19.2767 18.9139C18.995 18.9139 18.7666 19.1417 18.7666 19.4227C18.7666 19.7037 18.995 19.9315 19.2767 19.9315Z" fill="white"/>
<path d="M17.6998 18.8215C18.0199 18.8215 18.2794 18.5627 18.2794 18.2434C18.2794 17.9241 18.0199 17.6652 17.6998 17.6652C17.3797 17.6652 17.1201 17.9241 17.1201 18.2434C17.1201 18.5627 17.3797 18.8215 17.6998 18.8215Z" fill="white"/>
<path d="M17.6763 14.4735C17.9964 14.4735 18.256 14.2146 18.256 13.8953C18.256 13.576 17.9964 13.3171 17.6763 13.3171C17.3562 13.3171 17.0967 13.576 17.0967 13.8953C17.0967 14.2146 17.3562 14.4735 17.6763 14.4735Z" fill="white"/>
<path d="M17.9315 12.4384C18.2132 12.4384 18.4416 12.2106 18.4416 11.9296C18.4416 11.6487 18.2132 11.4209 17.9315 11.4209C17.6498 11.4209 17.4214 11.6487 17.4214 11.9296C17.4214 12.2106 17.6498 12.4384 17.9315 12.4384Z" fill="white"/>
<path d="M18.4882 10.7732C18.7187 10.7732 18.9055 10.5869 18.9055 10.357C18.9055 10.127 18.7187 9.94067 18.4882 9.94067C18.2576 9.94067 18.0708 10.127 18.0708 10.357C18.0708 10.5869 18.2576 10.7732 18.4882 10.7732Z" fill="white"/>
<path d="M17.5145 9.98714C17.7962 9.98714 18.0246 9.75938 18.0246 9.4784C18.0246 9.19742 17.7962 8.9696 17.5145 8.9696C17.2328 8.9696 17.0044 9.19742 17.0044 9.4784C17.0044 9.75938 17.2328 9.98714 17.5145 9.98714Z" fill="white"/>
<path d="M22.9171 20.0932C23.2372 20.0932 23.4967 19.8343 23.4967 19.515C23.4967 19.1957 23.2372 18.9369 22.9171 18.9369C22.5969 18.9369 22.3374 19.1957 22.3374 19.515C22.3374 19.8343 22.5969 20.0932 22.9171 20.0932Z" fill="white"/>
<path d="M16.1929 9.31648C16.513 9.31648 16.7725 9.05764 16.7725 8.73832C16.7725 8.419 16.513 8.16016 16.1929 8.16016C15.8728 8.16016 15.6133 8.419 15.6133 8.73832C15.6133 9.05764 15.8728 9.31648 16.1929 9.31648Z" fill="white"/>
<path d="M16.5865 11.7679C16.9066 11.7679 17.1662 11.5091 17.1662 11.1897C17.1662 10.8704 16.9066 10.6116 16.5865 10.6116C16.2663 10.6116 16.0068 10.8704 16.0068 11.1897C16.0068 11.5091 16.2663 11.7679 16.5865 11.7679Z" fill="white"/>
<path d="M15.9378 14.1035C16.3219 14.1035 16.6333 13.7929 16.6333 13.4097C16.6333 13.0266 16.3219 12.7159 15.9378 12.7159C15.5536 12.7159 15.2422 13.0266 15.2422 13.4097C15.2422 13.7929 15.5536 14.1035 15.9378 14.1035Z" fill="white"/>
<path d="M13.8281 14.1033C14.2762 14.1033 14.6396 13.7409 14.6396 13.2939C14.6396 12.8468 14.2762 12.4845 13.8281 12.4845C13.3799 12.4845 13.0166 12.8468 13.0166 13.2939C13.0166 13.7409 13.3799 14.1033 13.8281 14.1033Z" fill="white"/>
<path d="M11.3703 14.6586C11.8825 14.6586 12.2978 14.2445 12.2978 13.7336C12.2978 13.2227 11.8825 12.8085 11.3703 12.8085C10.8581 12.8085 10.4429 13.2227 10.4429 13.7336C10.4429 14.2445 10.8581 14.6586 11.3703 14.6586Z" fill="white"/>
<path d="M8.68102 15.977C9.28288 15.977 9.7708 15.4904 9.7708 14.8901C9.7708 14.2898 9.28288 13.8032 8.68102 13.8032C8.07922 13.8032 7.59131 14.2898 7.59131 14.8901C7.59131 15.4904 8.07922 15.977 8.68102 15.977Z" fill="white"/>
<path d="M5.89852 18.197C6.61561 18.197 7.19693 17.6172 7.19693 16.9019C7.19693 16.1867 6.61561 15.6068 5.89852 15.6068C5.18142 15.6068 4.6001 16.1867 4.6001 16.9019C4.6001 17.6172 5.18142 18.197 5.89852 18.197Z" fill="white"/>
<path d="M7.59169 13.2711C8.19354 13.2711 8.68146 12.7845 8.68146 12.1842C8.68146 11.5839 8.19354 11.0973 7.59169 11.0973C6.98984 11.0973 6.50195 11.5839 6.50195 12.1842C6.50195 12.7845 6.98984 13.2711 7.59169 13.2711Z" fill="white"/>
<path d="M10.2805 11.9528C10.7927 11.9528 11.2079 11.5386 11.2079 11.0277C11.2079 10.5168 10.7927 10.1027 10.2805 10.1027C9.76829 10.1027 9.35303 10.5168 9.35303 11.0277C9.35303 11.5386 9.76829 11.9528 10.2805 11.9528Z" fill="white"/>
<path d="M9.8864 9.50134C10.3986 9.50134 10.8138 9.08723 10.8138 8.57633C10.8138 8.06543 10.3986 7.65125 9.8864 7.65125C9.37418 7.65125 8.95898 8.06543 8.95898 8.57633C8.95898 9.08723 9.37418 9.50134 9.8864 9.50134Z" fill="white"/>
<path d="M12.3442 8.94637C12.7924 8.94637 13.1557 8.58397 13.1557 8.13691C13.1557 7.68991 12.7924 7.32751 12.3442 7.32751C11.896 7.32751 11.5327 7.68991 11.5327 8.13691C11.5327 8.58397 11.896 8.94637 12.3442 8.94637Z" fill="white"/>
<path d="M14.4539 8.9464C14.8381 8.9464 15.1495 8.63578 15.1495 8.25262C15.1495 7.86946 14.8381 7.55884 14.4539 7.55884C14.0697 7.55884 13.7583 7.86946 13.7583 8.25262C13.7583 8.63578 14.0697 8.9464 14.4539 8.9464Z" fill="white"/>
<path d="M14.8479 11.3978C15.2321 11.3978 15.5435 11.0871 15.5435 10.704C15.5435 10.3208 15.2321 10.0101 14.8479 10.0101C14.4638 10.0101 14.1523 10.3208 14.1523 10.704C14.1523 11.0871 14.4638 11.3978 14.8479 11.3978Z" fill="white"/>
<path d="M12.7383 11.4209C13.1865 11.4209 13.5498 11.0585 13.5498 10.6115C13.5498 10.1645 13.1865 9.80212 12.7383 9.80212C12.2901 9.80212 11.9268 10.1645 11.9268 10.6115C11.9268 11.0585 12.2901 11.4209 12.7383 11.4209Z" fill="white"/>
<path d="M10.4432 17.5724C10.6737 17.5724 10.8606 17.386 10.8606 17.1561C10.8606 16.9262 10.6737 16.7399 10.4432 16.7399C10.2127 16.7399 10.0259 16.9262 10.0259 17.1561C10.0259 17.386 10.2127 17.5724 10.4432 17.5724Z" fill="white"/>
<path d="M12.1121 17.3644C12.3939 17.3644 12.6222 17.1366 12.6222 16.8557C12.6222 16.5747 12.3939 16.3469 12.1121 16.3469C11.8304 16.3469 11.6021 16.5747 11.6021 16.8557C11.6021 17.1366 11.8304 17.3644 12.1121 17.3644Z" fill="white"/>
<path d="M13.9439 16.6708C14.2641 16.6708 14.5236 16.412 14.5236 16.0927C14.5236 15.7734 14.2641 15.5145 13.9439 15.5145C13.6238 15.5145 13.3643 15.7734 13.3643 16.0927C13.3643 16.412 13.6238 16.6708 13.9439 16.6708Z" fill="white"/>
<path d="M14.3845 18.5207C14.7687 18.5207 15.0801 18.2101 15.0801 17.827C15.0801 17.4438 14.7687 17.1332 14.3845 17.1332C14.0004 17.1332 13.689 17.4438 13.689 17.827C13.689 18.2101 14.0004 18.5207 14.3845 18.5207Z" fill="white"/>
<path d="M12.1588 18.96C12.4789 18.96 12.7384 18.7011 12.7384 18.3818C12.7384 18.0625 12.4789 17.8036 12.1588 17.8036C11.8387 17.8036 11.5791 18.0625 11.5791 18.3818C11.5791 18.7011 11.8387 18.96 12.1588 18.96Z" fill="white"/>
<path d="M10.1879 18.9368C10.4696 18.9368 10.6979 18.709 10.6979 18.4281C10.6979 18.1471 10.4696 17.9193 10.1879 17.9193C9.90615 17.9193 9.67773 18.1471 9.67773 18.4281C9.67773 18.709 9.90615 18.9368 10.1879 18.9368Z" fill="white"/>
<path d="M10.2105 20.5328C10.5307 20.5328 10.7902 20.2739 10.7902 19.9546C10.7902 19.6354 10.5307 19.3765 10.2105 19.3765C9.89042 19.3765 9.63086 19.6354 9.63086 19.9546C9.63086 20.2739 9.89042 20.5328 10.2105 20.5328Z" fill="white"/>
<path d="M12.576 20.8333C12.9601 20.8333 13.2715 20.5227 13.2715 20.1395C13.2715 19.7564 12.9601 19.4457 12.576 19.4457C12.1918 19.4457 11.8804 19.7564 11.8804 20.1395C11.8804 20.5227 12.1918 20.8333 12.576 20.8333Z" fill="white"/>
<path d="M15.3349 20.5327C15.7831 20.5327 16.1464 20.1703 16.1464 19.7233C16.1464 19.2763 15.7831 18.9139 15.3349 18.9139C14.8867 18.9139 14.5234 19.2763 14.5234 19.7233C14.5234 20.1703 14.8867 20.5327 15.3349 20.5327Z" fill="white"/>
<path d="M16.9577 22.5445C17.4699 22.5445 17.8851 22.1303 17.8851 21.6194C17.8851 21.1085 17.4699 20.6944 16.9577 20.6944C16.4455 20.6944 16.0303 21.1085 16.0303 21.6194C16.0303 22.1303 16.4455 22.5445 16.9577 22.5445Z" fill="white"/>
<path d="M13.5503 22.8221C13.9985 22.8221 14.3618 22.4597 14.3618 22.0126C14.3618 21.5656 13.9985 21.2032 13.5503 21.2032C13.1021 21.2032 12.7388 21.5656 12.7388 22.0126C12.7388 22.4597 13.1021 22.8221 13.5503 22.8221Z" fill="white"/>
<path d="M11.625 24.3946C12.0732 24.3946 12.4365 24.0322 12.4365 23.5852C12.4365 23.1381 12.0732 22.7758 11.625 22.7758C11.1768 22.7758 10.8135 23.1381 10.8135 23.5852C10.8135 24.0322 11.1768 24.3946 11.625 24.3946Z" fill="white"/>
<path d="M13.2248 26.4298C13.737 26.4298 14.1523 26.0156 14.1523 25.5047C14.1523 24.9938 13.737 24.5797 13.2248 24.5797C12.7126 24.5797 12.2974 24.9938 12.2974 25.5047C12.2974 26.0156 12.7126 26.4298 13.2248 26.4298Z" fill="white"/>
<path d="M17.4916 26.8C18.0934 26.8 18.5814 26.3134 18.5814 25.7131C18.5814 25.1128 18.0934 24.6262 17.4916 24.6262C16.8898 24.6262 16.4019 25.1128 16.4019 25.7131C16.4019 26.3134 16.8898 26.8 17.4916 26.8Z" fill="white"/>
<path d="M15.1496 24.8572C15.6618 24.8572 16.0771 24.443 16.0771 23.9321C16.0771 23.4212 15.6618 23.0071 15.1496 23.0071C14.6374 23.0071 14.2222 23.4212 14.2222 23.9321C14.2222 24.443 14.6374 24.8572 15.1496 24.8572Z" fill="white"/>
<path d="M19.2762 24.4875C19.8781 24.4875 20.366 24.0008 20.366 23.4006C20.366 22.8003 19.8781 22.3136 19.2762 22.3136C18.6744 22.3136 18.1865 22.8003 18.1865 23.4006C18.1865 24.0008 18.6744 24.4875 19.2762 24.4875Z" fill="white"/>
<path d="M10.6511 22.406C11.0353 22.406 11.3467 22.0954 11.3467 21.7122C11.3467 21.3291 11.0353 21.0184 10.6511 21.0184C10.267 21.0184 9.95557 21.3291 9.95557 21.7122C9.95557 22.0954 10.267 22.406 10.6511 22.406Z" fill="white"/>
</g>
<defs>
<linearGradient id={id1} x1="2.5" y1="1.50024" x2="30" y2="29.5002" gradientUnits="userSpaceOnUse">
<stop stopColor="#3CE4E0"/>
<stop offset="0.24" stopColor="#32BDE6"/>
<stop offset="0.5" stopColor="#2792EC"/>
<stop offset="0.705" stopColor="#1D6CF1"/>
<stop offset="0.86" stopColor="#0F35F8"/>
<stop offset="1" stopColor="#0101ED"/>
</linearGradient>
<clipPath id={id}>
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</Svg>
);
};

export default memo(Token);
1 change: 1 addition & 0 deletions src/components/Svg/Tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export { default as sWagmiToken } from './components/Swagmi';
export { default as WagmiToken } from './components/Wagmi';
export { default as ArbToken } from './components/Arb';
export { default as MetisToken } from './components/Metis';
export { default as IotaToken } from './components/Iota';
1 change: 1 addition & 0 deletions src/components/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test('exports', () => {
"WagmiToken",
"ArbToken",
"MetisToken",
"IotaToken",
"ArbitrumChain",
"AvalancheChain",
"BscChain",
Expand Down
4 changes: 4 additions & 0 deletions src/hooks/useNativeTokenSvgLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
MaticToken,
ArbToken,
MetisToken,
IotaToken,
} from "../components/Svg/Tokens";
import { SvgProps } from "../components/Svg/types";

Expand Down Expand Up @@ -38,6 +39,9 @@ export default function useNativeTokenSvgLogo(chainId: ChainId = ChainId.ZKSYNC)
case ChainId.METIS:
layout = MetisToken;
break;
case ChainId.IOTA:
layout = IotaToken;
break;
default:
layout = EthToken;
}
Expand Down
1 change: 1 addition & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test('exports', () => {
"WagmiToken",
"ArbToken",
"MetisToken",
"IotaToken",
"ArbitrumChain",
"AvalancheChain",
"BscChain",
Expand Down

0 comments on commit 2f6f1d2

Please sign in to comment.