jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
27 lines (24 loc) • 1.72 kB
JavaScript
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
import React__default from 'react';
import { withTheme } from 'styled-components';
const getFillColor = (theme, color) => {
return theme && theme.colors[color] ? theme.colors[color] : color;
};
const SvgUkIcon = (_a) => {
var { title, theme = null, titleId = '' } = _a, props = __rest(_a, ["title", "theme", "titleId"]);
return (React__default.createElement("svg", Object.assign({ viewBox: "0 0 60 30", width: "1em", height: "1em", "aria-labelledby": titleId }, props),
title ? React__default.createElement("title", { id: titleId }, title) : null,
React__default.createElement("clipPath", { id: "uk_svg__a" },
React__default.createElement("path", { d: "M30 15h30v15zv15H0zH0V0zV0h30z" })),
React__default.createElement("path", { d: "M0 0v30h60V0z", fill: "#00247d" }),
React__default.createElement("path", { d: "M0 0l60 30m0-30L0 30", stroke: "#fff", strokeWidth: 6 }),
React__default.createElement("path", { d: "M0 0l60 30m0-30L0 30", clipPath: "url(#uk_svg__a)", stroke: "#cf142b", strokeWidth: 4 }),
React__default.createElement("path", { d: "M30 0v30M0 15h60", stroke: "#fff", strokeWidth: 10 }),
React__default.createElement("path", { d: "M30 0v30M0 15h60", stroke: "#cf142b", strokeWidth: 6 })));
};
const SvgUkStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = __rest(_a, ["color", "title"]);
return (React__default.createElement(SvgUkIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const UkIcon = withTheme(SvgUkStyle);
export { UkIcon };