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

83 lines (66 loc) 4.74 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 MultiPackageIcon = function (_Component) { _inherits(MultiPackageIcon, _Component); function MultiPackageIcon() { _classCallCheck(this, MultiPackageIcon); return _possibleConstructorReturn(this, (MultiPackageIcon.__proto__ || Object.getPrototypeOf(MultiPackageIcon)).apply(this, arguments)); } _createClass(MultiPackageIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { x: '0', y: '0', viewBox: '0 0 25 25', width: this.props.width }, _react2.default.createElement( 'g', { stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, _react2.default.createElement( 'g', { id: 'ic_school_black_24px' }, _react2.default.createElement('polygon', { id: 'Shape', points: '0 0 25 0 25 25 0 25' }), _react2.default.createElement( 'g', { id: 'Group', transform: 'translate(1.000000, 2.000000)' }, _react2.default.createElement( 'g', { id: 'Group-2', transform: 'translate(0.500000, 0.500000)' }, _react2.default.createElement('path', { d: 'M6.01818182,3.55439389 L6.01818182,8.33198055 L11,11 L15.9818182,8.33198055 L15.9818182,3.55439389 L11,6.22241334 L6.01818182,3.55439389 Z M11,0 L16,2.67648223 L11,5.35296446 L6,2.67648223 L11,0 Z M11.5181818,12.5543939 L16.5,15.2224133 L21.4818182,12.5543939 L21.4818182,17.3319806 L16.5,20 L11.5181818,17.3319806 L11.5181818,12.5543939 Z M16.5,9 L21.5,11.6764822 L16.5,14.3529645 L11.5,11.6764822 L16.5,9 Z M0.518181818,12.5543939 L5.5,15.2224133 L10.4818182,12.5543939 L10.4818182,17.3319806 L5.5,20 L0.518181818,17.3319806 L0.518181818,12.5543939 Z M5.5,9 L10.5,11.6764822 L5.5,14.3529645 L0.5,11.6764822 L5.5,9 Z', id: 'Combined-Shape', fill: '#BBBBBB', fillRule: 'nonzero' }), _react2.default.createElement('g', { id: 'Group-3', transform: 'translate(0.500000, 9.000000)' }) ) ) ) ) ); } }]); return MultiPackageIcon; }(_react.Component); MultiPackageIcon.propTypes = { width: _propTypes.PropTypes.string }; MultiPackageIcon.defaultProps = { width: '20px' }; exports.default = MultiPackageIcon;