UNPKG

v-simple-icons

Version:

Simply beautiful open source icons as Vue functional components.

32 lines 2.12 kB
import _mergeJSXProps from "babel-helper-vue-jsx-merge-props"; export default { name: 'GoogleFitIcon', 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", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" } }, ctx.data]), [h("title", ["Google Fit icon"]), h("path", { attrs: { d: "M17.95 1.91a6.582 6.582 0 00-1.11.113c-1.11.244-2.173.775-2.979 1.584-.622.614-1.243 1.228-1.865 1.84l-.014-.039c-.388-.378-.772-.763-1.16-1.142-.534-.527-1.055-1.081-1.707-1.465a5.983 5.983 0 00-3.904-.846c-.894.1-1.755.435-2.514.912A5.989 5.989 0 00.633 5.154 5.86 5.86 0 00.078 8.76a5.75 5.75 0 001.518 3.045c.67.643 1.317 1.315 1.994 1.95.022.027.067.078.09.104.829.818 1.652 1.643 2.486 2.455 1.944 1.93 3.892 3.856 5.842 5.78 2.808-2.777 5.617-5.552 8.422-8.332.496-.455.96-.953 1.449-1.42.589-.567 1.142-1.192 1.504-1.932.873-1.721.82-3.88-.164-5.545-.865-1.514-2.442-2.584-4.157-2.875a6.28 6.28 0 00-1.113-.08zM5.882 5.512a2.38 2.38 0 011.678.63c.627.61 1.235 1.238 1.865 1.844l.004.006a442.001 442.001 0 00-3.268 3.229c-.501-.519-1.022-1.018-1.531-1.53-.212-.217-.45-.416-.611-.677a2.29 2.29 0 01-.354-1.373c.047-.924.726-1.776 1.615-2.026.196-.064.398-.097.602-.103zm12.008.008a2.345 2.345 0 011.775.642c.46.441.713 1.087.686 1.723a2.276 2.276 0 01-.66 1.5c-.61.611-1.226 1.215-1.833 1.828-1.957 1.915-3.898 3.846-5.851 5.766-1.086-1.074-2.172-2.145-3.256-3.22 1.086-1.068 2.17-2.142 3.256-3.212 1.467-1.45 2.93-2.903 4.396-4.354.393-.393.93-.647 1.487-.673Z" } })]); } };