UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

66 lines (65 loc) 2.54 kB
import { I as i } from "../constants-DeVuDy8J.js"; import { openBlock as r, createElementBlock as d, normalizeClass as s, createElementVNode as e } from "vue"; import { _ as n } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const o = { name: "DtIconWeChat", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (t) => Object.keys(i).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 i[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"); } }, l = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ e("g", { fill: "#51c332" }, [ /* @__PURE__ */ e("path", { d: "M16.043 7.946c.408 0 .807.034 1.2.083-.71-3.125-3.992-5.488-7.938-5.488-4.466 0-8.086 3.025-8.086 6.756 0 2.151 1.21 4.06 3.087 5.295L3.24 16.729l2.904-1.247c.623.222 1.27.404 1.961.49a5.666 5.666 0 0 1-.148-1.27c0-3.725 3.627-6.756 8.086-6.756zM12 5.581c.558 0 1.01.454 1.01 1.014a1.01 1.01 0 1 1-2.02 0c0-.56.452-1.014 1.01-1.014zM6.61 7.608a1.012 1.012 0 0 1 0-2.027c.557 0 1.01.454 1.01 1.014s-.453 1.013-1.01 1.013z" }), /* @__PURE__ */ e("path", { d: "M22.781 14.703c0-2.986-3.017-5.406-6.738-5.406-3.721 0-6.738 2.42-6.738 5.406 0 2.985 3.017 5.405 6.738 5.405.612 0 1.194-.087 1.759-.21l3.632 1.56-1.257-2.516c1.575-.99 2.604-2.511 2.604-4.24zm-8.76-.338c-.558 0-1.01-.454-1.01-1.014a1.011 1.011 0 1 1 2.021 0c0 .56-.452 1.014-1.01 1.014zm4.043 0c-.558 0-1.01-.454-1.01-1.014a1.012 1.012 0 1 1 2.021 0c0 .56-.452 1.014-1.01 1.014z" }) ], -1), m = [ _ ]; function h(t, f, c, p, u, a) { return r(), d("svg", { "aria-label": c.ariaLabel, class: s([a.iconSizeClass, "d-icon d-icon--we-chat"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "We Chat", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, m, 10, l); } const w = /* @__PURE__ */ n(o, [["render", h]]); export { w as default }; //# sourceMappingURL=we-chat.js.map