UNPKG

@littlespoon/icons

Version:
43 lines 2.85 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 }); 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 AddIcon(_a) { var _b = _a.fill, fill = _b === void 0 ? token_1.shadeWhite : _b, _c = _a.stroke, stroke = _c === void 0 ? token_1.shadeBlack : _c, _d = _a.size, size = _d === void 0 ? 'small' : _d, other = __rest(_a, ["fill", "stroke", "size"]); return ((0, jsx_runtime_1.jsxs)(AddIconBase, __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", size: size }, other, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "12", fill: fill }), (0, jsx_runtime_1.jsx)("title", { children: "Add icon" }), (0, jsx_runtime_1.jsx)("path", { d: "M12 2.75v18.5M2.75 12h18.5", stroke: stroke, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }))); } exports.default = AddIcon; var AddIconBase = 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 transform: scale(", ");\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n transition: transform 0.4s;\n transform: scale(", ");\n"])), function (props) { return (0, css_helpers_1.getScale)(props.size); }); var templateObject_1; //# sourceMappingURL=AddIcon.js.map