UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

122 lines (121 loc) 3.6 kB
import { g as s } from "../utils-BOfnFgIH.js"; import { I as a } from "../constants-DeVuDy8J.js"; import { openBlock as l, createElementBlock as n, normalizeClass as d, createElementVNode as e } from "vue"; import { _ as r } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { name: "DtIconDialpadAiColor", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (t) => Object.keys(a).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 a[this.size]; }, ariaHidden() { return this.ariaLabel ? "false" : "true"; }, dataQA() { return this.$attrs["data-qa"] ?? "dt-icon"; } }, created() { this.$emit("loaded"), this.uniqueID = s(); } }, u = ["aria-label", "data-qa", "aria-hidden"], _ = ["clip-path"], p = ["fill"], f = ["fill"], h = ["id"], m = /* @__PURE__ */ e("stop", { offset: ".1", "stop-color": "#F9008E" }, null, -1), g = /* @__PURE__ */ e("stop", { offset: ".9", "stop-color": "#7C52FF" }, null, -1), I = [ m, g ], q = ["id"], D = /* @__PURE__ */ e("stop", { offset: ".1", "stop-color": "#F9008E" }, null, -1), v = /* @__PURE__ */ e("stop", { offset: ".9", "stop-color": "#7C52FF" }, null, -1), b = [ D, v ], S = ["id"], C = /* @__PURE__ */ e("path", { fill: "#fff", transform: "translate(.955)", d: "M0 0h24v24H0z" }, null, -1), $ = [ C ]; function y(t, F, o, z, E, i) { return l(), n("svg", { "aria-label": o.ariaLabel, class: d([i.iconSizeClass, "d-icon d-icon--dialpad-ai-color"]), "data-qa": i.dataQA, "aria-hidden": i.ariaHidden, role: "img", "data-name": "Dialpad Ai Color", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, [ e("g", { "clip-path": `url(#${t.uniqueID}a)` }, [ e("path", { d: "M22.397 6.832a1.916 1.916 0 1 0 0-3.832 1.916 1.916 0 0 0 0 3.832Z", fill: `url(#${t.uniqueID}b)` }, null, 8, p), e("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.136 6.388c-.434 0-1.181.413-1.57 1.683v.002L4.882 19.946a1.498 1.498 0 0 1-2.86-.888l3.68-11.864V7.19c.599-1.952 2.168-3.798 4.433-3.798 2.265 0 3.832 1.842 4.432 3.79 0 0 0 .001 0 0l2.835 9.142c.39 1.265 1.136 1.68 1.57 1.68a1.926 1.926 0 0 0 1.926-1.927V9.821a1.498 1.498 0 0 1 2.995 0v6.257A4.921 4.921 0 0 1 18.973 21c-2.263 0-3.832-1.842-4.432-3.791 0-.001 0 0 0 0l-2.835-9.141c-.39-1.267-1.134-1.68-1.57-1.68Z", fill: `url(#${t.uniqueID}c)` }, null, 8, f) ], 8, _), e("defs", null, [ e("linearGradient", { id: `${t.uniqueID}b`, x1: "1.955", y1: "3", x2: "19.54", y2: "24.843", gradientUnits: "userSpaceOnUse" }, I, 8, h), e("linearGradient", { id: `${t.uniqueID}c`, x1: "1.955", y1: "3", x2: "19.54", y2: "24.843", gradientUnits: "userSpaceOnUse" }, b, 8, q), e("clipPath", { id: `${t.uniqueID}a` }, $, 8, S) ]) ], 10, u); } const L = /* @__PURE__ */ r(c, [["render", y]]); export { L as default }; //# sourceMappingURL=dialpad-ai-color.js.map