UNPKG

maille

Version:

Component library for MithrilJS

50 lines (49 loc) 2.96 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 2226 2701", "shape-rendering": "geometricPrecision", "text-rendering": "geometricPrecision", "image-rendering": "optimizeQuality", "fill-rule": "evenodd", "clip-rule": "evenodd" }; class ClipboardOutline { 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="M1473 286c-7 0-13-1-19-3-31 0-57-25-57-57V114H845v112c0 29-23 54-51 56-6 2-13 3-20 3H566v232h1089V285h-184zm78 2401c-10 9-24 15-38 15-3 0-6 0-9-1H126c-34 0-66-14-89-37s-37-54-37-89V446c0-35 14-66 37-89s54-37 89-37h328v-62c0-23 9-44 25-60 15-15 36-25 60-25h194V95c0-26 11-49 28-66s40-28 66-28h591c26 0 49 11 66 28s28 40 28 66v78h175c23 0 44 10 60 25 15 15 25 37 25 60v62h328c35 0 66 14 89 37s37 54 37 89v1521c1 5 2 9 2 14 0 17-8 32-19 43l-651 659c-2 2-3 3-5 4zm-95-99v-493c0-47 19-90 50-121s74-50 121-50h484V446c0-3-1-7-4-9-2-2-5-4-9-4h-328v114c0 23-9 44-25 60-15 15-36 25-60 25H538c-23 0-45-10-60-25-2-2-3-4-5-6-12-15-20-34-20-54V433H125c-3 0-7 1-9 4-2 2-4 6-4 9v2129c0 4 1 7 4 9 2 2 5 4 9 4h1330zm113-493v413l465-471h-407c-16 0-30 7-41 17-10 10-17 25-17 41zM467 1861c-31 0-57-25-57-57 0-31 25-57 57-57h998c31 0 57 25 57 57 0 31-25 57-57 57H467zm0-760c-31 0-57-25-57-57 0-31 25-57 57-57h1290c31 0 57 25 57 57 0 31-25 57-57 57H467zm0 380c-31 0-57-25-57-57 0-31 25-57 57-57h1290c31 0 57 25 57 57 0 31-25 57-57 57H467z" 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 clipboard-outline"; attrs.className = attrs.className ? (attrs.className + " " + additionalClasses) : additionalClasses; return attrs; } } exports.default = ClipboardOutline;