maille
Version:
Component library for MithrilJS
50 lines (49 loc) • 3.58 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 3435 3538", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" };
class BellOutline {
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="M2226 3118c-11 59-31 113-59 162-29 51-68 96-115 136s-99 70-155 91c-56 20-115 30-178 30s-122-10-178-30-108-50-155-91c-47-40-86-86-115-136-29-51-49-107-60-167-5-30 15-58 44-64 1 0 10-1 10-1h910c30 0 55 25 55 55 0 5-1 10-2 15zM2008 202c45 12 88 26 130 42 62 24 121 54 178 88 2 1 4 3 7 4 55 34 105 70 152 111 49 42 95 89 137 140 41 50 78 104 111 160 33 57 61 116 84 178 24 63 42 128 54 194 12 67 18 135 18 205v222c0 71 1 140 1 208v1c0 61 4 123 12 184s18 120 33 177c14 56 34 110 58 161 25 53 55 105 91 156 35 50 79 99 132 148 54 50 118 99 190 147 41 28 52 84 25 125-17 26-46 40-75 40H90c-50 0-90-40-90-90 0-33 17-61 44-77 73-49 136-98 188-147 52-48 96-98 131-148 1-1 2-3 3-4 34-50 63-100 87-152s44-106 59-162c0-1 1-2 1-3 14-54 25-111 32-171s11-122 11-186v-427c0-69 6-137 18-205s30-133 54-195 52-122 85-179 70-110 112-161v-1c42-50 88-97 138-139 49-42 103-81 160-115 58-35 118-64 180-87 43-16 87-30 133-41 16-54 42-98 80-132 52-46 121-69 206-69 84 1 152 24 204 70 38 34 65 78 80 131zm64 210c-50-20-101-35-153-46-40-5-73-37-78-79-5-39-16-67-34-83s-46-24-86-24c-39 0-67 7-85 23s-29 44-33 84c-4 38-33 71-73 78-56 11-110 26-163 46-52 20-103 44-151 73s-93 61-135 97-81 75-117 118c-35 43-67 88-95 137-28 48-52 99-73 153s-36 108-46 163-15 113-15 173v427c0 71-4 140-13 208-8 65-20 130-37 194 0 1-1 3-1 4-17 65-41 129-70 192-28 61-62 120-102 177-1 2-2 4-4 6-41 59-94 119-157 177l-2 2h2731c-62-57-114-116-156-176-42-59-77-120-106-183-30-64-53-128-70-193-16-65-29-131-37-199-8-65-12-133-13-205-1-67-1-137-1-209-1-135-1-208-1-222 0-59-5-117-15-173s-25-110-45-162c-20-54-44-104-72-152-27-47-59-93-94-136-35-42-74-81-116-117-41-35-84-66-129-94l-6-3c-49-29-99-55-151-75z" 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 bell-outline";
attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses;
return attrs;
}
}
exports.default = BellOutline;