UNPKG

@dialpad/dialtone-icons

Version:
66 lines (65 loc) 1.98 kB
import { I as r } from "../../constants-DeVuDy8J.js"; import { openBlock as d, createElementBlock as l, normalizeClass as n, createElementVNode as s } from "vue"; import { _ as o } from "../../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconDialpadStarMark", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (e) => Object.keys(r).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 r[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"); } }, m = ["aria-label", "data-qa", "aria-hidden"]; function _(e, t, i, p, u, a) { return d(), l("svg", { "aria-label": i.ariaLabel, class: n([a.iconSizeClass, "d-icon d-icon--dialpad-star-mark"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Dialpad Star Mark", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, [...t[0] || (t[0] = [ s("path", { d: "M10.13 5.596c.109-.05.086-.246-.031-.273-1.745-.4-3.104-2-3.395-4.005-.02-.133-.246-.164-.293-.04-.752 2.397-2.378 4.272-4.542 5.186-.106.052-.084.234.029.262 1.704.423 3.027 1.993 3.324 3.96.02.13.227.158.275.037.866-2.507 2.525-4.39 4.633-5.127Z", fill: "currentColor" }, null, -1) ])], 10, m); } const b = /* @__PURE__ */ o(c, [["render", _]]); export { b as default }; //# sourceMappingURL=dialpad-star-mark.js.map