Skip to content

Commit 2f3626d

Browse files
committed
feat: add new expand and collapse all icons
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent bc56366 commit 2f3626d

5 files changed

Lines changed: 92 additions & 0 deletions

File tree

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 CollapsAllIconProps {
4+
height?: string;
5+
width?: string;
6+
fill?: string;
7+
strokeWidth?: string;
8+
style?: React.CSSProperties;
9+
}
10+
11+
const CollapsAllIcon: React.FC<CollapsAllIconProps> = ({
12+
height = '24',
13+
width = '24',
14+
fill = 'none',
15+
strokeWidth = '2',
16+
style
17+
}) => (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
viewBox="0 0 24 24"
21+
height={height}
22+
width={width}
23+
style={style}
24+
>
25+
<path
26+
d="M17 16l-5-5-5 5"
27+
fill={fill}
28+
stroke="currentColor"
29+
strokeWidth={strokeWidth}
30+
strokeLinecap="round"
31+
strokeLinejoin="round"
32+
/>
33+
<path
34+
d="M17 10l-5-5-5 5"
35+
fill={fill}
36+
stroke="currentColor"
37+
strokeWidth={strokeWidth}
38+
strokeLinecap="round"
39+
strokeLinejoin="round"
40+
/>
41+
</svg>
42+
);
43+
44+
export default CollapsAllIcon;

src/icons/CollapseAll/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as CollapseAll } from './CollapseAllIcon';
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 ExpandAllProps {
4+
height?: string;
5+
width?: string;
6+
fill?: string;
7+
strokeWidth?: string;
8+
style?: React.CSSProperties;
9+
}
10+
11+
const ExpandAll: React.FC<ExpandAllProps> = ({
12+
height = '24',
13+
width = '24',
14+
fill = 'none',
15+
strokeWidth = '2',
16+
style
17+
}) => (
18+
<svg
19+
xmlns="http://www.w3.org/2000/svg"
20+
viewBox="0 0 24 24"
21+
height={height}
22+
width={width}
23+
style={style}
24+
>
25+
<path
26+
d="M7 8l5 5 5-5"
27+
fill={fill}
28+
stroke="currentColor"
29+
strokeWidth={strokeWidth}
30+
strokeLinecap="round"
31+
strokeLinejoin="round"
32+
/>
33+
<path
34+
d="M7 14l5 5 5-5"
35+
fill={fill}
36+
stroke="currentColor"
37+
strokeWidth={strokeWidth}
38+
strokeLinecap="round"
39+
strokeLinejoin="round"
40+
/>
41+
</svg>
42+
);
43+
44+
export default ExpandAll;

src/icons/ExpandAll/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ExpandAll } from './ExpandAllIcon';

src/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export * from './Circle';
99
export * from './Clone';
1010
export * from './Close';
1111
export * from './Cloud';
12+
export * from './CollapseAll';
1213
export * from './Column';
1314
export * from './Component';
1415
export * from './Configuration';
@@ -25,6 +26,7 @@ export * from './Designer';
2526
export * from './Detail';
2627
export * from './DropDownIcon';
2728
export * from './Error';
29+
export * from './ExpandAll';
2830
export * from './Favorite';
2931
export * from './Filter';
3032
export * from './Fullscreen';

0 commit comments

Comments
 (0)