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

84 lines (67 loc) 5.55 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 LargeOrderIcon = function (_Component) { _inherits(LargeOrderIcon, _Component); function LargeOrderIcon() { _classCallCheck(this, LargeOrderIcon); return _possibleConstructorReturn(this, (LargeOrderIcon.__proto__ || Object.getPrototypeOf(LargeOrderIcon)).apply(this, arguments)); } _createClass(LargeOrderIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { width: this.props.width, viewBox: '0 0 25 25' }, _react2.default.createElement( 'g', { id: 'Icons/Additional-Info-Pannel/Express/Big-item', stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, _react2.default.createElement( 'g', { id: 'ic_weekend_24px', transform: 'translate(2.000000, 5.000000)' }, _react2.default.createElement( 'mask', { id: 'mask-2', fill: 'white' }, _react2.default.createElement('path', { d: 'M18.1818182,5.18181818 C17.1818182,5.18181818 16.3636364,6 16.3636364,7 L16.3636364,9.72727273 L3.63636364,9.72727273 L3.63636364,7 C3.63636364,6 2.81818182,5.18181818 1.81818182,5.18181818 C0.818181818,5.18181818 0,6 0,7 L0,11.5454545 C0,12.5454545 0.818181818,13.3636364 1.81818182,13.3636364 L18.1818182,13.3636364 C19.1818182,13.3636364 20,12.5454545 20,11.5454545 L20,7 C20,6 19.1818182,5.18181818 18.1818182,5.18181818 Z M15.4545455,0.636363636 L4.54545455,0.636363636 C3.54545455,0.636363636 2.72727273,1.45454545 2.72727273,2.45454545 L2.72727273,4.40909091 C3.78181818,4.78181818 4.54545455,5.78181818 4.54545455,6.97272727 L4.54545455,8.81818182 L15.4545455,8.81818182 L15.4545455,6.97272727 C15.4545455,5.79090909 16.2181818,4.79090909 17.2727273,4.40909091 L17.2727273,2.45454545 C17.2727273,1.45454545 16.4545455,0.636363636 15.4545455,0.636363636 Z', id: 'path-1' }) ), _react2.default.createElement('path', { id: 'Shape', fill: '#BBBBBB', fillRule: 'nonzero', d: 'M18.1818182,5.18181818 C17.1818182,5.18181818 16.3636364,6 16.3636364,7 L16.3636364,9.72727273 L3.63636364,9.72727273 L3.63636364,7 C3.63636364,6 2.81818182,5.18181818 1.81818182,5.18181818 C0.818181818,5.18181818 0,6 0,7 L0,11.5454545 C0,12.5454545 0.818181818,13.3636364 1.81818182,13.3636364 L18.1818182,13.3636364 C19.1818182,13.3636364 20,12.5454545 20,11.5454545 L20,7 C20,6 19.1818182,5.18181818 18.1818182,5.18181818 Z M15.4545455,0.636363636 L4.54545455,0.636363636 C3.54545455,0.636363636 2.72727273,1.45454545 2.72727273,2.45454545 L2.72727273,4.40909091 C3.78181818,4.78181818 4.54545455,5.78181818 4.54545455,6.97272727 L4.54545455,8.81818182 L15.4545455,8.81818182 L15.4545455,6.97272727 C15.4545455,5.79090909 16.2181818,4.79090909 17.2727273,4.40909091 L17.2727273,2.45454545 C17.2727273,1.45454545 16.4545455,0.636363636 15.4545455,0.636363636 Z' }) ) ) ); } }]); return LargeOrderIcon; }(_react.Component); LargeOrderIcon.propTypes = { width: _propTypes.PropTypes.string }; LargeOrderIcon.defaultProps = { width: '20px' }; exports.default = LargeOrderIcon;