UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 3.12 kB
"use strict"; // THIS FILE WAS AUTO-GENERATED FOR PACKAGING, DO NOT MODIFY Object.defineProperty(exports, "__esModule", { value: true }); const types_1 = require("../../../types"); // tslint:disable-next-line const SVG_PROPS = { "xmlns": "http://www.w3.org/2000/svg", "viewBox": "0 0 3174 3333", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" }; class ContactBookOutline { constructor() { this.defaults = { height: "1em", width: "1em", fill: "black", }; } view(vnode) { return m("svg", Object.assign({}, this.genAttrs(vnode)), // tslint:disable-next-line m.trust('<path d="M213 152c-9 0-17 1-23 4-7 3-13 7-20 14-6 6-11 13-13 19-3 7-4 16-4 26v2901c0 10 1 19 4 26s7 13 13 19 13 11 20 14c6 3 14 4 23 4h2460c10 0 19-1 26-4s13-7 19-13 11-13 13-19c3-7 4-16 4-26V216c0-10-1-19-4-26s-7-13-13-19-13-11-19-13c-7-3-16-4-26-4H213zm911 1027v178c-90 23-86 269 14 269 31-1 173 206 194 241 41 67 0 91 0 137-436 98-562 36-562 478h1526c0-442-126-379-562-478 0-54-36-78 0-137 41-67 115-161 192-241 105 2 108-245 17-269v-178c0-429-817-429-817 0zM132 16c26-11 53-16 81-16h2460c29 0 57 5 83 16s49 26 70 47 36 44 47 70c10 26 16 53 16 83v312h191c14 0 27 3 40 9 14 7 26 16 35 28 7 9 12 19 15 29 3 11 5 21 5 31v429c0 10-2 19-5 29-1 4-3 8-5 11-5 10-13 19-22 26-5 4-10 7-16 10-12 6-24 9-37 9h-200v220h191c14 0 28 3 41 9 14 7 25 16 34 28 6 8 11 16 14 25 4 11 6 22 6 33v432c0 13-3 25-9 37-4 9-10 16-16 23-7 7-15 13-23 17-12 6-24 9-37 9h-200v220h191c11 0 22 2 33 6 14 5 25 12 35 21 10 10 17 21 21 34 4 11 6 22 6 33v428c0 8-1 15-3 23-1 2-1 4-2 6-4 13-11 24-21 33-7 7-15 12-23 17-12 6-25 9-37 9h-200v312c0 29-5 57-16 83s-26 49-47 70-44 36-70 47c-26 10-53 16-83 16H215c-29 0-56-5-81-16-25-10-48-26-69-47s-36-44-47-70c-10-26-16-54-16-83V213c0-29 5-57 16-83s26-49 47-70 44-36 69-47z" fill-rule="nonzero"/>')); } genAttrs(vnode) { const overrides = Object.values(types_1.GeneralIconAttrName) .reduce((acc, name) => { if (!name) { return acc; } if (vnode && vnode && vnode.attrs[name]) { acc[name] = vnode.attrs[name]; return acc; } if (name in this.defaults) { acc[name] = this.defaults[name]; } return acc; }, {}); const attrs = Object.assign({}, SVG_PROPS, overrides); if (!("style" in attrs) || !attrs.style) { attrs.style = {}; } if (attrs.style && typeof attrs.style !== "object") { throw new Error("attr.style must be an object for icons"); } attrs.style["vertical-align"] = "middle"; attrs.style["min-width"] = "1.25em"; const additionalClasses = "maille maille-uxwing-icon contact-book-outline"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = ContactBookOutline;