Skip to content

Commit 115d3ca

Browse files
committed
Merge branch 'main' into add-link-icon
2 parents 8133a23 + c8b604f commit 115d3ca

File tree

5 files changed

+91
-0
lines changed

5 files changed

+91
-0
lines changed

src/components/icons/Sort/Sort.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React, { FC } from 'react';
2+
import { IIconProps } from '../type';
3+
import { IconSort16 } from './Sort16';
4+
import { IconSort24 } from './Sort24';
5+
import { IconSort32 } from './Sort32';
6+
7+
export const IconSort: FC<IIconProps> = ({
8+
size = 16,
9+
color = 'currentColor',
10+
}) => {
11+
switch (size.toString()) {
12+
case '16':
13+
return <IconSort16 color={color} />;
14+
case '24':
15+
return <IconSort24 color={color} />;
16+
case '32':
17+
return <IconSort32 color={color} />;
18+
default:
19+
return <IconSort24 size={size} color={color} />;
20+
}
21+
};

src/components/icons/Sort/Sort16.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React, { FC } from 'react';
2+
import { IIconProps } from '../type';
3+
4+
export const IconSort16: FC<IIconProps> = ({
5+
size = 16,
6+
color = 'currentColor',
7+
}) => (
8+
<svg
9+
width={size}
10+
height={size}
11+
fill='none'
12+
xmlns='http://www.w3.org/2000/svg'
13+
>
14+
<path
15+
d='M6.57143 13V3L3 6.57143M9.42857 3V13L13 9.42857'
16+
stroke={color}
17+
strokeLinecap='round'
18+
strokeLinejoin='round'
19+
/>
20+
</svg>
21+
);

src/components/icons/Sort/Sort24.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, { FC } from 'react';
2+
import { IIconProps } from '../type';
3+
4+
export const IconSort24: FC<IIconProps> = ({
5+
size = 24,
6+
color = 'currentColor',
7+
}) => (
8+
<svg
9+
width={size}
10+
height={size}
11+
fill='none'
12+
xmlns='http://www.w3.org/2000/svg'
13+
>
14+
<path
15+
d='M10 19V5L5 10M14 5V19L19 14'
16+
stroke={color}
17+
strokeWidth='1.5'
18+
strokeLinecap='round'
19+
strokeLinejoin='round'
20+
/>
21+
</svg>
22+
);

src/components/icons/Sort/Sort32.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React, { FC } from 'react';
2+
import { IIconProps } from '../type';
3+
4+
export const IconSort32: FC<IIconProps> = ({
5+
size = 32,
6+
color = 'currentColor',
7+
}) => (
8+
<svg
9+
width={size}
10+
height={size}
11+
fill='none'
12+
xmlns='http://www.w3.org/2000/svg'
13+
>
14+
<path
15+
d='M13.3333 25.3333V6.66666L6.66666 13.3333M18.6667 6.66666V25.3333L25.3333 18.6667'
16+
stroke={color}
17+
strokeWidth='2'
18+
strokeLinecap='round'
19+
strokeLinejoin='round'
20+
/>
21+
</svg>
22+
);

src/components/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export * from './icons/Link/Link16';
4141
export * from './icons/Link/Link24';
4242
export * from './icons/Link/Link32';
4343

44+
export * from './icons/Sort/Sort';
45+
export * from './icons/Sort/Sort16';
46+
export * from './icons/Sort/Sort24';
47+
export * from './icons/Sort/Sort32';
48+
4449
export * from './icons/arrowCircles/ArrowCircleBottom';
4550
export * from './icons/arrowCircles/ArrowCircleLeft';
4651
export * from './icons/arrowCircles/ArrowCircleRight';

0 commit comments

Comments
 (0)