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
135 lines (118 loc) • 8.41 kB
JavaScript
'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 FormCheckIcon = function (_Component) {
_inherits(FormCheckIcon, _Component);
function FormCheckIcon() {
_classCallCheck(this, FormCheckIcon);
return _possibleConstructorReturn(this, (FormCheckIcon.__proto__ || Object.getPrototypeOf(FormCheckIcon)).apply(this, arguments));
}
_createClass(FormCheckIcon, [{
key: 'render',
value: function render() {
return _react2.default.createElement(
'svg',
{ x: '0', y: '0', viewBox: '0 0 100 80', width: this.props.width },
_react2.default.createElement(
'title',
null,
'Stage 1'
),
_react2.default.createElement(
'desc',
null,
'Created with Sketch.'
),
_react2.default.createElement('defs', null),
_react2.default.createElement(
'g',
{
id: 'Stage-1',
stroke: 'none',
strokeWidth: '1',
fill: 'none',
fillRule: 'evenodd'
},
_react2.default.createElement(
'g',
{ id: 'Group-8', transform: 'translate(26.000000, 22.000000)' },
_react2.default.createElement(
'g',
{ id: 'file', fill: '#2AA7E2', fillRule: 'nonzero' },
_react2.default.createElement('path', {
d: 'M30.4166667,18.3333333 L9.58333333,18.3333333 C9.12333333,18.3333333 8.75,18.7058333 8.75,19.1666667 C8.75,19.6275 9.12333333,20 9.58333333,20 L30.4166667,20 C30.8766667,20 31.25,19.6275 31.25,19.1666667 C31.25,18.7058333 30.8766667,18.3333333 30.4166667,18.3333333 Z',
id: 'Shape'
}),
_react2.default.createElement('path', {
d: 'M9.58333333,13.3333333 L17.9166667,13.3333333 C18.3766667,13.3333333 18.75,12.9608333 18.75,12.5 C18.75,12.0391667 18.3766667,11.6666667 17.9166667,11.6666667 L9.58333333,11.6666667 C9.12333333,11.6666667 8.75,12.0391667 8.75,12.5 C8.75,12.9608333 9.12333333,13.3333333 9.58333333,13.3333333 Z',
id: 'Shape'
}),
_react2.default.createElement('path', {
d: 'M30.4166667,25 L9.58333333,25 C9.12333333,25 8.75,25.3725 8.75,25.8333333 C8.75,26.2941667 9.12333333,26.6666667 9.58333333,26.6666667 L30.4166667,26.6666667 C30.8766667,26.6666667 31.25,26.2941667 31.25,25.8333333 C31.25,25.3725 30.8766667,25 30.4166667,25 Z',
id: 'Shape'
}),
_react2.default.createElement('path', {
d: 'M30.4166667,31.6666667 L9.58333333,31.6666667 C9.12333333,31.6666667 8.75,32.0391667 8.75,32.5 C8.75,32.9608333 9.12333333,33.3333333 9.58333333,33.3333333 L30.4166667,33.3333333 C30.8766667,33.3333333 31.25,32.9608333 31.25,32.5 C31.25,32.0391667 30.8766667,31.6666667 30.4166667,31.6666667 Z',
id: 'Shape'
}),
_react2.default.createElement('path', {
d: 'M30.4166667,38.3333333 L9.58333333,38.3333333 C9.12333333,38.3333333 8.75,38.7058333 8.75,39.1666667 C8.75,39.6275 9.12333333,40 9.58333333,40 L30.4166667,40 C30.8766667,40 31.25,39.6275 31.25,39.1666667 C31.25,38.7058333 30.8766667,38.3333333 30.4166667,38.3333333 Z',
id: 'Shape'
}),
_react2.default.createElement('path', {
d: 'M27.4283333,0 L0.416666667,0 L0.416666667,50 L39.5833333,50 L39.5833333,12.155 L27.4283333,0 Z M27.9166667,2.845 L36.7383333,11.6666667 L27.9166667,11.6666667 L27.9166667,2.845 Z M2.08333333,48.3333333 L2.08333333,1.66666667 L26.25,1.66666667 L26.25,13.3333333 L37.9166667,13.3333333 L37.9166667,48.3333333 L2.08333333,48.3333333 Z',
id: 'Shape'
})
),
_react2.default.createElement(
'g',
{
id: 'Group-7',
transform: 'translate(29.000000, 36.000000)',
stroke: '#2AA7E2'
},
_react2.default.createElement('circle', {
id: 'Oval-4',
strokeWidth: '2',
fill: '#FFE600',
cx: '10',
cy: '10',
r: '10'
}),
_react2.default.createElement(
'g',
{
id: 'right-arrow-(1)',
transform: 'translate(10.406250, 9.593750) rotate(-90.000000) translate(-10.406250, -9.593750) translate(5.406250, 5.593750)',
fill: '#1E201D',
fillRule: 'nonzero'
},
_react2.default.createElement('path', {
d: 'M6.6265625,0.3146875 C6.4925,0.1759375 6.269375,0.1759375 6.130625,0.3146875 C5.9965625,0.44875 5.9965625,0.671875 6.130625,0.805625 L8.6453125,3.3203125 L0.3471875,3.3203125 C0.15375,3.320625 0,3.474375 0,3.6678125 C0,3.86125 0.15375,4.02 0.3471875,4.02 L8.6453125,4.02 L6.130625,6.53 C5.9965625,6.66875 5.9965625,6.8921875 6.130625,7.0259375 C6.269375,7.1646875 6.4928125,7.1646875 6.6265625,7.0259375 L9.7365625,3.9159375 C9.8753125,3.781875 9.8753125,3.55875 9.7365625,3.425 L6.6265625,0.3146875 Z',
id: 'Shape'
})
)
)
)
)
);
}
}]);
return FormCheckIcon;
}(_react.Component);
FormCheckIcon.propTypes = {
width: _propTypes.PropTypes.string
};
FormCheckIcon.defaultProps = {
width: '20px'
};
exports.default = FormCheckIcon;