UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

32 lines (26 loc) 1.91 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var tslib_es6 = require('../../node_modules/tslib/tslib.es6.js'); var React = require('react'); var React__default = _interopDefault(React); var styled = require('styled-components'); var styled__default = _interopDefault(styled); const getFillColor = (theme, color) => { return theme && theme.colors[color] ? theme.colors[color] : color; }; const SvgWeightIcon = (_a) => { var { title, theme = null } = _a, props = tslib_es6.__rest(_a, ["title", "theme"]); return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 64 64", width: "1em", height: "1em" }, props), title ? React__default.createElement("title", null, title) : null, React__default.createElement("g", { className: "weight_svg__nc-icon-wrapper" }, React__default.createElement("path", { "data-color": "color-2", d: "M61.812 3.416A1 1 0 0061 3H3a1 1 0 00-.948 1.316C2.143 4.589 4.378 11 13 11h17v6h4v-6h17c8.622 0 10.857-6.411 10.948-6.684a1 1 0 00-.136-.9z" }), React__default.createElement("path", { d: "M54 19H10a2 2 0 00-2 2v38a2 2 0 002 2h44a2 2 0 002-2V21a2 2 0 00-2-2zM32 55a15 15 0 1115-15 15 15 0 01-15 15z" }), React__default.createElement("path", { "data-color": "color-2", d: "M29 40c0-1.657 3-11 3-11s3 9.343 3 11a3 3 0 01-6 0z" })))); }; const SvgWeightStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgWeightIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const WeightIcon = styled.withTheme(SvgWeightStyle); exports.WeightIcon = WeightIcon;