lucid-ui
Version:
A UI component library from AppNexus.
42 lines (37 loc) • 3.24 kB
JavaScript
import _pick from "lodash/pick";
import _keys from "lodash/keys";
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import React from 'react';
import Icon, { propTypes as iconPropTypes } from '../Icon';
import { lucidClassNames } from '../../../util/style-helpers';
import { omitProps } from '../../../util/component-types';
var cx = lucidClassNames.bind('&-GlobeIcon');
export var GlobeIcon = function GlobeIcon(_ref) {
var className = _ref.className,
passThroughs = _objectWithoutProperties(_ref, ["className"]);
return /*#__PURE__*/React.createElement(Icon, _extends({}, omitProps(passThroughs, undefined, _keys(GlobeIcon.propTypes), false), _pick(passThroughs, _keys(GlobeIcon.propTypes)), {
className: cx('&', className)
}), /*#__PURE__*/React.createElement("circle", {
cx: "8",
cy: "8",
r: "7.8",
fill: "none",
strokeWidth: "1.3",
strokeLinecap: "square",
strokeMiterlimit: "10"
}), /*#__PURE__*/React.createElement("path", {
d: "M9.397.631c-.212.759-.468 2.019.325 2.541.874.576 2.396-.221 3.073-.818M14.702 4.754l-2.335-.018c-.575-.004-1.047.338-1.287.85-.346.738-.251 1.421.477 1.834.854.483 1.819.961 1.479 2.119-.191.651-.273.577-.242 1.264.018.395.724 1.62 1.083 1.854M1.775 3.861c-.079.296-.107.827.432 1.342.808.772 1.382 1.131 1.508 1.275.126.143.655 1.393.622 1.847-.03.408.078.785.376 1.077.236.231.529.394.785.603.537.437.836 1.058.811 1.752-.036 1.023-.027 1.601.034 1.712.032.057.071.09.055-.015-.027-.173.043-.565.386-.937.233-.253.609-.303.841-.556.273-.296.309-.762.442-1.126.202-.555.59-1.028.79-1.587.285-.797-.193-1.165-.802-1.558-.757-.489-1.498-.747-2.411-.752-.464-.002-1.114.319-1.525.008-.976-.739-.551-2.377.53-2.418.522-.02 1.071-.064 1.436-.49.432-.504.921-.096.935-.088.177.14.008-.007.001-.024-.047-.098-.293-.67-.289-.93.013-.785-.172-1.563-.372-2.317"
}));
};
GlobeIcon.displayName = 'GlobeIcon';
GlobeIcon.peek = {
description: "\n\t\tA globe icon, a spherical model of the Earth.\n\t",
categories: ['visual design', 'icons'],
extend: 'Icon',
madeFrom: ['Icon']
};
GlobeIcon.propTypes = iconPropTypes;
GlobeIcon.defaultProps = Icon.defaultProps;
export default GlobeIcon;