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

90 lines (73 loc) 5.22 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 ReplacementIcon = function (_Component) { _inherits(ReplacementIcon, _Component); function ReplacementIcon() { _classCallCheck(this, ReplacementIcon); return _possibleConstructorReturn(this, (ReplacementIcon.__proto__ || Object.getPrototypeOf(ReplacementIcon)).apply(this, arguments)); } _createClass(ReplacementIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { width: this.props.width, viewBox: '0 0 25 25', version: '1.1' }, _react2.default.createElement( 'g', { id: 'Icons/Additional-Info-Pannel/Express/Replacement', 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( 'g', { id: 'Group', transform: 'translate(5.000000, 1.500000)', fill: '#BBBBBB' }, _react2.default.createElement('path', { d: 'M14.8571429,4.50056683 C14.8571429,3.86938426 14.3454683,3.35770969 13.7142857,3.35770969 L13.7142857,3.35714286 L10.2857143,3.35714286 L10.2857143,5.07142857 L8,2.78571429 L10.2857143,0.5 L10.2857143,2.21428571 L13.7142857,2.21428571 L13.7142857,2.21485255 C14.9766509,2.21485255 16,3.23820169 16,4.50056683 L14.8571429,4.50056683 Z', id: 'Combined-Shape' }), _react2.default.createElement('path', { d: 'M14.8571429,9.00056683 C14.8571429,8.36938426 14.3454683,7.85770969 13.7142857,7.85770969 L13.7142857,7.85714286 L10.2857143,7.85714286 L10.2857143,9.57142857 L8,7.28571429 L10.2857143,5 L10.2857143,6.71428571 L13.7142857,6.71428571 L13.7142857,6.71485255 C14.9766509,6.71485255 16,7.73820169 16,9.00056683 L14.8571429,9.00056683 Z', id: 'Combined-Shape', transform: 'translate(12.000000, 7.285714) scale(-1, -1) translate(-12.000000, -7.285714) ' }), _react2.default.createElement('path', { d: 'M0.0232727273,11.5457378 L6.4,14.8720997 L12.7767273,11.5457378 L12.7767273,17.5022095 L6.4,20.8285714 L0.0232727273,17.5022095 L0.0232727273,11.5457378 Z M6.4,7.11428571 L12.8,10.4511986 L6.4,13.7881115 L0,10.4511986 L6.4,7.11428571 Z', id: 'Combined-Shape', fillRule: 'nonzero' }) ) ) ) ); } }]); return ReplacementIcon; }(_react.Component); ReplacementIcon.propTypes = { width: _propTypes.PropTypes.string }; ReplacementIcon.defaultProps = { width: '20px' }; exports.default = ReplacementIcon;