Skip to content

Commit

Permalink
feat: add new expand and collapse all icons
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Oct 20, 2024
1 parent bc56366 commit 2f3626d
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/icons/CollapseAll/CollapseAllIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react';

interface CollapsAllIconProps {
height?: string;
width?: string;
fill?: string;
strokeWidth?: string;
style?: React.CSSProperties;
}

const CollapsAllIcon: React.FC<CollapsAllIconProps> = ({
height = '24',
width = '24',
fill = 'none',
strokeWidth = '2',
style
}) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
height={height}
width={width}
style={style}
>
<path
d="M17 16l-5-5-5 5"
fill={fill}
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M17 10l-5-5-5 5"
fill={fill}
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);

export default CollapsAllIcon;
1 change: 1 addition & 0 deletions src/icons/CollapseAll/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as CollapseAll } from './CollapseAllIcon';
44 changes: 44 additions & 0 deletions src/icons/ExpandAll/ExpandAllIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import React from 'react';

interface ExpandAllProps {
height?: string;
width?: string;
fill?: string;
strokeWidth?: string;
style?: React.CSSProperties;
}

const ExpandAll: React.FC<ExpandAllProps> = ({
height = '24',
width = '24',
fill = 'none',
strokeWidth = '2',
style
}) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
height={height}
width={width}
style={style}
>
<path
d="M7 8l5 5 5-5"
fill={fill}
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M7 14l5 5 5-5"
fill={fill}
stroke="currentColor"
strokeWidth={strokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
);

export default ExpandAll;
1 change: 1 addition & 0 deletions src/icons/ExpandAll/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as ExpandAll } from './ExpandAllIcon';
2 changes: 2 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from './Circle';
export * from './Clone';
export * from './Close';
export * from './Cloud';
export * from './CollapseAll';
export * from './Column';
export * from './Component';
export * from './Configuration';
Expand All @@ -25,6 +26,7 @@ export * from './Designer';
export * from './Detail';
export * from './DropDownIcon';
export * from './Error';
export * from './ExpandAll';
export * from './Favorite';
export * from './Filter';
export * from './Fullscreen';
Expand Down

0 comments on commit 2f3626d

Please sign in to comment.