UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

38 lines (33 loc) 2.63 kB
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('&-WrenchIcon'); export var WrenchIcon = function WrenchIcon(_ref) { var className = _ref.className, passThroughs = _objectWithoutProperties(_ref, ["className"]); return /*#__PURE__*/React.createElement(Icon, _extends({}, omitProps(passThroughs, undefined, _keys(WrenchIcon.propTypes), false), _pick(passThroughs, _keys(iconPropTypes)), { className: cx('&', className) }), /*#__PURE__*/React.createElement("path", { d: "M15.18 4.728l-2.576 1.451-1.844-1.075-.01-2.134 2.577-1.451.003-.367c-1.368-.826-3.134-.899-4.611-.029C7.014 2.127 6.203 4.145 6.625 6.01l-5.427 5.427c-.93.93-.93 2.439 0 3.369.93.93 2.439.93 3.369 0l5.422-5.422c1.072.248 2.236.107 3.264-.486 1.471-.85 2.247-2.419 2.247-3.989l-.32-.181z" }), /*#__PURE__*/React.createElement("circle", { cx: "2.864", cy: "13.144", r: ".25" })); }; WrenchIcon.displayName = 'WrenchIcon'; WrenchIcon.peek = { description: "\n\t\tA wrench icon, used for indicating something you forcibly pull, twist, turn or jerk.\n\t", categories: ['visual design', 'icons'], extend: 'Icon', madeFrom: ['Icon'] }; WrenchIcon.propTypes = iconPropTypes; WrenchIcon.defaultProps = Icon.defaultProps; export default WrenchIcon;