UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

48 lines (43 loc) 1.94 kB
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 ArrowBack = 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 arrow-back', 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" }, createElement("g", { fill: "none", fillRule: "evenodd" }, createElement("path", { d: "M0 0h16v16H0z" }), createElement("g", { fill: "currentColor", fillRule: "nonzero" }, createElement("path", { d: "M13.666 8.25H2.333a.585.585 0 0 1-.583-.583c0-.322.262-.584.583-.584h11.333a.584.584 0 0 1 0 1.167z" }), createElement("path", { d: "M7.412 3.062a.25.25 0 0 1 0 .353L2.748 8.08a.587.587 0 0 1-.828 0 .587.587 0 0 1 0-.827l4.664-4.664a.585.585 0 0 1 .828.827.25.25 0 1 1 0-.353z" }), createElement("path", { d: "M1.923 8.08a.586.586 0 0 1 0-.826.586.586 0 0 1 .827 0l4.665 4.665a.585.585 0 0 1-.826.827L1.922 8.081z" }))))); }); export { ArrowBack }; //# sourceMappingURL=arrowback.js.map