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

74 lines (57 loc) 4.47 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 WarningSignIcon = function (_Component) { _inherits(WarningSignIcon, _Component); function WarningSignIcon() { _classCallCheck(this, WarningSignIcon); return _possibleConstructorReturn(this, (WarningSignIcon.__proto__ || Object.getPrototypeOf(WarningSignIcon)).apply(this, arguments)); } _createClass(WarningSignIcon, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { width: this.props.width, height: this.props.height, viewBox: '0 0 24 24' }, _react2.default.createElement( 'g', { stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, _react2.default.createElement( 'g', { transform: 'translate(1.000000, 2.000000)', fill: '#E85C5C', fillRule: 'nonzero' }, _react2.default.createElement('path', { d: 'M21.7738337,16.7998801 L12.4614948,0.835215865 C12.1600287,0.318344265 11.6029573,0 11.000025,0 C10.3971596,0 9.84002136,0.318278177 9.53855525,0.835215865 L0.226216406,16.7998801 C-0.0753832133,17.3167517 -0.0753832133,17.9537706 0.226082896,18.4707083 C0.527549005,18.987646 1.08468721,19.3061224 1.68768619,19.3061224 L20.3123639,19.3061224 C20.9152961,19.3061224 21.4725011,18.9877121 21.7739672,18.4707083 C22.0753665,17.9537706 22.0753665,17.3167517 21.7738337,16.7998801 Z M1.68768619,17.6353603 L11.000025,1.67069608 L20.3123639,17.6353603 L1.68768619,17.6353603 Z' }), _react2.default.createElement('path', { d: 'M9.88187416,7.51620595 L10.3451685,12.8640666 C10.3721993,13.1788816 10.6200138,13.4383495 10.9429779,13.4668285 C11.3047309,13.4987223 11.6236052,13.2288165 11.6551731,12.8640666 L12.1184674,7.51620595 C12.1234518,7.45370686 12.1240909,7.38366921 12.1184674,7.31923716 C12.0645336,6.69643691 11.5201468,6.23574771 10.9025275,6.29006393 C10.2849083,6.34450902 9.82794031,6.89353457 9.88187416,7.51620595 Z' }), _react2.default.createElement('circle', { cx: '10.7755102', cy: '14.8163265', r: '1' }) ) ) ); } }]); return WarningSignIcon; }(_react.Component); WarningSignIcon.propTypes = { width: _propTypes.PropTypes.string, height: _propTypes.PropTypes.string }; WarningSignIcon.defaultProps = { width: '24px', height: '24px' }; exports.default = WarningSignIcon;