UNPKG

@pluralsight/ps-design-system-icon

Version:
37 lines 2.2 kB
// This file is generated by running the "icons" bin script. // Manual changes might be lost - proceed with caution! var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; 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; }; import React, { forwardRef } from 'react'; import Icon from '..'; var SearchIcon = forwardRef(function (props, ref) { var ariaLabel = props["aria-label"], rest = __rest(props, ['aria-label']); return (React.createElement(Icon, __assign({}, rest, { ref: ref }), React.createElement("svg", __assign({ "aria-label": "search icon", viewBox: "0 0 24 24", role: 'img' }, (ariaLabel && { 'aria-label': ariaLabel })), React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.353 20.648a.5.5 0 0 0 0-.708l-5.039-5.04A7.928 7.928 0 0 0 18 10a7.948 7.948 0 0 0-2.344-5.656A7.942 7.942 0 0 0 10 2a7.94 7.94 0 0 0-5.656 2.344A7.944 7.944 0 0 0 2 10a7.94 7.94 0 0 0 2.344 5.656A7.94 7.94 0 0 0 10 18a7.926 7.926 0 0 0 4.9-1.685l5.04 5.04a.5.5 0 0 0 .707 0l.706-.707zm-7.111-6.405A5.96 5.96 0 0 1 10 16a5.959 5.959 0 0 1-4.242-1.757A5.958 5.958 0 0 1 4 10c0-1.602.624-3.109 1.758-4.242A5.955 5.955 0 0 1 10 4c1.602 0 3.109.624 4.242 1.758A5.957 5.957 0 0 1 16 10c0 1.603-.624 3.11-1.758 4.243z" })))); }); SearchIcon.displayName = "SearchIcon"; SearchIcon.colors = Icon.colors; SearchIcon.sizes = Icon.sizes; export { SearchIcon }; //# sourceMappingURL=Search.dist.js.map