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

Commit

Permalink
feat: Add new icons: Calendar & Megaphone
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Aug 7, 2019
1 parent d6c0448 commit f5d1bc2
Show file tree
Hide file tree
Showing 75 changed files with 275 additions and 209 deletions.
1 change: 1 addition & 0 deletions src-icons/svg/calendar.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/megaphone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions src-icons/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ module.exports = ({
import Svg from './BaseSvg';
const ${name}Icon = forwardRef((props, ref) => {
const {
size,
color,
...otherProps
} = props;
const {size, color, ...otherProps} = props;
return (
<Svg
Expand All @@ -33,7 +29,7 @@ ${name}Icon.displayName = '${name}Icon';
${name}Icon.defaultProps = {
size: 18,
color: 'currentcolor'
color: 'currentcolor',
};
export default ${name}Icon;
Expand Down
2 changes: 2 additions & 0 deletions src/Icon/iconMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const iconMap = {
'asset-text': require('../icons/AssetText').default,
'asset-video': require('../icons/AssetVideo').default,
box: require('../icons/Box').default,
calendar: require('../icons/Calendar').default,
captions: require('../icons/Captions').default,
chat: require('../icons/Chat').default,
chevron: require('../icons/Chevron').default,
Expand All @@ -42,6 +43,7 @@ const iconMap = {
info: require('../icons/Info').default,
link: require('../icons/Link').default,
logout: require('../icons/Logout').default,
megaphone: require('../icons/Megaphone').default,
menu: require('../icons/Menu').default,
'nav-left': require('../icons/NavLeft').default,
'nav-right': require('../icons/NavRight').default,
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Android.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Apple.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Appstore.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Arrow.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetAudio.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetDefault.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetDiagram.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetEbook.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetFluidbook.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetFolder.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetImage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetInfographic.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetLink.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetPdf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetPodcast.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetPresentation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetQuiz.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetSpreadsheet.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetText.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/AssetVideo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Box.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
31 changes: 31 additions & 0 deletions src/icons/Calendar.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 CalendarIcon = 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="M12,4l0,-1c0,-0.552 0.448,-1 1,-1c0.552,0 1,0.448 1,1l0,1.105c1.154,0.327 2,1.388 2,2.646l0,5.498c0,1.518 -1.232,2.75 -2.751,2.751l-8.498,0c-1.518,0 -2.751,-1.233 -2.751,-2.751l0,-5.498c0,-1.258 0.846,-2.319 2,-2.646l0,-1.105c0,-0.552 0.448,-1 1,-1c0.552,0 1,0.448 1,1l0,1l6,0Zm-2,3l-1,0l0,0.031c0,0.257 -0.102,0.504 -0.284,0.685c-0.181,0.182 -0.428,0.284 -0.685,0.284l-0.031,0l0,1l1,0l0,3l1,0l0,-5Z" />
</Svg>
);
});

CalendarIcon.displayName = 'CalendarIcon';

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

export default CalendarIcon;
4 changes: 2 additions & 2 deletions src/icons/Captions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Chat.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Chevron.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Collection.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Disk.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Download.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Dropbox.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Edit.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import React, {forwardRef} from 'react';

import Svg from './BaseSvg';

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

return (
Expand Down
Loading

0 comments on commit f5d1bc2

Please sign in to comment.