All files / components/Icon/InfoLightIcon InfoLightIcon.jsx

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43            120x               120x                     8x   8x                              
import _ from 'lodash';
import React from 'react';
import Icon from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { createClass } from '../../../util/component-types';
 
const cx = lucidClassNames.bind('&-InfoLightIcon');
 
/**
 *
 * {"categories": ["visual design", "icons"], "extend": "Icon", "madeFrom": ["Icon"]}
 *
 * A light info icon.
 */
const InfoLightIcon = createClass({
	displayName: 'InfoLightIcon',
	propTypes: {
		...Icon.propTypes,
	},
 
	render() {
		const {
			className,
			isDisabled,
			...passThroughs,
		} = this.props;
 
		return (
			<Icon
				{...passThroughs}
				{..._.pick(passThroughs, _.keys(Icon.propTypes))}
				isDisabled={isDisabled}
				className={cx('&', className)}
			>
				<path className={cx('&-background')} d='M8,15c-3.859,0-7-3.141-7-7c0-3.86,3.141-7,7-7s7,3.14,7,7C15,11.859,11.859,15,8,15z'/>
				<path className={cx('&-mark', { '&-mark-is-disabled': isDisabled })} d='M8,0C3.582,0,0,3.582,0,8s3.582,8,8,8s8-3.582,8-8S12.418,0,8,0z M8,15c-3.859,0-7-3.141-7-7 c0-3.86,3.141-7,7-7s7,3.14,7,7C15,11.859,11.859,15,8,15z M7,3h2v2H7V3z M7,6h2v7H7V6z'/>
			</Icon>
		);
	},
});
 
export default InfoLightIcon;