UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

43 lines (38 loc) 2 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 StarOutline = 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 star-outline', 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("path", { d: "M7.494 12.536a1.15 1.15 0 0 1 1.01-.003l3.465 1.683-.59-3.773a1.15 1.15 0 0 1 .277-.942l2.518-2.83-3.56-.573a1.15 1.15 0 0 1-.849-.628L8 1.886 6.235 5.47a1.15 1.15 0 0 1-.85.628l-3.56.573 2.522 2.833c.225.253.327.593.279.929l-.546 3.783 3.414-1.68zm-3.096 2.972a1.15 1.15 0 0 1-1.646-1.196l.577-3.996L.673 7.33a1.15 1.15 0 0 1 .676-1.9l3.754-.603 1.865-3.789a1.15 1.15 0 0 1 2.064 0l1.865 3.789 3.754.603a1.15 1.15 0 0 1 .676 1.9l-2.653 2.982.623 3.987a1.15 1.15 0 0 1-1.638 1.212l-3.657-1.776-3.604 1.773z", fill: "currentColor", fillRule: "nonzero" })))); }); export { StarOutline }; //# sourceMappingURL=staroutline.js.map