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.87 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 SvgCheckDoubleIcon = (_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: "check_double_svg__nc-icon-wrapper" }, React__default.createElement("path", { d: "M60.3 11.388L31.4 46.274l-4.652-4.651-1.922 2.32 5.617 5.618A1.5 1.5 0 0031.5 50h.07a1.5 1.5 0 001.085-.541L62.612 13.3z", "data-color": "color-2" }), React__default.createElement("path", { d: "M16.5 50a1.5 1.5 0 01-1.061-.439L1.379 35.5 3.5 33.379l12.9 12.9 28.9-34.891 2.31 1.914-29.955 36.155A1.5 1.5 0 0116.57 50z" })))); }; const SvgCheckDoubleStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgCheckDoubleIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const CheckDoubleIcon = styled.withTheme(SvgCheckDoubleStyle); exports.CheckDoubleIcon = CheckDoubleIcon;