UNPKG

@dialpad/dialtone-icons

Version:
68 lines (67 loc) 2.55 kB
import { I as i } from "../../constants-DeVuDy8J.js"; import { openBlock as l, createElementBlock as d, normalizeClass as n, createElementVNode as o } from "vue"; import { _ as s } from "../../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconAiWrite", 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"); } }, h = ["aria-label", "data-qa", "aria-hidden"]; function m(e, t, r, v, u, a) { return l(), d("svg", { "aria-label": r.ariaLabel, class: n([a.iconSizeClass, "d-icon d-icon--ai-write"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Ai Write", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, [...t[0] || (t[0] = [ o("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.938 1a.5.5 0 0 1 .5.5v.424h.369a.5.5 0 1 1 0 1h-.37v.363a.5.5 0 0 1-1 0v-.363h-.43a.5.5 0 0 1 0-1h.43V1.5a.5.5 0 0 1 .5-.5Zm4.035.366a1.048 1.048 0 0 1 1.141.227h.001l.572.57a1.036 1.036 0 0 1 0 1.481l-2.083 2.07-.003.002-5.174 5.139a.5.5 0 0 1-.352.145h-1.35a.5.5 0 0 1-.5-.5V9.16a.5.5 0 0 1 .148-.355l7.26-7.211.001-.001c.097-.097.212-.174.339-.227Zm-.724 3.29 1.74-1.728a.033.033 0 0 0 .008-.038.036.036 0 0 0-.008-.012l-.005-.004-.577-.574a.048.048 0 0 0-.066 0l-.002.002L7.61 4.02l.64.636Zm-1.35.07.64.635L2.87 10h-.644v-.633L6.9 4.725ZM2.4 3.52a.5.5 0 0 1 .5.5v.394h.4a.5.5 0 0 1 0 1h-.4v.394a.5.5 0 1 1-1 0v-.394h-.4a.5.5 0 1 1 0-1h.4V4.02a.5.5 0 0 1 .5-.5Zm6.3 4.022a.5.5 0 0 1 .5.5v.394h.399a.5.5 0 0 1 0 1h-.4v.394a.5.5 0 0 1-1 0v-.394h-.4a.5.5 0 1 1 0-1h.4v-.394a.5.5 0 0 1 .5-.5Z", fill: "currentColor" }, null, -1) ])], 10, h); } const b = /* @__PURE__ */ s(c, [["render", m]]); export { b as default }; //# sourceMappingURL=ai-write.js.map