UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

72 lines (71 loc) 2.32 kB
import { I as t } from "../constants-DeVuDy8J.js"; import { openBlock as d, createElementBlock as l, normalizeClass as o, createElementVNode as r } from "vue"; import { _ as n } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const s = { name: "DtIconFolderTree", 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__ */ r("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.793 1.293A1 1 0 0 1 6.5 1h1a1 1 0 0 1 .8.4l.45.6H10a1 1 0 0 1 1 1v1.5a1 1 0 0 1-1 1H6.5a1 1 0 0 1-1-1V2a1 1 0 0 1 .293-.707ZM7.5 2h-1v2.5H10V3H8.75a1 1 0 0 1-.8-.4L7.5 2Zm-.061 4.5a1 1 0 0 1 .898.55l.002.005.218.445H10a1 1 0 0 1 1 1V10a1 1 0 0 1-1 1H6.5a1 1 0 0 1-1-1V7.5a1 1 0 0 1 1-1h.939Zm.001 1H6.5V10H10V8.5H8.561m-1.118-1H7.44Z", fill: "currentColor" }, null, -1), m = /* @__PURE__ */ r("path", { d: "M2 1.5a.5.5 0 0 0-1 0V8c0 .826.674 1.5 1.5 1.5H4a.5.5 0 0 0 0-1H2.5A.503.503 0 0 1 2 8V3.914c.157.056.325.086.5.086H4a.5.5 0 0 0 0-1H2.5a.503.503 0 0 1-.5-.5v-1Z", fill: "currentColor" }, null, -1), u = [ _, m ]; function h(e, f, i, H, p, a) { return d(), l("svg", { "aria-label": i.ariaLabel, class: o([a.iconSizeClass, "d-icon d-icon--folder-tree"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Folder Tree", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" }, u, 10, c); } const g = /* @__PURE__ */ n(s, [["render", h]]); export { g as default }; //# sourceMappingURL=folder-tree.js.map