@dialpad/dialtone-icons
Version:
Dialtone icon library
68 lines (67 loc) • 2.42 kB
JavaScript
import { I as t } from "../constants-DeVuDy8J.js";
import { openBlock as r, createElementBlock as d, normalizeClass as n, createElementVNode as l } from "vue";
import { _ as o } from "../_plugin-vue_export-helper-CHgC5LLL.js";
const c = {
name: "DtIconCoachingHub",
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");
}
}, s = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ l("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M3 1.5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1h.5A1.5 1.5 0 0 1 10 3v1a.5.5 0 1 1-1 0V3a.5.5 0 0 0-.5-.5H8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1h-.5A.5.5 0 0 0 2 3v7a.5.5 0 0 0 .5.5.5.5 0 0 1 0 1A1.5 1.5 0 0 1 1 10V3a1.5 1.5 0 0 1 1.5-1.5H3Zm1 1h3v-1H4v1Zm6.479 3.455c0-.38.314-.655.66-.655.347 0 .661.275.661.655s-.314.655-.66.655a.658.658 0 0 1-.662-.655Zm-3.507.5c-.174 0-.42.147-.545.527v.002l-1.252 3.773a.5.5 0 1 1-.95-.314L5.478 6.67c.21-.643.752-1.216 1.495-1.216.744 0 1.284.57 1.495 1.213l.964 2.906c.125.38.37.526.545.526.398 0 .663-.294.663-.588v-1.99a.5.5 0 1 1 1 0v1.99c0 .908-.776 1.588-1.663 1.588-.743 0-1.283-.57-1.495-1.213l-.963-2.905V6.98c-.126-.38-.371-.526-.546-.526Z",
fill: "currentColor"
}, null, -1), h = [
_
];
function m(e, u, i, f, v, a) {
return r(), d("svg", {
"aria-label": i.ariaLabel,
class: n([a.iconSizeClass, "d-icon d-icon--coaching-hub"]),
"data-qa": a.dataQA,
"aria-hidden": a.ariaHidden,
role: "img",
"data-name": "Coaching Hub",
viewBox: "0 0 12 12",
xmlns: "http://www.w3.org/2000/svg"
}, h, 10, s);
}
const H = /* @__PURE__ */ o(c, [["render", m]]);
export {
H as default
};
//# sourceMappingURL=coaching-hub.js.map