@dialpad/dialtone-icons
Version:
Dialtone icon library
74 lines (73 loc) • 2.29 kB
JavaScript
import { I as t } from "../constants-DeVuDy8J.js";
import { openBlock as n, createElementBlock as l, normalizeClass as r, createElementVNode as i } from "vue";
import { _ as o } from "../_plugin-vue_export-helper-CHgC5LLL.js";
const s = {
name: "DtIconLinkedin",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (a) => Object.keys(t).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 t[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded");
}
}, c = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ i("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M20.52 2H3.476C2.662 2 2 2.646 2 3.441v17.116C2 21.354 2.662 22 3.476 22H20.52c.816 0 1.481-.646 1.481-1.443V3.441C22 2.646 21.335 2 20.52 2",
fill: "#006087"
}, null, -1), u = /* @__PURE__ */ i("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M6.449 4.755a1.72 1.72 0 1 1-.004 3.441 1.72 1.72 0 0 1 .004-3.441ZM4.965 19.05h2.967V9.5H4.965v9.549ZM9.792 9.5h2.845v1.306h.04c.396-.751 1.364-1.542 2.807-1.542 3.004 0 3.558 1.977 3.558 4.548v5.238h-2.964v-4.644c0-1.107-.02-2.532-1.541-2.532-1.544 0-1.78 1.207-1.78 2.452v4.724H9.791V9.5Z",
fill: "#FFFFFE"
}, null, -1), h = [
_,
u
];
function m(a, f, d, p, v, e) {
return n(), l("svg", {
"aria-label": d.ariaLabel,
class: r([e.iconSizeClass, "d-icon d-icon--linkedin"]),
"data-qa": e.dataQA,
"aria-hidden": e.ariaHidden,
role: "img",
"data-name": "Linkedin",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, h, 10, c);
}
const k = /* @__PURE__ */ o(s, [["render", m]]);
export {
k as default
};
//# sourceMappingURL=linkedin.js.map