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

85 lines (68 loc) 5.16 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 InfoIcon = function (_Component) { _inherits(InfoIcon, _Component); function InfoIcon() { _classCallCheck(this, InfoIcon); return _possibleConstructorReturn(this, (InfoIcon.__proto__ || Object.getPrototypeOf(InfoIcon)).apply(this, arguments)); } _createClass(InfoIcon, [{ 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(1.000000, 1.000000)' }, _react2.default.createElement('path', { d: 'M21.5607419,10.8492138 C21.5607419,16.8409732 16.73435,21.6981719 10.7805932,21.6981719 C4.82683649,21.6981719 0.000444594604,16.8409732 0.000444594604,10.8492138 C0.000444594604,4.85745432 4.82683649,0.000255675676 10.7805932,0.000255675676 C16.73435,0.000255675676 21.5607419,4.85745432 21.5607419,10.8492138', stroke: '#00B8F0', fill: '#FFFFFF' }), _react2.default.createElement('path', { d: 'M11.8761378,17.8325474 L9.90277297,17.8325474 C9.37878649,17.8325474 8.95451622,17.4055691 8.95451622,16.878238 L8.95451622,9.74680419 C8.95451622,9.34091905 9.28161081,9.01173662 9.68492162,9.01173662 L11.8761378,9.01173662 C12.2800838,9.01173662 12.6065432,9.34091905 12.6065432,9.74680419 L12.6065432,17.0974799 C12.6065432,17.503365 12.2800838,17.8325474 11.8761378,17.8325474', fill: '#00B8F0' }), _react2.default.createElement('path', { d: 'M11.8761378,17.8325474 L9.90277297,17.8325474 C9.37878649,17.8325474 8.95451622,17.4055691 8.95451622,16.878238 L8.95451622,9.74680419 C8.95451622,9.34091905 9.28161081,9.01173662 9.68492162,9.01173662 L11.8761378,9.01173662 C12.2800838,9.01173662 12.6065432,9.34091905 12.6065432,9.74680419 L12.6065432,17.0974799 C12.6065432,17.503365 12.2800838,17.8325474 11.8761378,17.8325474 Z', strokeLinecap: 'round', strokeLinejoin: 'round' }), _react2.default.createElement('path', { d: 'M12.6067973,5.70386865 C12.6067973,6.71890108 11.7893784,7.54153757 10.7807838,7.54153757 C9.77218919,7.54153757 8.95477027,6.71890108 8.95477027,5.70386865 C8.95477027,4.68883622 9.77218919,3.86619973 10.7807838,3.86619973 C11.7893784,3.86619973 12.6067973,4.68883622 12.6067973,5.70386865', fill: '#00B8F0' }) ) ) ); } }]); return InfoIcon; }(_react.Component); InfoIcon.propTypes = { width: _propTypes.PropTypes.string, height: _propTypes.PropTypes.string }; InfoIcon.defaultProps = { width: '24px', height: '24px' }; exports.default = InfoIcon;