@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
25 lines • 2.5 kB
JavaScript
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
// REACT
import * as React from 'react';
import classNames from 'classnames';
import { Scale, StyledIcon, DefaultColor, DefaultScale, } from '../utils';
/* eslint-disable max-len */
export const Calendar = React.forwardRef((_a, ref) => {
var { color = DefaultColor, scale = DefaultScale, className } = _a, props = __rest(_a, ["color", "scale", "className"]);
return (React.createElement(StyledIcon, Object.assign({ ref: ref, className: classNames('anchor-icon calendar', className), scale: scale, "$color": color }, props),
React.createElement("svg", { width: Scale[scale], height: Scale[scale], viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink" },
React.createElement("defs", null,
React.createElement("path", { d: "M13.069 11.586h1.598V9.84h-1.598v1.747zm0 3.086h1.598V12.92h-1.598v1.753zm-2.932 0h1.593V12.92h-1.593v1.753zm-2.932 0h1.593V12.92H7.205v1.753zm-2.933 0h1.593V12.92H4.272v1.753zm-2.272 0a.668.668 0 0 1-.66-.667V12.92h1.592v1.753H2zm-.66-3.086h1.593V9.84H1.34v1.747zm0-3.08h1.593v-1.79H1.34v1.79zm0-5.113A.67.67 0 0 1 2 2.737h1.34v.667a.666.666 0 0 0 .583.742.669.669 0 0 0 .746-.742v-.667h7.199v.667c0 .367.3.666.67.666.37 0 .67-.299.67-.666v-.667h.8a.67.67 0 0 1 .67.667l-.011 1.978H1.34V3.393zm11.729 5.113h1.598v-1.79h-1.598v1.79zm-2.932 0h1.593v-1.79h-1.593v1.79zm0 3.08h1.593V9.84h-1.593v1.747zm-2.932 0h1.593V9.84H7.205v1.747zm-2.933 0h1.593V9.84H4.272v1.747zm2.933-3.08h1.593v-1.79H7.205v1.79zm-2.933 0h1.593v-1.79H4.272v1.79zm11.725-6.435c0-.368-.3-.667-.67-.667h-2.1V.748a.667.667 0 0 0-.67-.666.666.666 0 0 0-.669.666v.667H4.659V.748a.67.67 0 0 0-1.33-.163c-.006.054 0 .83 0 .83H.67a.668.668 0 0 0-.67.656V15.33c0 .368.3.666.67.666h14.581a.669.669 0 0 0 .746-.58c.007-.054 0-13.344 0-13.344z", id: "calendar-a" })),
React.createElement("use", { fill: "currentColor", xlinkHref: "#calendar-a", fillRule: "evenodd" }))));
});
//# sourceMappingURL=Calendar.component.js.map