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) 2.04 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 SvgChartIcon = (_a) => { var { title, theme = null, titleId = '' } = _a, props = tslib_es6.__rest(_a, ["title", "theme", "titleId"]); return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 64 64", width: "1em", height: "1em", "aria-labelledby": titleId }, props), title ? React__default.createElement("title", { id: titleId }, title) : null, React__default.createElement("g", { className: "chart_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M44.949 33C44.435 39.701 38.831 45 32 45c-3.395 0-6.479-1.318-8.797-3.457L9.988 53.803C15.609 59.478 23.4 63 32 63c16.758 0 30.444-13.369 30.975-30H44.949z" }), React__default.createElement("path", { "data-color": "color-2", d: "M33 19.051c6.37.488 11.461 5.579 11.949 11.949h18.025C62.454 14.702 49.299 1.546 33 1.025v18.026z" }), React__default.createElement("path", { d: "M21.837 40.084A12.928 12.928 0 0119 32c0-6.831 5.299-12.435 12-12.949V1.025C14.368 1.556 1 15.242 1 32c0 7.776 2.885 14.887 7.631 20.335l13.206-12.251z" })))); }; const SvgChartStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgChartIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const ChartIcon = styled.withTheme(SvgChartStyle); exports.ChartIcon = ChartIcon;