jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
32 lines (26 loc) • 2.08 kB
JavaScript
;
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 SvgCalendarIcon = (_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: "calendar_svg__nc-icon-wrapper" },
React__default.createElement("path", { d: "M32 12a1 1 0 01-1-1V2a1 1 0 012 0v9a1 1 0 01-1 1zM15 12a1 1 0 01-1-1V2a1 1 0 012 0v9a1 1 0 01-1 1zM49 12a1 1 0 01-1-1V2a1 1 0 012 0v9a1 1 0 01-1 1z" }),
React__default.createElement("path", { d: "M35.587 55H6a1 1 0 01-1-1V21a1 1 0 011-1h52a1 1 0 011 1v20.211a14.065 14.065 0 012 2.605V9a2 2 0 00-2-2h-7v4a3 3 0 01-6 0V7H35v4a3 3 0 01-6 0V7H18v4a3 3 0 01-6 0V7H5a2 2 0 00-2 2v46a2 2 0 002 2h31.365a13.972 13.972 0 01-.778-2z" }),
React__default.createElement("path", { d: "M49 39a12 12 0 1012 12 12 12 0 00-12-12zm5 13h-4v4a1 1 0 01-2 0v-4h-4a1 1 0 010-2h4v-4a1 1 0 012 0v4h4a1 1 0 010 2z", "data-color": "color-2" }))));
};
const SvgCalendarStyle = (_a) => {
var { color = 'currentColor', title } = _a, props = tslib_es6.__rest(_a, ["color", "title"]);
return (React__default.createElement(SvgCalendarIcon, Object.assign({ color: getFillColor(props.theme, color), fill: getFillColor(props.theme, color), title: title }, props)));
};
const CalendarIcon = styled.withTheme(SvgCalendarStyle);
exports.CalendarIcon = CalendarIcon;