Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Governance icon #105

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import IconArrowUpRight from "./src/IconArrowUpRight.vue";
import IconProject from "./src/IconProject.vue";
import IconHeart from "./src/IconHeart.vue";
import IconCheck from "./src/IconCheck.vue";
import IconGovernance from "./src/IconGovernance.vue";

export const IconsPlugin: Plugin = {
install(app: App) {
Expand Down Expand Up @@ -102,6 +103,7 @@ export const IconsPlugin: Plugin = {
app.component("astar-icon-help", IconHelp);
app.component("astar-icon-vert", IconVert);
app.component("astar-icon-history", IconHistory);
app.component("astar-icon-governance", IconGovernance);
app.component("astar-icon-group", IconGroup);
app.component("astar-icon-sync", IconSync);
app.component("astar-icon-expand", IconExpand);
Expand Down Expand Up @@ -209,5 +211,5 @@ export {
IconArrowUpRight,
IconProject,
IconHeart,
IconCheck
IconCheck,
};
8 changes: 8 additions & 0 deletions packages/Icons/src/IconGovernance.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<template>
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M9.19227 25.6153C8.68727 25.6153 8.25977 25.4403 7.90977 25.0903C7.55977 24.7403 7.38477 24.3128 7.38477 23.8078V19.9308L10.3655 16.5558L11.4348 17.6251L8.99227 20.3848H23.0078L20.6153 17.6751L21.6845 16.6058L24.6153 19.9308V23.8078C24.6153 24.3128 24.4403 24.7403 24.0903 25.0903C23.7403 25.4403 23.3128 25.6153 22.8078 25.6153H9.19227ZM9.19227 24.1156H22.8078C22.8911 24.1156 22.9632 24.0851 23.024 24.0241C23.085 23.9632 23.1155 23.8911 23.1155 23.8078V21.8846H8.88452V23.8078C8.88452 23.8911 8.91502 23.9632 8.97602 24.0241C9.03685 24.0851 9.10893 24.1156 9.19227 24.1156ZM14.7598 18.1443L11.504 14.8693C11.1527 14.518 10.9812 14.092 10.9895 13.5913C10.9978 13.0908 11.1777 12.6649 11.529 12.3136L16.1693 7.67305C16.5206 7.32188 16.9475 7.14113 17.45 7.1308C17.9525 7.12063 18.3794 7.29113 18.7308 7.6423L21.996 10.9078C22.3473 11.2591 22.5282 11.6809 22.5385 12.1731C22.5487 12.6654 22.3782 13.0872 22.027 13.4386L17.3058 18.1596C16.9544 18.5109 16.5301 18.684 16.0328 18.6788C15.5353 18.6738 15.1109 18.4956 14.7598 18.1443ZM20.9328 12.4098C20.9839 12.3585 21.0095 12.2847 21.0095 12.1886C21.0095 12.0924 20.9839 12.0186 20.9328 11.9673L17.6865 8.7213C17.6353 8.66997 17.5617 8.6443 17.4655 8.6443C17.3693 8.6443 17.2956 8.66997 17.2443 8.7213L12.573 13.3923C12.5218 13.4436 12.4963 13.5174 12.4963 13.6136C12.4963 13.7097 12.5218 13.7835 12.573 13.8348L15.8193 17.0808C15.8706 17.1321 15.9443 17.1578 16.0405 17.1578C16.1367 17.1578 16.2103 17.1321 16.2615 17.0808L20.9328 12.4098Z"
fill="#081029"
/>
</svg>
</template>
2 changes: 2 additions & 0 deletions packages/export_type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
IconFacebook,
IconForum,
IconGithub,
IconGovernance,
IconGroup,
IconHelp,
IconHide,
Expand Down Expand Up @@ -91,6 +92,7 @@ export interface GlobalComponents {
'astar-icon-facebook': typeof IconFacebook;
'astar-icon-forum': typeof IconForum;
'astar-icon-github': typeof IconGithub;
'astar-icon-governance': typeof IconGovernance;
'astar-icon-group': typeof IconGroup;
'astar-icon-geko': typeof IconHelp;
'astar-icon-hide': typeof IconHide;
Expand Down
11 changes: 11 additions & 0 deletions src/stories/Icons/IconGovernance.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import IconGovernance from 'packages/Icons/src/IconGovernance.vue';

export default {
title: 'Icons/IconGovernance',
component: IconGovernance,
};

export const DefaultIcon = () => ({
components: { IconGovernance },
template: '<IconGovernance />',
});
Loading