UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

70 lines (69 loc) 2.19 kB
import { I as t } from "../constants-DeVuDy8J.js"; import { openBlock as r, createElementBlock as d, normalizeClass as s, createElementVNode as i } from "vue"; import { _ as n } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconFacebook", 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__ */ i("path", { d: "M20.978 11.989a8.989 8.989 0 1 0-10.394 8.88v-6.282H8.302V11.99h2.282v-1.98c0-2.253 1.342-3.498 3.396-3.498.983 0 2.012.176 2.012.176V8.9h-1.134c-1.117 0-1.465.693-1.465 1.404v1.686h2.493l-.398 2.598h-2.095v6.281c4.297-.674 7.585-4.393 7.585-8.88", fill: "#1877F2" }, null, -1), h = /* @__PURE__ */ i("path", { d: "m15.488 14.587.398-2.598h-2.493v-1.686c0-.711.348-1.404 1.465-1.404h1.134V6.687s-1.03-.176-2.013-.176c-2.053 0-3.395 1.245-3.395 3.497v1.98H8.302v2.6h2.282v6.28a9.036 9.036 0 0 0 2.81 0v-6.28h2.094Z", fill: "#fff" }, null, -1), f = [ _, h ]; function m(e, u, o, v, p, a) { return r(), d("svg", { "aria-label": o.ariaLabel, class: s([a.iconSizeClass, "d-icon d-icon--facebook"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Facebook", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, f, 10, l); } const I = /* @__PURE__ */ n(c, [["render", m]]); export { I as default }; //# sourceMappingURL=facebook.js.map