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

62 lines (45 loc) 7.26 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 FAssuredBase = function (_Component) { _inherits(FAssuredBase, _Component); function FAssuredBase() { _classCallCheck(this, FAssuredBase); return _possibleConstructorReturn(this, (FAssuredBase.__proto__ || Object.getPrototypeOf(FAssuredBase)).apply(this, arguments)); } _createClass(FAssuredBase, [{ key: 'render', value: function render() { return _react2.default.createElement( 'svg', { viewBox: '0 0 20 20', width: this.props.width }, _react2.default.createElement( 'g', { stroke: 'none', strokeWidth: '1', fill: 'none', fillRule: 'evenodd' }, _react2.default.createElement('path', { d: 'M11.2948591,2.23200001 C11.9415066,2.05185883 12.6159072,2 13.2847571,2 C13.5151079,2.00545882 14.1333231,2 14.2172616,2.07369412 C14.3477012,2.17741178 14.4254099,2.33025884 14.4836915,2.48310591 C14.6114113,2.8461177 14.6835139,3.22277654 14.7445707,3.6021648 C14.747346,3.75501187 14.7750991,3.92696482 14.6918398,4.06616483 C14.6141311,4.20263542 14.4587692,4.26814131 14.3116499,4.30908249 C13.7759872,4.44555308 13.2154021,4.31724343 12.6797393,4.44555308 C12.2385204,4.53835309 11.8277466,4.77851405 11.5474124,5.12517665 C11.2171782,5.52910232 11.0423058,6.03125953 10.9451699,6.53355321 C10.8702643,6.98117676 10.775876,7.42877302 10.7009426,7.87912599 C10.6500146,8.19300836 10.7009426,7.88211688 10.6500146,8.19579236 C11.1744929,8.20400789 11.677852,8.19579236 12.2023858,8.20122389 C13.1076996,8.20122389 12.8987162,8.77559923 12.8518086,8.99275335 C12.804901,9.20990747 12.7352455,9.58500844 12.5992553,9.85794964 C12.485412,10.0899497 12.2967464,10.3028711 12.0386425,10.3847534 C11.9054275,10.4366123 11.7611114,10.4256946 11.6195705,10.4256946 C11.1532627,10.4256946 10.6870105,10.4311261 10.2208137,10.4256946 C10.1458804,10.7614396 10.0959248,11.1053182 10.0293173,11.4464947 C9.97945497,11.7174284 9.93004191,11.9888222 9.88070537,12.2604899 C9.83133806,12.5439604 9.47155594,14.4592105 8.801359,18.0062404 L8.80138184,18.0062447 C8.72700879,18.3998654 8.38309945,18.6848795 7.98251411,18.6848795 L6.27124259,18.6849354 C5.81097444,18.6849354 5.43785339,18.3118143 5.43785339,17.8515462 C5.43785339,17.7987316 5.44287392,17.7460365 5.45284723,17.6941721 C6.10100209,14.3235601 6.45064118,12.509309 6.50176452,12.2514187 C6.6115668,11.6470022 6.72116696,11.0421937 6.83776513,10.4393417 C6.78782803,10.428424 6.7045687,10.4247757 6.58798714,10.4283967 C5.83315805,10.4256127 5.07544263,10.4283967 4.32061354,10.4256127 C4.13738751,10.4202358 3.94872187,10.4256127 3.76555134,10.4038047 C3.45194119,10.3901577 3.13555574,10.4010753 2.82194559,10.3710245 C2.43340205,10.3710245 -0.250268193,10.0926245 0.0189369751,10.0926245 C0.257613722,10.0598988 0.499065781,10.0789774 0.737687022,10.0462518 C1.01804894,10.0462518 1.29274922,10.0107421 1.57311114,10.00804 C1.80346196,9.97801647 2.03658808,9.99439294 2.2669389,9.96436941 C2.53614407,9.96709882 2.80257392,9.92615764 3.07177909,9.92885976 C3.33543364,9.89878164 3.6045833,9.90699717 3.86823785,9.87970305 C3.84331555,9.7787421 3.82383287,9.67778116 3.80168589,9.57673833 C3.78225871,9.51393456 3.70455,9.52758162 3.65459441,9.51942068 C3.05235191,9.43475432 2.45288474,9.35016984 1.85341756,9.26828748 C1.89227191,9.23820937 1.94500282,9.25185642 1.9894078,9.24647948 C2.45566005,9.21091525 2.91913699,9.16997407 3.38538924,9.13730301 C3.49085106,9.13181689 3.59353756,9.1127383 3.69899938,9.11000889 C3.65181909,8.96805217 3.62406598,8.81250299 3.56023383,8.68146392 C2.56395268,8.53134626 1.56756052,8.39760508 0.573999178,8.23659707 C0.832103103,8.19565589 1.09298234,8.17652271 1.35108626,8.1492286 C2.46121067,8.1492286 3.57133507,8.15744413 4.68145948,8.15195801 C4.81184359,8.14379707 4.93956341,8.1738206 5.07000302,8.16838907 C5.68057145,8.1738206 6.29113987,8.1766046 6.90170829,8.17925213 C7.04047384,8.17925213 7.18201471,8.18746766 7.32078026,8.1738206 C7.4068149,7.62793821 7.51505203,7.08748736 7.6094126,6.54438897 C7.80645968,5.53172256 8.2144304,4.53827121 8.90825816,3.75495728 C9.2968017,3.29638878 9.7769305,2.91427111 10.3097902,2.62495345 C10.6176832,2.45035297 10.9562712,2.33298825 11.2948591,2.23200001 Z M10.247748,18.6848795 C10.1751564,18.6848795 10.1038243,18.6659145 10.0408177,18.6298632 C9.84108371,18.5155787 9.77181319,18.2610165 9.88609763,18.0612826 L13.5470608,11.6630478 C13.6212771,11.5333407 13.7592722,11.4533115 13.9087111,11.4533115 L15.1614443,11.4533115 C15.3654505,11.4533115 15.5394557,11.6010227 15.5725814,11.8023215 L16.6254741,18.2005562 C16.6291543,18.2229205 16.6310037,18.2455478 16.6310037,18.2682128 C16.6310037,18.4983315 16.4444556,18.6848795 16.214337,18.6848795 L15.3021221,18.6848795 C15.0961777,18.6848795 14.9211268,18.534421 14.890185,18.3308141 L14.7145671,17.1751904 L12.3212924,17.1751904 L11.6533109,18.4603723 C11.5816105,18.5983223 11.4390712,18.6848795 11.2836004,18.6848795 L10.247748,18.6848795 Z M14.3047585,13.5652002 L13.1472241,15.4924659 L14.5734631,15.4924659 L14.3047585,13.5652002 Z', fill: this.props.color }) ) ); } }]); return FAssuredBase; }(_react.Component); FAssuredBase.propTypes = { width: _propTypes.PropTypes.string, color: _propTypes.PropTypes.string.isRequired }; FAssuredBase.defaultProps = { width: '' }; exports.default = FAssuredBase;