@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.98 kB
JavaScript
import { g as i } from "../utils-BOfnFgIH.js";
import { I as r } from "../constants-DeVuDy8J.js";
import { n as s } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const o = {
name: "DtIconDialpadAiColor",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (e) => Object.keys(r).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 r[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded"), this.uniqueID = i();
}
};
var n = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--dialpad-ai-color", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Dialpad Ai Color", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { "clip-path": `url(#${a.uniqueID}a)` } }, [t("path", { attrs: { 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(#${a.uniqueID}b)` } }), t("path", { attrs: { "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(#${a.uniqueID}c)` } })]), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}b`, x1: "1.955", y1: "3", x2: "19.54", y2: "24.843", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { offset: ".1", "stop-color": "#F9008E" } }), t("stop", { attrs: { offset: ".9", "stop-color": "#7C52FF" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}c`, x1: "1.955", y1: "3", x2: "19.54", y2: "24.843", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { offset: ".1", "stop-color": "#F9008E" } }), t("stop", { attrs: { offset: ".9", "stop-color": "#7C52FF" } })], 1), t("clipPath", { attrs: { id: `${a.uniqueID}a` } }, [t("path", { attrs: { fill: "#fff", transform: "translate(.955)", d: "M0 0h24v24H0z" } })])], 1)]);
}, l = [], d = /* @__PURE__ */ s(
o,
n,
l
);
const f = d.exports;
export {
f as default
};
//# sourceMappingURL=dialpad-ai-color.js.map