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)

31 lines (25 loc) 1.9 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 SvgDownloadIcon = (_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: "download_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M62.906 37.587l.003-.003L52.82 16.173A1.998 1.998 0 0051 15h-9v4h7.712l8.637 18H42v7a2 2 0 01-2 2H24a2 2 0 01-2-2v-7H5.652l8.637-18H22v-4h-9c-.784 0-1.496.458-1.82 1.173L1.091 37.584l.003.003A.988.988 0 001 38v19a3 3 0 003 3h56a3 3 0 003-3V38a.988.988 0 00-.094-.413z" }), React__default.createElement("path", { "data-color": "color-2", d: "M31.226 35.633a1 1 0 001.548 0l9-11A1 1 0 0041 23h-8V4a1 1 0 10-2 0v19h-8a1 1 0 00-.774 1.633l9 11z" })))); }; const SvgDownloadStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgDownloadIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const DownloadIcon = styled.withTheme(SvgDownloadStyle); exports.DownloadIcon = DownloadIcon;