@dialpad/dialtone-icons
Version:
Dialtone icon library
68 lines (67 loc) • 2.05 kB
JavaScript
import { I as t } from "../constants-DeVuDy8J.js";
import { openBlock as i, createElementBlock as r, normalizeClass as l, createElementVNode as n } from "vue";
import { _ as s } from "../_plugin-vue_export-helper-CHgC5LLL.js";
const o = {
name: "DtIconBrandDialpad",
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");
}
}, c = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ n("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M12.025 11.197V4.18a.077.077 0 0 0-.132-.053L8.91 7.204a5.095 5.095 0 0 0-7.08 4.693 5.095 5.095 0 0 0 5.096 5.094 5.096 5.096 0 0 0 5.049-4.394v7.019c0 .069.083.102.131.053l2.982-3.079c.61.258 1.28.4 1.984.4a5.095 5.095 0 0 0 5.096-5.093 5.095 5.095 0 0 0-5.096-5.093 5.096 5.096 0 0 0-5.048 4.393Z",
fill: "#7C52FF"
}, null, -1), m = [
_
];
function p(e, u, d, f, h, a) {
return i(), r("svg", {
"aria-label": d.ariaLabel,
class: l([a.iconSizeClass, "d-icon d-icon--brand-dialpad"]),
"data-qa": a.dataQA,
"aria-hidden": a.ariaHidden,
role: "img",
"data-name": "Brand Dialpad",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, m, 10, c);
}
const I = /* @__PURE__ */ s(o, [["render", p]]);
export {
I as default
};
//# sourceMappingURL=brand-dialpad.js.map