Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit icon #178

Merged
merged 2 commits into from
Oct 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/src/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,35 @@
}
}
},
"lib/icons/exit.js": {
"description": "",
"displayName": "IconExit",
"methods": [],
"props": {
"color": {
"type": {
"name": "string"
},
"required": false,
"description": "Icon color",
"defaultValue": {
"value": "'#8E8E93'",
"computed": false
}
},
"size": {
"type": {
"name": "number"
},
"required": false,
"description": "Icon size",
"defaultValue": {
"value": "28",
"computed": false
}
}
}
},
"lib/icons/globe.js": {
"description": "",
"displayName": "IconGlobe",
Expand Down
1 change: 1 addition & 0 deletions docs/src/components/icons/icons/exit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion docs/src/components/icons/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import Settings from './settings.svg';
import Share from './share.svg';
import Storage from './storage.svg';
import Verified from './verified.svg';
import Exit from './exit.svg';

export {
Attachment,
Expand Down Expand Up @@ -65,5 +66,6 @@ export {
Settings,
Share,
Storage,
Verified
Verified,
Exit
};
30 changes: 30 additions & 0 deletions lib/icons/exit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Path } from 'react-native-svg';
import ResizeableSvg from '../resizeable-svg';

const displayName = 'IconExit';

const propTypes = {
/** Icon color */
color: PropTypes.string,
/** Icon size */
size: PropTypes.number
};

const defaultProps = {
color: '#8E8E93',
size: 28
};

const Exit = ({ color, size, ...custom }) => (
<ResizeableSvg size={size} {...custom}>
<Path d="m23.7222222 3.4c1.5338164 0 2.7777778 1.24396135 2.7777778 2.77777778v15.70048312c0 1.5338164-1.2439614 2.7777777-2.7777778 2.7777777h-16.90821254c-1.53381642 0-2.77777778-1.2439613-2.77777778-2.7777777 0-.4649759.38043479-.8454107.84541063-.8454107.46497585 0 .84541063.3804348.84541063.8454107 0 .5978261.48913043 1.0869565 1.08695652 1.0869565h16.90821254c.5978261 0 1.0869565-.4891304 1.0869565-1.0869565v-15.70048312c0-.59782609-.4891304-1.08695652-1.0869565-1.08695652h-16.90821254c-.59782609 0-1.08695652.48913043-1.08695652 1.08695652 0 .46497584-.38043478.84541063-.84541063.84541063-.46497584 0-.84541063-.38043479-.84541063-.84541063 0-1.53381643 1.24396136-2.77777778 2.77777778-2.77777778zm-11.6545893 15.3502415 3.8405797-3.8828502h-13.56280197c-.46497585 0-.84541063-.3804348-.84541063-.8454106 0-.4649759.38043478-.8454107.84541063-.8454107h13.53864737l-3.9371981-3.87681155c-.3321256-.3321256-.3321256-.86352657 0-1.19565217.1570048-.16304348.3743961-.24758454.5978261-.24758454.2294686 0 .4408212.09057971.5978261.24758454l5.1086956 5.09661832c.2536232.2536232.3925121.5555556.3925121.8756039 0 .326087-.1328502.6280193-.3925121.8876812l-4.9879227 4.9758454c-.1570048.1630435-.3683575.2475845-.5978261.2475845-.2173913 0-.4287439-.084541-.5917874-.2355072l-.0060386-.0060387c-.326087-.3321256-.326087-.8695652 0-1.1956522z" fill={color} /> {/* eslint-disable-line max-len */}
</ResizeableSvg>
);

Exit.displayName = displayName;
Exit.propTypes = propTypes;
Exit.defaultProps = defaultProps;

export default Exit;
4 changes: 3 additions & 1 deletion lib/icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import Settings from './settings';
import Share from './share';
import Storage from './storage';
import Verified from './verified';
import Exit from './exit';

export {
Attachment,
Expand Down Expand Up @@ -65,5 +66,6 @@ export {
Settings,
Share,
Storage,
Verified
Verified,
Exit
};