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.43 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 ExpressTruckIcon = function (_Component) {
_inherits(ExpressTruckIcon, _Component);
function ExpressTruckIcon() {
_classCallCheck(this, ExpressTruckIcon);
return _possibleConstructorReturn(this, (ExpressTruckIcon.__proto__ || Object.getPrototypeOf(ExpressTruckIcon)).apply(this, arguments));
}
_createClass(ExpressTruckIcon, [{
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_undo_black_24px' },
_react2.default.createElement('polygon', { id: 'Shape', points: '0 0 25 0 25 25 0 25' }),
_react2.default.createElement('path', {
d: 'M20.5454545,9.25 L18.0909091,9.25 L18.0909091,6 L6.63636364,6 C5.73636364,6 5,6.73125 5,7.625 L5,16.5625 L6.63636364,16.5625 C6.63636364,17.91125 7.73272727,19 9.09090909,19 C10.4490909,19 11.5454545,17.91125 11.5454545,16.5625 L16.4545455,16.5625 C16.4545455,17.91125 17.5509091,19 18.9090909,19 C20.2672727,19 21.3636364,17.91125 21.3636364,16.5625 L23,16.5625 L23,12.5 L20.5454545,9.25 Z M9.09090909,17.78125 C8.41181818,17.78125 7.86363636,17.236875 7.86363636,16.5625 C7.86363636,15.888125 8.41181818,15.34375 9.09090909,15.34375 C9.77,15.34375 10.3181818,15.888125 10.3181818,16.5625 C10.3181818,17.236875 9.77,17.78125 9.09090909,17.78125 Z M20.1363636,10.46875 L21.74,12.5 L18.0909091,12.5 L18.0909091,10.46875 L20.1363636,10.46875 Z M18.9090909,17.78125 C18.23,17.78125 17.6818182,17.236875 17.6818182,16.5625 C17.6818182,15.888125 18.23,15.34375 18.9090909,15.34375 C19.5881818,15.34375 20.1363636,15.888125 20.1363636,16.5625 C20.1363636,17.236875 19.5881818,17.78125 18.9090909,17.78125 Z M2,8 L5,8 L5,9 L2,9 L2,8 Z M5,9 L8,9 L8,10 L5,10 L5,9 Z M3,11 L5,11 L5,12 L3,12 L3,11 Z M5,12 L8,12 L8,13 L5,13 L5,12 Z',
id: 'Combined-Shape',
fill: '#BBBBBB',
fillRule: 'nonzero'
})
)
)
);
}
}]);
return ExpressTruckIcon;
}(_react.Component);
ExpressTruckIcon.propTypes = {
width: _propTypes.PropTypes.string
};
ExpressTruckIcon.defaultProps = {
width: '20px'
};
exports.default = ExpressTruckIcon;