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)

29 lines (23 loc) 1.58 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 SvgMoonIcon = (_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 32 32", width: "1em", height: "1em", "aria-labelledby": titleId }, props), title ? React__default.createElement("title", { id: titleId }, title) : null, React__default.createElement("path", { d: "M29.7 18.5c-1.2.3-2.3.5-3.5.5C18.9 19 13 13.1 13 5.8c0-1.1.2-2.3.5-3.5.1-.3 0-.7-.3-1-.2-.3-.6-.4-1-.3C5.6 2.8 1 8.9 1 15.7 1 24.2 7.8 31 16.3 31c6.9 0 12.9-4.6 14.7-11.2.1-.3 0-.7-.3-1s-.6-.4-1-.3z" }))); }; const SvgMoonStyle = (_a) => { var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]); return (React__default.createElement(SvgMoonIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props))); }; const MoonIcon = styled.withTheme(SvgMoonStyle); exports.MoonIcon = MoonIcon;