Skip to content

Commit 7329b9d

Browse files
chore: link icon added to propel package
1 parent b15da3b commit 7329b9d

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

packages/propel/src/icons/actions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export * from "./close-icon";
77
export * from "./copy-icon";
88
export * from "./edit-icon";
99
export * from "./globe-icon";
10+
export * from "./link-icon";
1011
export * from "./lock-icon";
1112
export * from "./new-tab-icon";
1213
export * from "./search-icon";
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from "react";
2+
3+
import { IconWrapper } from "../icon-wrapper";
4+
import type { ISvgIcons } from "../type";
5+
6+
export const LinkIcon: React.FC<ISvgIcons> = ({ color = "currentColor", ...rest }) => (
7+
<IconWrapper color={color} {...rest}>
8+
<path
9+
d="M3.30277 7.07328C3.54686 6.8296 3.94261 6.82939 4.18656 7.07328C4.43064 7.31736 4.43064 7.71397 4.18656 7.95805L3.2432 8.90043C2.18575 9.95806 2.18572 11.6729 3.2432 12.7305C4.30081 13.7882 6.01563 13.788 7.07328 12.7305L8.01664 11.7881C8.26073 11.5441 8.65636 11.544 8.90043 11.7881C9.14426 12.0322 9.14443 12.4279 8.90043 12.6719L7.95707 13.6143C6.41125 15.16 3.90517 15.1601 2.35941 13.6143C0.813772 12.0685 0.813807 9.56242 2.35941 8.01664L3.30277 7.07328ZM9.87797 5.21195C10.122 4.96788 10.5187 4.96787 10.7627 5.21195C11.0064 5.45601 11.0066 5.85177 10.7627 6.09574L6.09574 10.7618C5.85166 11.0058 5.45603 11.0058 5.21195 10.7618C4.96799 10.5177 4.96791 10.122 5.21195 9.87797L9.87797 5.21195ZM8.01664 2.35941C9.56242 0.813804 12.0685 0.813775 13.6143 2.35941C15.16 3.90517 15.1599 6.41121 13.6143 7.95707L12.6719 8.90043C12.4279 9.14442 12.0322 9.14425 11.7881 8.90043C11.544 8.65635 11.544 8.26072 11.7881 8.01664L12.7305 7.07328C13.788 6.01556 13.7881 4.3008 12.7305 3.2432C11.6729 2.18572 9.95805 2.18575 8.90043 3.2432L7.95707 4.18656C7.71296 4.4303 7.31724 4.43053 7.07328 4.18656C6.82935 3.94259 6.82956 3.54686 7.07328 3.30277L8.01664 2.35941Z"
10+
fill={color}
11+
/>
12+
</IconWrapper>
13+
);

packages/propel/src/icons/constants.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const ActionsIconsMap = [
88
{ icon: <Icon name="action.copy" />, title: "CopyIcon" },
99
{ icon: <Icon name="action.edit" />, title: "EditIcon" },
1010
{ icon: <Icon name="action.globe" />, title: "GlobeIcon" },
11+
{ icon: <Icon name="action.link" />, title: "LinkIcon" },
1112
{ icon: <Icon name="action.lock" />, title: "LockIcon" },
1213
{ icon: <Icon name="action.new-tab" />, title: "NewTabIcon" },
1314
{ icon: <Icon name="action.search" />, title: "SearchIcon" },

packages/propel/src/icons/registry.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
CopyIcon,
99
EditIcon,
1010
GlobeIcon,
11+
LinkIcon,
1112
LockIcon,
1213
NewTabIcon,
1314
PlusIcon,
@@ -138,6 +139,7 @@ export const ICON_REGISTRY = {
138139
"action.copy": CopyIcon,
139140
"action.edit": EditIcon,
140141
"action.globe": GlobeIcon,
142+
"action.link": LinkIcon,
141143
"action.lock": LockIcon,
142144
"action.new-tab": NewTabIcon,
143145
"action.search": SearchIcon,

0 commit comments

Comments
 (0)