UNPKG

lucid-ui

Version:

A UI component library from AppNexus.

42 lines (37 loc) 2.83 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('&-LightbulbIcon'); export var LightbulbIcon = function LightbulbIcon(_ref) { var className = _ref.className, passThroughs = _objectWithoutProperties(_ref, ["className"]); return /*#__PURE__*/React.createElement(Icon, _extends({}, omitProps(passThroughs, undefined, _keys(LightbulbIcon.propTypes), false), _pick(passThroughs, _keys(iconPropTypes)), { className: cx('&', className) }), /*#__PURE__*/React.createElement("path", { d: "M10 13.5H6M9 15.5H7" }), /*#__PURE__*/React.createElement("path", { id: "a_1_", d: "M10 11.5h0c0-.788.617-1.562.995-1.845l.095-.075c1.261-.946 1.986-2.427 1.986-4.004C13.076 2.801 10.806.5 8 .5S2.924 2.801 2.924 5.576c0 1.576.725 3.058 1.986 4.004l.095.075C5.383 9.939 6 10.712 6 11.5h4z", fillRule: "evenodd", clipRule: "evenodd", fill: "none" }), /*#__PURE__*/React.createElement("path", { d: "M8 11.474V6M7 6h2" })); }; LightbulbIcon.displayName = 'LightbulbIcon'; LightbulbIcon.peek = { description: "\n\t\tA lightbulb icon, used as a symbol for good ideas or innovation or literaly as just an ordinary glass housing containing a wire filament that gives off light when heated to incandescence by electricity.\n\t", categories: ['visual design', 'icons'], extend: 'Icon', madeFrom: ['Icon'] }; LightbulbIcon.propTypes = iconPropTypes; LightbulbIcon.defaultProps = Icon.defaultProps; export default LightbulbIcon;