UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

68 lines (67 loc) 2.35 kB
import { I as t } from "../constants-DeVuDy8J.js"; import { openBlock as i, createElementBlock as d, normalizeClass as n, createElementVNode as o } from "vue"; import { _ as s } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const l = { name: "DtIconTextCursorInput", 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"], u = /* @__PURE__ */ o("path", { fill: "currentColor", "fill-rule": "evenodd", d: "M2 2a.5.5 0 0 1 .5-.5H3a2 2 0 0 1 1.5.677A2 2 0 0 1 6 1.5h.5a.5.5 0 0 1 0 1H6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h.5a.5.5 0 0 1 0 1H6a2 2 0 0 1-1.5-.677A2 2 0 0 1 3 10.5h-.5a.5.5 0 0 1 0-1H3a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1h-.5A.5.5 0 0 1 2 2Zm.032 1.45H2.4a.5.5 0 0 1 0 1h-.34a.59.59 0 0 0-.56.56v1.98a.59.59 0 0 0 .56.56h.34a.5.5 0 0 1 0 1h-.368A1.59 1.59 0 0 1 .5 7V4.982A1.59 1.59 0 0 1 2.032 3.45Zm4.018.5a.5.5 0 0 1 .5-.5h3.418A1.59 1.59 0 0 1 11.5 5v2.002A1.555 1.555 0 0 1 9.952 8.55H6.55a.5.5 0 0 1 0-1h3.399a.555.555 0 0 0 .551-.551V5.01a.59.59 0 0 0-.56-.56H6.55a.5.5 0 0 1-.5-.5Z", "clip-rule": "evenodd" }, null, -1), _ = [ u ]; function h(e, m, r, p, f, a) { return i(), d("svg", { "aria-label": r.ariaLabel, class: n([a.iconSizeClass, "d-icon d-icon--text-cursor-input"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Text Cursor Input", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12" }, _, 10, c); } const x = /* @__PURE__ */ s(l, [["render", h]]); export { x as default }; //# sourceMappingURL=text-cursor-input.js.map