import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon/index.js';
import { a as theme } from '../../chunk-aeb80e51.js';
import { a as classCallCheck, b as createClass, c as defineProperty, d as inherits, e as objectWithoutProperties, f as possibleConstructorReturn, g as slicedToArray, h as _typeof, i as _extends } from '../../chunk-aad905a2.js';
import '../../chunk-566df01b.js';

var StarHalf = function StarHalf(props) {
	return React.createElement(
		Icon,
		_extends({ name: 'add' }, props),
		function (_ref) {
			var primary = _ref.primary,
			    secondary = _ref.secondary,
			    background = _ref.background,
			    _ref$border = _ref.border;
			return React.createElement(
				'g',
				{ fill: primary, fillRule: 'evenodd', strokeWidth: '1.5' },
				React.createElement(
					'defs',
					null,
					React.createElement('path', { id: 'a', d: 'M0 0h24v24H0V0z' })
				),
				React.createElement(
					'clipPath',
					{ id: 'b' },
					React.createElement('use', { xlinkHref: '#a', overflow: 'visible' })
				),
				React.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: theme.palette.blue, border: 'transparent' },
	hoverColor: { primary: theme.palette.blue, border: 'transparent' },
	disabledColor: { primary: theme.palette.grey90, border: 'transparent' },
	activeColor: { primary: theme.palette.blue, border: 'transparent' }
};

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

export default StarHalf;
//# sourceMappingURL=index.js.map
