Skip to content

Commit 4194842

Browse files
committed
feat: add LogoutIcon and TeamsIcon components with customizable properties
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent e797e5e commit 4194842

6 files changed

Lines changed: 89 additions & 0 deletions

File tree

src/icons/Delete/DeleteIcon.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { IconProps } from '../types';
44
export const DeleteIcon = ({
55
width = DEFAULT_WIDTH,
66
height = DEFAULT_HEIGHT,
7+
fill = '#455a64',
8+
style,
79
...props
810
}: IconProps): JSX.Element => {
911
return (
@@ -12,6 +14,8 @@ export const DeleteIcon = ({
1214
viewBox="0 0 24 24"
1315
width={width}
1416
height={height}
17+
fill={fill}
18+
style={style}
1519
{...props}
1620
>
1721
<path d="M0 0h24v24H0z" fill="none" />

src/icons/Logout/LogOutIcon.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react';
2+
3+
interface LogoutIconProps {
4+
width?: number;
5+
height?: number;
6+
fill?: string;
7+
style?: React.CSSProperties;
8+
secondaryFill?: string;
9+
}
10+
11+
const LogoutIcon: React.FC<LogoutIconProps> = ({
12+
width = 24,
13+
height = 24,
14+
fill,
15+
style = {},
16+
secondaryFill = '#00B39F'
17+
}) => (
18+
<svg
19+
style={style}
20+
xmlns="http://www.w3.org/2000/svg"
21+
height={height}
22+
viewBox="0 0 17 19"
23+
width={width}
24+
fill={secondaryFill}
25+
>
26+
<path d="M11.7 14V11.3H5.4V7.7H11.7V5L16.2 9.5L11.7 14Z" fill={fill} />
27+
<path d="M9.9 0.5C10.3774 0.5 10.8352 0.689642 11.1728 1.02721C11.5104 1.36477 11.7 1.82261 11.7 2.3V4.1H9.9V2.3H1.8V16.7H9.9V14.9H11.7V16.7C11.7 17.1774 11.5104 17.6352 11.1728 17.9728C10.8352 18.3104 10.3774 18.5 9.9 18.5H1.8C1.32261 18.5 0.864773 18.3104 0.527208 17.9728C0.189642 17.6352 0 17.1774 0 16.7V2.3C0 1.82261 0.189642 1.36477 0.527208 1.02721C0.864773 0.689642 1.32261 0.5 1.8 0.5H9.9Z" />
28+
</svg>
29+
);
30+
31+
export default LogoutIcon;

src/icons/Logout/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import LogoutIcon from './LogOutIcon';
2+
3+
export { LogoutIcon };

src/icons/Teams/TeamsIcon.tsx

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React from 'react';
2+
3+
interface TeamsIconProps {
4+
width: string | number;
5+
height: string | number;
6+
fill: string;
7+
primaryFill?: string;
8+
secondaryFill?: string;
9+
style?: React.CSSProperties;
10+
}
11+
12+
const TeamsIcon: React.FC<TeamsIconProps> = ({
13+
width,
14+
height,
15+
fill,
16+
primaryFill = '#51636B',
17+
secondaryFill = '#00B39F',
18+
style = {}
19+
}) => (
20+
<svg
21+
style={style}
22+
xmlns="http://www.w3.org/2000/svg"
23+
height={height}
24+
viewBox="0 0 18 18"
25+
width={width}
26+
fill={fill}
27+
>
28+
<path
29+
fill={secondaryFill}
30+
d="M3.8,5.4c0.4,0,0.8,0.1,1.1,0.3c-0.1,1.1,0.2,2.1,0.8,3c-0.4,0.7-1.1,1.2-2,1.2c-0.6,0-1.2-0.2-1.6-0.7
31+
c-0.4-0.4-0.7-1-0.7-1.6s0.2-1.2,0.7-1.6S3.2,5.4,3.8,5.4z M14.2,5.4c0.6,0,1.2,0.2,1.6,0.7c0.4,0.4,0.7,1,0.7,1.6s-0.2,1.2-0.7,1.6
32+
c-0.4,0.4-1,0.7-1.6,0.7c-0.9,0-1.6-0.5-2-1.2c0.6-0.8,1-1.9,0.8-3C13.4,5.6,13.8,5.4,14.2,5.4z M0,14.4v-1.1c0-1,1.4-1.9,3.3-2.2
33+
c-0.4,0.5-0.7,1.2-0.7,2v1.3H0z M18,14.4h-2.6v-1.3c0-0.8-0.3-1.5-0.7-2c1.9,0.3,3.3,1.1,3.3,2.2V14.4z"
34+
/>
35+
<path
36+
fill={primaryFill}
37+
d="M9,3.6c0.7,0,1.4,0.3,1.9,0.8c0.5,0.5,0.8,1.2,0.8,1.9S11.3,7.6,10.9,8C10.4,8.5,9.7,8.8,9,8.8S7.6,8.5,7.1,8
38+
C6.7,7.6,6.4,6.9,6.4,6.2s0.3-1.4,0.8-1.9C7.6,3.8,8.3,3.6,9,3.6z"
39+
/>
40+
<path fill={primaryFill} d="M4.1,13.1c0-1.6,2.2-2.8,4.9-2.8s4.9,1.3,4.9,2.8v1.3H4.1V13.1z" />
41+
</svg>
42+
);
43+
44+
export default TeamsIcon;

src/icons/Teams/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import TeamsIcon from './TeamsIcon';
2+
3+
export { TeamsIcon };

src/icons/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ export * from './EmptyStyle';
5353
export * from './Environment';
5454
export * from './ExternalLink';
5555
export * from './Feedback';
56+
export * from './Github';
57+
export * from './Google';
5658
export * from './GridView';
5759
export * from './HelpIcon';
5860
export * from './Idea';
@@ -62,6 +64,7 @@ export * from './Kubernetes';
6264
export * from './Learning';
6365
export * from './LeftAngledArrow';
6466
export * from './LeftArrow';
67+
export * from './Logout';
6568
export * from './Menu';
6669
export * from './MesheryFilter';
6770
export * from './MesheryOperator';
@@ -90,6 +93,7 @@ export * from './SocialMedial';
9093
export * from './Star';
9194
export * from './Success';
9295
export * from './TableView';
96+
export * from './Teams';
9397
export * from './TerminalIcon';
9498
export * from './Toolkit';
9599
export * from './Touch';

0 commit comments

Comments
 (0)