@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.12 kB
JavaScript
import { g as s } from "../utils-BOfnFgIH.js";
import { I as r } from "../constants-DeVuDy8J.js";
import { n as i } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
name: "DtIconAsana",
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 = s();
}
};
var o = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--asana", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Asana", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "M17.65 12.787a4.35 4.35 0 1 0 0 8.699 4.35 4.35 0 0 0 0-8.7Zm-11.3 0a4.35 4.35 0 1 0 0 8.7 4.35 4.35 0 0 0 0-8.7Zm10-5.437a4.35 4.35 0 1 1-8.7 0 4.35 4.35 0 0 1 8.7 0Z", fill: `url(#${a.uniqueID}a)` } }), t("defs", [t("radialGradient", { attrs: { id: `${a.uniqueID}a`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "matrix(13.2526 0 0 12.2495 12 13.103)" } }, [t("stop", { attrs: { "stop-color": "#FFB900" } }), t("stop", { attrs: { offset: ".6", "stop-color": "#F95D8F" } }), t("stop", { attrs: { offset: ".999", "stop-color": "#F95353" } })], 1)], 1)]);
}, d = [], l = /* @__PURE__ */ i(
n,
o,
d
);
const u = l.exports;
export {
u as default
};
//# sourceMappingURL=asana.js.map