UNPKG

v-simple-icons

Version:

Simply beautiful open source icons as Vue functional components.

32 lines 1.44 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'PepsiIcon', 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", ["Pepsi icon"]), h("path", { attrs: { d: "M12 0C8.93 0 5.86 1.17 3.517 3.514c-4.688 4.686-4.688 12.284 0 16.971 4.685 4.686 12.284 4.687 16.97 0 4.686-4.687 4.686-12.286-.002-16.97A11.958 11.958 0 0012.001 0zm0 .864c2.506 0 4.817.828 6.678 2.226a23.118 23.118 0 01-15.64 15.52A11.085 11.085 0 01.865 12C.865 5.85 5.85.864 12 .864zm9.342 5.08A11.082 11.082 0 0123.136 12c0 6.15-4.986 11.135-11.136 11.135a11.11 11.11 0 01-8.542-3.994c6.766-2.132 11.665-2.135 15.027-4.611 1.933-1.425 3.205-3.698 3.205-6.283 0-.802-.123-1.575-.348-2.303Z" } })]); } };