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

81 lines (64 loc) 4.3 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 ReturnOrderIcon = function (_Component) { _inherits(ReturnOrderIcon, _Component); function ReturnOrderIcon() { _classCallCheck(this, ReturnOrderIcon); return _possibleConstructorReturn(this, (ReturnOrderIcon.__proto__ || Object.getPrototypeOf(ReturnOrderIcon)).apply(this, arguments)); } _createClass(ReturnOrderIcon, [{ 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: 'M3.02545455,12.8469008 L10,16.4851091 L16.9745455,12.8469008 L16.9745455,19.3617917 L10,23 L3.02545455,19.3617917 L3.02545455,12.8469008 Z M10,8 L17,11.6497485 L10,15.299497 L3,11.6497485 L10,8 Z', id: 'Combined-Shape', fill: '#BBBBBB', fillRule: 'nonzero' }), _react2.default.createElement( 'g', { id: 'Group', transform: 'translate(3.000000, 2.000000)' }, _react2.default.createElement('path', { d: 'M13.5,2.13333333 L13.5,0 L10,3.73333333 L13.5,7.46666667 L13.5,5.28 C16,5.28 17.75,6.13333333 19,8 C18.5,5.33333333 17,2.66666667 13.5,2.13333333 Z', id: 'Shape', fill: '#BBBBBB' }), _react2.default.createElement('g', { id: 'Group-2', transform: 'translate(0.000000, 7.000000)' }) ) ) ) ); } }]); return ReturnOrderIcon; }(_react.Component); ReturnOrderIcon.propTypes = { width: _propTypes.PropTypes.string }; ReturnOrderIcon.defaultProps = { width: '20px' }; exports.default = ReturnOrderIcon;