Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
feat: Added new icons NavUp, NavDown, Dot
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Aug 16, 2019
1 parent f747e26 commit 66b7b7c
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 0 deletions.
1 change: 1 addition & 0 deletions src-icons/svg/dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src-icons/svg/nav-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src-icons/svg/nav-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/Icon/iconMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const iconMap = {
chevron: require('../icons/Chevron').default,
collection: require('../icons/Collection').default,
disk: require('../icons/Disk').default,
dot: require('../icons/Dot').default,
download: require('../icons/Download').default,
dropbox: require('../icons/Dropbox').default,
edit: require('../icons/Edit').default,
Expand All @@ -45,8 +46,10 @@ const iconMap = {
logout: require('../icons/Logout').default,
megaphone: require('../icons/Megaphone').default,
menu: require('../icons/Menu').default,
'nav-down': require('../icons/NavDown').default,
'nav-left': require('../icons/NavLeft').default,
'nav-right': require('../icons/NavRight').default,
'nav-up': require('../icons/NavUp').default,
offline: require('../icons/Offline').default,
ok: require('../icons/Ok').default,
pause: require('../icons/Pause').default,
Expand Down
31 changes: 31 additions & 0 deletions src/icons/Dot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

const DotIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

return (
<Svg
{...otherProps}
ref={ref}
viewBox="0 0 18 18"
width={size}
height={size}
fill={color}
fillRule="evenodd"
clipRule="evenodd"
>
<path d="M 9 4 A 5 5 0 0 1 9 14 A 5 5 0 0 1 9 4" />
</Svg>
);
});

DotIcon.displayName = 'DotIcon';

DotIcon.defaultProps = {
size: 18,
color: 'currentcolor',
};

export default DotIcon;
31 changes: 31 additions & 0 deletions src/icons/NavDown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

const NavDownIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

return (
<Svg
{...otherProps}
ref={ref}
viewBox="0 0 18 18"
width={size}
height={size}
fill={color}
fillRule="evenodd"
clipRule="evenodd"
>
<path d="M14,5l-5,9l-5,-9l10,0Z" />
</Svg>
);
});

NavDownIcon.displayName = 'NavDownIcon';

NavDownIcon.defaultProps = {
size: 18,
color: 'currentcolor',
};

export default NavDownIcon;
31 changes: 31 additions & 0 deletions src/icons/NavUp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

const NavUpIcon = forwardRef((props, ref) => {
const {size, color, ...otherProps} = props;

return (
<Svg
{...otherProps}
ref={ref}
viewBox="0 0 18 18"
width={size}
height={size}
fill={color}
fillRule="evenodd"
clipRule="evenodd"
>
<path d="M4,13l5,-9l5,9l-10,0Z" />
</Svg>
);
});

NavUpIcon.displayName = 'NavUpIcon';

NavUpIcon.defaultProps = {
size: 18,
color: 'currentcolor',
};

export default NavUpIcon;
3 changes: 3 additions & 0 deletions src/icons/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ After that, you can follow the normal instructions for updating/publishing this
<Icon name="chevron" />
<Icon name="collection" />
<Icon name="disk" />
<Icon name="dot" />
<Icon name="download" />
<Icon name="dropbox" />
<Icon name="edit" />
Expand All @@ -72,6 +73,8 @@ After that, you can follow the normal instructions for updating/publishing this
<Icon name="menu" />
<Icon name="nav-left" />
<Icon name="nav-right" />
<Icon name="nav-up" />
<Icon name="nav-down" />
<Icon name="offline" />
<Icon name="ok" />
<Icon name="pause" />
Expand Down
3 changes: 3 additions & 0 deletions src/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export {default as Chat} from './Chat';
export {default as Chevron} from './Chevron';
export {default as Collection} from './Collection';
export {default as Disk} from './Disk';
export {default as Dot} from './Dot';
export {default as Download} from './Download';
export {default as Dropbox} from './Dropbox';
export {default as Edit} from './Edit';
Expand All @@ -43,8 +44,10 @@ export {default as Link} from './Link';
export {default as Logout} from './Logout';
export {default as Megaphone} from './Megaphone';
export {default as Menu} from './Menu';
export {default as NavDown} from './NavDown';
export {default as NavLeft} from './NavLeft';
export {default as NavRight} from './NavRight';
export {default as NavUp} from './NavUp';
export {default as Offline} from './Offline';
export {default as Ok} from './Ok';
export {default as Pause} from './Pause';
Expand Down

0 comments on commit 66b7b7c

Please sign in to comment.