@retailmenot/anchor
Version:
A React UI Library by RetailMeNot
46 lines (41 loc) • 2.08 kB
JavaScript
import { a as __rest } from './anchor-chunk-27f34e54.js';
import { a as Scale, b as StyledIcon, c as DefaultColor, d as DefaultScale } from './anchor-chunk-25c07228.js';
import { forwardRef, createElement, useContext, useState, Children, Fragment, useEffect, useRef, createRef, Component, cloneElement, useReducer, PureComponent, isValidElement, createContext, useImperativeHandle } from 'react';
import classNames from 'classnames';
import './anchor-chunk-7b9d8557.js';
import '@xstyled/styled-components';
import '@xstyled/system';
/* eslint-disable max-len */
var Download = forwardRef(function (_a, ref) {
var _a$color = _a.color,
color = _a$color === void 0 ? DefaultColor : _a$color,
_a$scale = _a.scale,
scale = _a$scale === void 0 ? DefaultScale : _a$scale,
className = _a.className,
props = __rest(_a, ["color", "scale", "className"]);
return createElement(StyledIcon, Object.assign({
ref: ref,
className: classNames('anchor-icon download', className),
scale: scale,
"$color": color
}, props), 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"
}, createElement("defs", null, createElement("path", {
d: "M10.395 11.85a.727.727 0 1 1 1.028 1.028l-2.908 2.91A.724.724 0 0 1 8 16a.724.724 0 0 1-.514-.212l-2.91-2.91a.727.727 0 1 1 1.029-1.028l1.668 1.668v-7.7a.726.726 0 1 1 1.455 0v7.7l1.667-1.668zM12.182 0A1.82 1.82 0 0 1 14 1.818v6.573a1.82 1.82 0 0 1-1.818 1.818h-2.121V8.754h2.121c.2 0 .363-.163.363-.363V1.818c0-.2-.163-.363-.363-.363H3.818c-.2 0-.364.163-.364.363v6.573c0 .2.164.363.364.363H5.94v1.455H3.818A1.82 1.82 0 0 1 2 8.391V1.818A1.82 1.82 0 0 1 3.818 0h8.364z",
id: "download-a"
})), createElement("g", {
fill: "none",
fillRule: "evenodd"
}, createElement("path", {
d: "M0 0h16v16H0z"
}), createElement("use", {
fill: "currentColor",
xlinkHref: "#download-a"
}))));
});
export { Download };
//# sourceMappingURL=download.js.map