@dialpad/dialtone-icons
Version:
Dialtone icon library
56 lines (55 loc) • 2.4 kB
JavaScript
import { I as l } from "../../constants-DeVuDy8J.js";
import { n as i } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
const r = {
name: "DtIconGoogleGlyph",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (t) => Object.keys(l).includes(t)
},
/**
* The label of the icon as read out by a screenreader. Leave this unset if your icon is purely presentational
*/
ariaLabel: {
type: String,
default: void 0
}
},
/**
* @TODO: Remove this emit once the icons migration is complete,
* they will no longer need this event.
* */
emits: ["loaded"],
computed: {
iconSizeClass() {
return l[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded");
}
};
var d = function() {
var e = this, a = e._self._c;
return a("svg", { staticClass: "d-icon d-icon--google-glyph", class: e.iconSizeClass, attrs: { "aria-label": e.ariaLabel, "data-qa": e.dataQA, "aria-hidden": e.ariaHidden, role: "img", "data-name": "Google Glyph", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [a("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M20.64 12.205c0-.639-.057-1.252-.164-1.841H12v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z", fill: "#4285F4" } }), a("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 21c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H3.957v2.332A8.997 8.997 0 0 0 12 21Z", fill: "#34A853" } }), a("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.964 13.71A5.41 5.41 0 0 1 6.682 12c0-.593.102-1.17.282-1.71V7.958H3.957a9.005 9.005 0 0 0 0 8.084l3.007-2.332Z", fill: "#FBBC05" } }), a("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 6.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C16.463 3.891 14.426 3 12 3a8.997 8.997 0 0 0-8.043 4.958l3.007 2.332C7.672 8.163 9.656 6.58 12 6.58Z", fill: "#EA4335" } })]);
}, n = [], o = /* @__PURE__ */ i(
r,
d,
n
);
const p = o.exports;
export {
p as default
};
//# sourceMappingURL=google-glyph.js.map