UNPKG

@dialpad/dialtone-icons

Version:
99 lines (98 loc) 3.12 kB
import { g as s } from "../../utils-BOfnFgIH.js"; import { I as r } from "../../constants-DeVuDy8J.js"; import { openBlock as n, createElementBlock as o, normalizeClass as d, createElementVNode as e } from "vue"; import { _ as u } from "../../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconMessenger", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (a) => Object.keys(r).includes(a) }, /** * 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 r[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"), this.uniqueID = s(); } }, f = ["aria-label", "data-qa", "aria-hidden"], p = ["fill"], m = ["id"]; function _(a, t, i, g, h, l) { return n(), o("svg", { "aria-label": i.ariaLabel, class: d([l.iconSizeClass, "d-icon d-icon--messenger"]), "data-qa": l.dataQA, "aria-hidden": l.ariaHidden, role: "img", "data-name": "Messenger", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, [ e("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 2.86c-5.281 0-9.375 3.868-9.375 9.093 0 2.733 1.12 5.095 2.944 6.726a.75.75 0 0 1 .252.535l.051 1.668a.75.75 0 0 0 1.053.663l1.86-.822a.748.748 0 0 1 .501-.037c.855.236 1.765.36 2.714.36 5.281 0 9.375-3.868 9.375-9.093S17.281 2.86 12 2.86Z", fill: `url(#${a.uniqueID}a)` }, null, 8, p), t[1] || (t[1] = e("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "m6.37 14.613 2.754-4.37a1.406 1.406 0 0 1 2.034-.375l2.19 1.643c.2.15.477.15.678-.002l2.958-2.245c.394-.3.91.173.646.592l-2.754 4.37a1.406 1.406 0 0 1-2.034.374l-2.19-1.642a.562.562 0 0 0-.678.002l-2.958 2.245c-.395.3-.91-.173-.646-.592Z", fill: "#fff" }, null, -1)), e("defs", null, [ e("radialGradient", { id: `${a.uniqueID}a`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(6.234 21.51) scale(20.4299)" }, [...t[0] || (t[0] = [ e("stop", { "stop-color": "#09F" }, null, -1), e("stop", { offset: ".61", "stop-color": "#A033FF" }, null, -1), e("stop", { offset: ".935", "stop-color": "#FF5280" }, null, -1), e("stop", { offset: "1", "stop-color": "#FF7061" }, null, -1) ])], 8, m) ]) ], 10, f); } const b = /* @__PURE__ */ u(c, [["render", _]]); export { b as default }; //# sourceMappingURL=messenger.js.map