UNPKG

v-simple-icons

Version:

Simply beautiful open source icons as Vue functional components.

32 lines 1.78 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'YammerIcon', props: { size: { type: String, default: '24', validator: function validator(s) { return !isNaN(s) || s.length >= 2 && !isNaN(s.slice(0, s.length - 1)) && s.slice(-1) === 'x'; } } }, functional: true, render: function render(h, ctx) { var size = ctx.props.size.slice(-1) === 'x' ? ctx.props.size.slice(0, ctx.props.size.length - 1) + 'em' : parseInt(ctx.props.size) + 'px'; var attrs = ctx.data.attrs || {}; attrs.width = attrs.width || size; attrs.height = attrs.height || size; ctx.data.attrs = attrs; return h("svg", _mergeJSXProps([{ attrs: { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, ctx.data]), [h("title", ["Yammer icon"]), h("path", { attrs: { d: "M20.852 6.489c.488-.389.611-1.088.268-1.621-.301-.47-.868-.662-1.378-.516l-.14.075c-.813.447-6.306 4.289-5.688 4.723.617.43 4.363-1.258 6.923-2.664m0 11.557c-2.574-1.405-6.321-3.092-6.938-2.664-.617.434 4.86 4.277 5.673 4.723l.137.075c.512.15 1.067-.044 1.368-.515.347-.534.211-1.233-.271-1.62m2.257-7.04c-.061-.015-.105-.015-.166-.015-.932 0-7.584.722-7.253 1.4.331.662 4.424.993 7.344.993.603-.106 1.053-.663 1.009-1.294-.046-.557-.437-1.008-.965-1.113M5.426 16.766c-.752 2.151-1.459 3.16-3.084 3.16-.151 0-.708-.029-.738-.046-.527-.029-1.008.317-1.144.844-.165.588.181 1.203.783 1.385.421.074.873.091 1.264.091 2.98 0 3.973-1.717 4.951-4.229l5.869-14.538c.211-.662-.165-1.354-.813-1.565-.646-.21-1.324.136-1.565.752L6.856 13.455h-.061L2.493 2.546c-.271-.602-.993-.903-1.64-.662-.663.241-1.009.978-.786 1.64l5.427 13.244-.068-.002z" } })]); } };