maille
Version:
Component library for MithrilJS
50 lines (49 loc) • 4.42 kB
JavaScript
;
// 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 3032 3333", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" };
class PhoneLandlineOutline {
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="M758 151v2625h537V151H758zM594 2852V76c0-42 37-76 82-76h701c45 0 82 34 82 76v2776c0 42-37 76-82 76H676c-45 0-82-34-82-76zM361 481c45 0 82 34 82 76s-37 76-82 76H199c-4 0-8 1-11 2-4 2-7 5-12 9-4 5-8 9-10 14-2 6-3 13-3 21v2463c0 8 1 15 3 20l1 2c2 4 4 7 8 10 3 3 7 6 11 7 3 1 8 2 13 2h2633c5 0 9-1 13-2s7-4 11-7c82-82 12 49 12-33V678c0-99 82 64-13-35-4-4-8-7-12-9-3-1-7-2-11-2H1697c-45 0-82-34-82-76s37-76 82-76h1135c28 0 55 6 80 16 24 10 46 26 65 45 18 19 32 40 41 63s14 47 14 72v2463c0 25-5 50-14 72-9 23-23 44-42 63s-41 33-65 43c-25 10-51 15-79 15H199c-28 0-54-5-79-15-24-10-46-24-65-43-17-17-30-36-39-57l-3-6c-9-23-14-47-14-72V676c0-25 5-49 14-72s23-45 41-63c19-19 40-34 65-45s52-16 80-16h162zm1426 307h734c22 0 43 4 62 12l6 3c16 7 32 17 45 30 16 14 28 31 36 48l3 9c6 16 9 32 9 49v342c0 20-4 39-12 57-8 17-20 33-35 47-16 15-33 26-52 33-20 8-41 12-62 12h-734c-21 0-42-4-62-12-19-7-36-18-52-32-16-15-28-31-36-49-1-2-2-4-2-6-6-16-10-33-10-51V938c0-20 4-39 12-57s20-34 36-49l1-1c24-21 55-33 57-34 18-6 36-9 55-9zm748 151h-762v340h762V939zm-396 782c29 0 55 11 76 33 22 22 32 47 32 76 0 31-11 57-32 78-22 21-47 31-76 31-31 0-57-10-77-31-21-21-31-47-31-78 0-29 11-54 31-76 21-22 47-33 77-33zm328 0c29 0 54 11 76 33s32 47 32 76c0 31-11 57-32 78-22 21-47 31-76 31-31 0-57-10-77-31-21-21-31-47-31-78 0-29 11-54 31-76 21-22 47-33 77-33zm-660 328c31 0 57 11 78 31 21 21 31 47 31 78 0 29-10 54-31 76s-47 33-78 33c-29 0-54-11-76-33s-33-47-33-76c0-31 11-57 33-78s47-31 76-31zm331 0c29 0 54 11 76 31 22 21 32 47 32 78 0 29-11 54-32 76-22 22-47 33-76 33-31 0-57-11-77-33-21-22-31-47-31-76 0-31 11-57 31-78 21-21 47-31 77-31zm328 0c29 0 54 11 76 31 22 21 32 47 32 78 0 29-11 54-32 76-22 22-47 33-76 33-31 0-57-11-77-33-21-22-31-47-31-76 0-31 11-57 31-78 21-21 47-31 77-31zm-660 326c31 0 57 11 78 32 21 22 31 48 31 79 0 29-10 54-31 76s-47 33-78 33c-29 0-54-11-76-33s-33-47-33-76c0-31 11-58 33-79 22-22 47-32 76-32zm331 0c29 0 55 11 76 32 22 22 32 48 32 79 0 29-11 54-32 76-22 22-47 33-76 33-31 0-57-11-77-33-21-22-31-47-31-76 0-31 11-58 31-79 21-22 47-32 77-32zm328 0c29 0 54 11 76 32 22 22 32 48 32 79 0 29-11 54-32 76-22 22-47 33-76 33-31 0-57-11-77-33-21-22-31-47-31-76 0-31 11-58 31-79 21-22 47-32 77-32zm-328 328c29 0 54 11 76 32 22 22 32 47 32 76 0 31-11 57-32 77-22 21-47 31-76 31-31 0-57-11-77-31-21-21-31-46-31-77 0-29 11-54 31-76 21-22 47-32 77-32zm-331-982c31 0 57 11 78 33s31 47 31 76c0 31-10 57-31 78s-47 31-78 31c-29 0-54-10-76-31s-33-47-33-78c0-29 11-54 33-76s47-33 76-33z" 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 phone-landline-outline";
attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses;
return attrs;
}
}
exports.default = PhoneLandlineOutline;