UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

66 lines (65 loc) 2.18 kB
import { I as t } from "../constants-DeVuDy8J.js"; import { openBlock as i, createElementBlock as d, normalizeClass as s, createElementVNode as n } from "vue"; import { _ as c } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const o = { name: "DtIconHear", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (e) => Object.keys(t).includes(e) }, /** * 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 t[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__ */ n("path", { d: "M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 5 5h2c0-3.93-3.07-7-7-7S7 5.07 7 9c0 1.26.38 2.65 1.07 3.9.91 1.65 1.98 2.48 2.85 3.15.81.62 1.39 1.07 1.71 2.05.6 1.82 1.37 2.84 2.73 3.55A3.999 3.999 0 0 0 21 18h-2c0 1.1-.9 2-2 2ZM7.64 2.64 6.22 1.22A10.965 10.965 0 0 0 3 9c0 3.04 1.23 5.79 3.22 7.78l1.41-1.41A9.011 9.011 0 0 1 5 9c0-2.49 1.01-4.74 2.64-6.36ZM11.5 9a2.5 2.5 0 0 0 5 0 2.5 2.5 0 0 0-5 0Z", fill: "currentColor" }, null, -1), m = [ _ ]; function h(e, u, r, f, p, a) { return i(), d("svg", { "aria-label": r.ariaLabel, class: s([a.iconSizeClass, "d-icon d-icon--hear"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Hear", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, m, 10, l); } const C = /* @__PURE__ */ c(o, [["render", h]]); export { C as default }; //# sourceMappingURL=hear.js.map