UNPKG

@littlespoon/icons

Version:
44 lines 3.79 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; 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; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.FilterBase = void 0; var jsx_runtime_1 = require("react/jsx-runtime"); var token_1 = require("@littlespoon/theme/lib/colors/token"); var styled_components_1 = __importDefault(require("styled-components")); var css_helpers_1 = require("./utils/css-helpers"); function FilterIcon(_a) { var _b = _a.fill, fill = _b === void 0 ? token_1.shadeWhite : _b, _c = _a.size, size = _c === void 0 ? 'small' : _c, _d = _a.stroke, stroke = _d === void 0 ? token_1.shadeBlack : _d, other = __rest(_a, ["fill", "size", "stroke"]); return ((0, jsx_runtime_1.jsxs)(exports.FilterBase, __assign({ xmlns: "http://www.w3.org/2000/svg", size: size, viewBox: "0 0 44 44" }, other, { children: [(0, jsx_runtime_1.jsx)("title", { children: "Filter icon" }), (0, jsx_runtime_1.jsx)("desc", { children: "Filter icon" }), (0, jsx_runtime_1.jsx)("path", { d: "M0 5a5 5 0 0 1 5-5h34a5 5 0 0 1 5 5v34a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5Z", fill: fill }), (0, jsx_runtime_1.jsx)("path", { stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "M13.584 28.38h16.833" }), (0, jsx_runtime_1.jsx)("circle", { cx: "27.562", cy: "28.666", r: "1.583", fill: fill, stroke: stroke, strokeWidth: "1.5" }), (0, jsx_runtime_1.jsx)("path", { stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "M13.584 15.047h16.833" }), (0, jsx_runtime_1.jsx)("path", { d: "M27.562 16.917a1.583 1.583 0 1 0 0-3.167 1.583 1.583 0 0 0 0 3.167Z", fill: fill, stroke: stroke, strokeWidth: "1.5" }), (0, jsx_runtime_1.jsx)("path", { stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", d: "M30.418 21.714H13.585" }), (0, jsx_runtime_1.jsx)("path", { d: "M16.44 23.584a1.583 1.583 0 1 1 0-3.167 1.583 1.583 0 0 1 0 3.167Z", fill: fill, stroke: stroke, strokeWidth: "1.5" })] }))); } exports.default = FilterIcon; exports.FilterBase = styled_components_1.default.svg(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.4s;\n height: ", ";\n width: ", ";\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.4s;\n height: ", ";\n width: ", ";\n"])), function (props) { return (0, css_helpers_1.getSvgSize)(props.size); }, function (props) { return (0, css_helpers_1.getSvgSize)(props.size); }); var templateObject_1; //# sourceMappingURL=FilterIcon.js.map