UNPKG

@dialpad/dialtone-icons

Version:
63 lines (62 loc) 2.13 kB
import { I as i } from "../../constants-DeVuDy8J.js"; import { openBlock as d, createElementBlock as l, normalizeClass as s, createStaticVNode as n } from "vue"; import { _ as o } from "../../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconFigma", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (t) => Object.keys(i).includes(t) }, /** * 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 p(t, e, r, m, f, a) { return d(), l("svg", { "aria-label": r.ariaLabel, class: s([a.iconSizeClass, "d-icon d-icon--figma"]), "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Figma", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, [...e[0] || (e[0] = [ n('<path d="M12.333 12a3.666 3.666 0 1 1 7.333 0 3.666 3.666 0 0 1-7.333 0Z" fill="#1ABCFE"></path><path d="M5 19.333a3.667 3.667 0 0 1 3.667-3.666h3.666v3.666a3.667 3.667 0 1 1-7.333 0Z" fill="#0ACF83"></path><path d="M12.333 1v7.333H16A3.667 3.667 0 0 0 16 1h-3.667Z" fill="#FF7262"></path><path d="M5 4.667a3.667 3.667 0 0 0 3.667 3.666h3.666V1H8.667A3.667 3.667 0 0 0 5 4.667Z" fill="#F24E1E"></path><path d="M5 12a3.666 3.666 0 0 0 3.667 3.667h3.666V8.333H8.667A3.667 3.667 0 0 0 5 12Z" fill="#A259FF"></path>', 5) ])], 10, h); } const F = /* @__PURE__ */ o(c, [["render", p]]); export { F as default }; //# sourceMappingURL=figma.js.map