maille
Version:
Component library for MithrilJS
50 lines (49 loc) • 3.27 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", "width": "64", "height": "64", "viewBox": "0 0 640 640", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" };
class IdCardOutline {
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="M36.756 105.97H603.255v.06c10.146.01 19.335 4.157 25.973 10.83 6.602 6.661 10.713 15.862 10.713 25.984h.07v.036h-.07v375.7c0 8.493-6.886 15.39-15.39 15.39v.06H15.449c-8.54 0-15.461-6.921-15.461-15.45 0-.472.024-.944.07-1.405V142.88h-.07v-.011h.07a36.808 36.808 0 0 1 10.725-26.009c6.626-6.673 15.804-10.819 25.938-10.83v-.06h.035zm45.615 71.706h392.213v57.166H82.371v-57.166zm416.261 0h58.997v57.166h-58.997v-57.166zM82.372 462.325v-32.47c17.373-7.724 70.559-22.05 73.063-43.323.567-4.795-10.748-23.457-13.347-32.232-3.26-5.21-5.02-7.052-4.937-13.477.048-3.614.107-7.17.615-10.642.673-4.44.531-4.57 2.858-8.15 2.41-3.708 1.382-17.267 1.382-22.382 0-50.906 89.198-50.918 89.198 0 0 6.437-1.489 18.26 2.02 23.327 1.688 2.457 1.393 2.752 1.96 5.764.744 3.933.803 7.973.862 12.083.083 6.425-1.665 8.268-4.925 13.477-3.165 9.212-15.19 26.646-14.162 31.866 3.827 19.418 53.15 32.469 68.682 39.378v36.78H82.371zm234.604-177.262H557.63v31.665H316.976v-31.665zm5.575 142.632h235.078v31.665H322.551v-31.665zm101.8-71.316h133.277v31.666H424.351v-31.666zm-101.8 0h74.587v31.666h-74.587v-31.666zm280.692-219.511H36.721v-.06c-1.548 0-3.012.686-4.087 1.772-1.11 1.122-1.795 2.634-1.795 4.288h.059v.012h-.06v360.252h578.323V142.88h-.06v-.036h.06c0-1.63-.685-3.142-1.784-4.252-1.087-1.098-2.551-1.783-4.122-1.783v.059h-.012z" 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 id-card-outline";
attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses;
return attrs;
}
}
exports.default = IdCardOutline;