@littlespoon/icons
Version:
Little Spoon icons
44 lines • 4.74 kB
JavaScript
;
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.GiftCardIconBase = 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 GiftCardIcon(_a) {
var _b = _a.fill, fill = _b === void 0 ? token_1.shadeBlack : _b, _c = _a.size, size = _c === void 0 ? 'small' : _c, other = __rest(_a, ["fill", "size"]);
return ((0, jsx_runtime_1.jsxs)(exports.GiftCardIconBase, __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", size: size }, other, { children: [(0, jsx_runtime_1.jsx)("title", { children: "GiftCard icon" }), (0, jsx_runtime_1.jsx)("desc", { children: "GiftCard icon" }), (0, jsx_runtime_1.jsx)("path", { d: "M8.25 4.5H5.4375C4.52582 4.5 3.65148 4.86216 3.00682 5.50682C2.36216 6.15148 2 7.02582 2 7.9375V10.75H4.835C4.55988 10.2734 4.4497 9.71934 4.52155 9.17375C4.5934 8.62815 4.84326 8.12151 5.23238 7.73238C5.62151 7.34326 6.12815 7.0934 6.67375 7.02155C7.21934 6.9497 7.7734 7.05988 8.25 7.335V4.5ZM9.5 9.5V10.75H10.75C10.9972 10.75 11.2389 10.6767 11.4445 10.5393C11.65 10.402 11.8102 10.2068 11.9049 9.97835C11.9995 9.74995 12.0242 9.49861 11.976 9.25614C11.9278 9.01366 11.8087 8.79093 11.6339 8.61612C11.4591 8.4413 11.2363 8.32225 10.9939 8.27402C10.7514 8.22579 10.5001 8.25054 10.2716 8.34515C10.0432 8.43976 9.84801 8.59998 9.71066 8.80554C9.57331 9.0111 9.5 9.25277 9.5 9.5ZM12.915 10.75C13.1901 10.2734 13.3003 9.71934 13.2285 9.17375C13.1566 8.62815 12.9067 8.12151 12.5176 7.73238C12.1285 7.34326 11.6218 7.0934 11.0763 7.02155C10.5307 6.9497 9.9766 7.05988 9.5 7.335V4.5H18.5625C19.4742 4.5 20.3485 4.86216 20.9932 5.50682C21.6378 6.15148 22 7.02582 22 7.9375V10.75H12.915ZM10.3837 12L12.4425 14.0575C12.5599 14.1749 12.6258 14.334 12.6258 14.5C12.6258 14.666 12.5599 14.8251 12.4425 14.9425C12.3251 15.0599 12.166 15.1258 12 15.1258C11.834 15.1258 11.6749 15.0599 11.5575 14.9425L9.5 12.8837V19.5H18.5625C19.4742 19.5 20.3485 19.1378 20.9932 18.4932C21.6378 17.8485 22 16.9742 22 16.0625V12H10.3837ZM8.25 19.5V12.8837L6.1925 14.9425C6.07514 15.0599 5.91597 15.1258 5.75 15.1258C5.58403 15.1258 5.42486 15.0599 5.3075 14.9425C5.19014 14.8251 5.12421 14.666 5.12421 14.5C5.12421 14.334 5.19014 14.1749 5.3075 14.0575L7.36625 12H2V16.0625C2 16.9742 2.36216 17.8485 3.00682 18.4932C3.65148 19.1378 4.52582 19.5 5.4375 19.5H8.25ZM8.25 9.5C8.25 9.25277 8.17669 9.0111 8.03934 8.80554C7.90199 8.59998 7.70676 8.43976 7.47835 8.34515C7.24995 8.25054 6.99861 8.22579 6.75614 8.27402C6.51366 8.32225 6.29093 8.4413 6.11612 8.61612C5.9413 8.79093 5.82225 9.01366 5.77402 9.25614C5.72579 9.49861 5.75054 9.74995 5.84515 9.97835C5.93976 10.2068 6.09998 10.402 6.30554 10.5393C6.5111 10.6767 6.75277 10.75 7 10.75H8.25V9.5Z", fill: fill })] })));
}
exports.default = GiftCardIcon;
exports.GiftCardIconBase = 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=GiftCardIcon.js.map