@dialpad/dialtone-icons
Version:
Dialtone icon library
56 lines (55 loc) • 2.24 kB
JavaScript
import { I as i } from "../constants-DeVuDy8J.js";
import { n as r } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
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(i).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 i[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded");
}
};
var s = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--coaching-hub", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "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" } }, [t("path", { attrs: { "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" } })]);
}, o = [], d = /* @__PURE__ */ r(
n,
s,
o
);
const _ = d.exports;
export {
_ as default
};
//# sourceMappingURL=coaching-hub.js.map