UNPKG

fk-react-ui-components

Version:

Step 1 : Create a file in [ Seeds / Plants / Trees ] <br> Step 2 : It should export an Object with component name and story Component [Refer other components] <br> Step 3 : Story Component should return a react component <br> Step 3 : Created file should

78 lines (61 loc) 4.93 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var GlowingBulbIcon = function (_Component) { _inherits(GlowingBulbIcon, _Component); function GlowingBulbIcon() { _classCallCheck(this, GlowingBulbIcon); return _possibleConstructorReturn(this, (GlowingBulbIcon.__proto__ || Object.getPrototypeOf(GlowingBulbIcon)).apply(this, arguments)); } _createClass(GlowingBulbIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { width: this.props.width, height: this.props.height, viewBox: '0 0 24 24' }, _react2.default.createElement( 'g', { stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, _react2.default.createElement( 'g', { transform: 'translate(5.000000, 1.000000)' }, _react2.default.createElement('path', { d: 'M7.4695143,0 C3.43804216,0 0.525819696,2.98471481 0.063993372,6.1907195 C-0.223968924,8.32805596 0.471487187,10.4114193 1.91673192,11.9874351 C3.18811262,13.3367636 3.88356873,15.1394666 3.88356873,16.9961427 L3.87813548,19.9214871 C3.87813548,21.1034989 4.86155389,22.0588235 6.07860208,22.0588235 L8.91475903,22.0588235 C10.1318072,22.0588235 11.1152256,21.1034989 11.1152256,19.9214871 L11.1206589,16.9961427 C11.1206589,15.0854935 11.7563492,13.3367636 12.9733974,12.1007787 C14.3045439,10.7514501 15,9.00811756 15,7.20541459 C14.9945667,3.20600469 11.577052,7.67004493e-16 7.4695143,7.67004493e-16 Z M10.0122757,19.9214871 C10.0122757,20.4828078 9.55044938,20.9361822 8.96909154,20.9361822 L6.13293459,20.9361822 C5.55157675,20.9361822 5.08975042,20.4882051 5.08975042,19.9214871 L5.08975042,18.6261316 L10.0068425,18.6261316 L10.0068425,19.9214871 L10.0122757,19.9214871 Z', id: 'Shape', fill: '#3F3F3F', fillRule: 'nonzero' }), _react2.default.createElement('path', { d: 'M12.163843,11.3127708 C10.7185983,12.7754429 9.96337645,14.7994358 9.96337645,16.9961427 L9.96337645,17.5034903 L5.04628442,17.5034903 L5.04628442,16.9961427 C5.04628442,14.9127794 4.17696428,12.8348134 2.73171955,11.2587976 C1.46033884,9.90946905 0.938746761,8.16613653 1.1669433,6.36343356 C1.57443711,3.66477641 4.10089876,1.12803869 7.47494755,1.12803869 C11.0065606,1.12803869 13.8427176,3.88606629 13.8427176,7.20541459 C13.8427176,8.7220599 13.2613597,10.1847321 12.163843,11.3127708 Z', id: 'Path', fill: '#F8E71C' }) ) ) ); } }]); return GlowingBulbIcon; }(_react.Component); GlowingBulbIcon.propTypes = { width: _propTypes.PropTypes.string, height: _propTypes.PropTypes.string }; GlowingBulbIcon.defaultProps = { width: '24px', height: '24px' }; exports.default = GlowingBulbIcon;