UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

57 lines (56 loc) 2.53 kB
import { g as r } from "../utils-BOfnFgIH.js"; import { I as s } from "../constants-DeVuDy8J.js"; import { n as i } from "../_plugin-vue2_normalizer-DSLOjnn3.js"; const o = { name: "DtIconGoogleDocs", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (e) => Object.keys(s).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 s[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"), this.uniqueID = r(); } }; var n = function() { var t = this, a = t._self._c; return a("svg", { staticClass: "d-icon d-icon--google-docs", class: t.iconSizeClass, attrs: { "aria-label": t.ariaLabel, "data-qa": t.dataQA, "aria-hidden": t.ariaHidden, role: "img", "data-name": "Google Docs", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [a("path", { attrs: { d: "M5.5 1A1.5 1.5 0 0 0 4 2.5v19A1.5 1.5 0 0 0 5.5 23h13a1.5 1.5 0 0 0 1.5-1.5V7l-6-6H5.5Z", fill: "#4E8DF5" } }), a("path", { attrs: { d: "M5.5 23A1.5 1.5 0 0 1 4 21.5v-.25a1.5 1.5 0 0 0 1.5 1.5h13a1.5 1.5 0 0 0 1.5-1.5v.25a1.5 1.5 0 0 1-1.5 1.5h-13Z", fill: "#417EE9" } }), a("path", { attrs: { d: "M5.5 1A1.5 1.5 0 0 0 4 2.5v.25a1.5 1.5 0 0 1 1.5-1.5h8.75L14 1H5.5Z", fill: "#639AF6" } }), a("path", { attrs: { d: "M20 12.125V7l-.875-.875h-4.22a.375.375 0 0 0-.265.64l5.36 5.36Z", fill: `url(#${t.uniqueID}a)` } }), a("path", { attrs: { d: "m14 1 6 6h-4.5A1.5 1.5 0 0 1 14 5.5V1Z", fill: "#A6C5FA" } }), a("path", { attrs: { d: "M16 12H8v1h8v-1Zm0 2H8v1h8v-1Zm-8 2h8v1H8v-1Zm6 2H8v1h6v-1Z", fill: "#fff" } }), a("defs", [a("linearGradient", { attrs: { id: `${t.uniqueID}a`, x1: "17", y1: "12.125", x2: "17", y2: "6", gradientUnits: "userSpaceOnUse" } }, [a("stop", { attrs: { "stop-color": "#4E8DF5" } }), a("stop", { attrs: { offset: "1", "stop-color": "#3D6ACD" } })], 1)], 1)]); }, l = [], d = /* @__PURE__ */ i( o, n, l ); const p = d.exports; export { p as default }; //# sourceMappingURL=google-docs.js.map