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
68 lines (51 loc) • 4.58 kB
JavaScript
;
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 MultiProductIcon = function (_Component) {
_inherits(MultiProductIcon, _Component);
function MultiProductIcon() {
_classCallCheck(this, MultiProductIcon);
return _possibleConstructorReturn(this, (MultiProductIcon.__proto__ || Object.getPrototypeOf(MultiProductIcon)).apply(this, arguments));
}
_createClass(MultiProductIcon, [{
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('path', {
d: 'M2.53636364,8.60878778 L2.53636364,18.1639611 L12.5,23.5 L22.4636364,18.1639611 L22.4636364,8.60878778 L12.5,13.9448267 L2.53636364,8.60878778 Z M12.5,1.5 L22.5,6.85296446 L12.5,12.2059289 L2.5,6.85296446 L12.5,1.5 Z M9.0935983,6.14104622 C8.34446727,5.74071269 7.44455077,5.74249879 6.69701475,6.14580281 C6.57072325,6.21393848 6.46730311,6.31776996 6.39966929,6.44433092 C6.20956697,6.80006317 6.34383656,7.24254952 6.69956881,7.43265184 L10.633561,9.53496628 C11.3826921,9.93529981 12.2826086,9.93351371 13.0301446,9.53020969 C13.1564361,9.46207402 13.2598562,9.35824254 13.32749,9.23168158 C13.5175924,8.87594933 13.3833228,8.43346298 13.0275905,8.24336066 L9.0935983,6.14104622 Z M13.6019648,3.62513838 C12.8461971,3.23400868 11.9459497,3.24174402 11.1970147,3.64580281 C11.0698699,3.71439887 10.9663464,3.81971687 10.8999453,3.94802166 C10.7174891,4.30057604 10.8553809,4.7342878 11.2079353,4.916744 L11.2920647,4.96028323 C12.0478324,5.35141292 12.9480797,5.34367758 13.6970147,4.9396188 C13.8241596,4.87102274 13.9276831,4.76570473 13.9940842,4.63739994 C14.1765404,4.28484556 14.0386486,3.8511338 13.6860942,3.66867761 L13.6019648,3.62513838 Z M16.1719245,5.04331532 L13.777895,6.33492094 L16.3331298,7.6760125 L18.7271593,6.38440688 L16.1719245,5.04331532 Z',
id: 'Combined-Shape',
fill: '#BBBBBB',
fillRule: 'nonzero'
})
)
)
);
}
}]);
return MultiProductIcon;
}(_react.Component);
MultiProductIcon.propTypes = {
width: _propTypes.PropTypes.string
};
MultiProductIcon.defaultProps = {
width: '20px'
};
exports.default = MultiProductIcon;