'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var React = require('react');
var React__default = _interopDefault(React);
var PropTypes = _interopDefault(require('prop-types'));
var index = require('../Icon/index.js');
var __chunk_2 = require('../../chunk-2b268ae7.js');
var __chunk_3 = require('../../chunk-6d243953.js');
require('../../chunk-f817ce38.js');

var StarHalf = function StarHalf(props) {
	return React__default.createElement(
		index,
		__chunk_3._extends({ name: 'add' }, props),
		function (_ref) {
			var primary = _ref.primary,
			    secondary = _ref.secondary,
			    background = _ref.background,
			    _ref$border = _ref.border;
			return React__default.createElement(
				'g',
				{ fill: primary, fillRule: 'evenodd', strokeWidth: '1.5' },
				React__default.createElement(
					'defs',
					null,
					React__default.createElement('path', { id: 'a', d: 'M0 0h24v24H0V0z' })
				),
				React__default.createElement(
					'clipPath',
					{ id: 'b' },
					React__default.createElement('use', { xlinkHref: '#a', overflow: 'visible' })
				),
				React__default.createElement('path', {
					clipPath: 'url(#b)',
					d: 'M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z'
				})
			);
		}
	);
};

var colorPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
	primary: PropTypes.string,
	secondary: PropTypes.string,
	border: PropTypes.string,
	background: PropTypes.string
})]);
StarHalf.defaultProps = {
	color: { primary: __chunk_2.theme.palette.blue, border: 'transparent' },
	hoverColor: { primary: __chunk_2.theme.palette.blue, border: 'transparent' },
	disabledColor: { primary: __chunk_2.theme.palette.grey90, border: 'transparent' },
	activeColor: { primary: __chunk_2.theme.palette.blue, border: 'transparent' }
};

StarHalf.propTypes = {
	color: colorPropType,
	disabledColor: colorPropType,
	activeColor: colorPropType,
	hoverColor: colorPropType
};

module.exports = StarHalf;
//# sourceMappingURL=index.js.map
