@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.15 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 n = {
name: "DtIconJiraServiceDesk",
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 o = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--jira-service-desk", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Jira Service Desk", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "m13.322 9.894 5.441.034a.848.848 0 0 1 .674 1.358L11.407 22a5.707 5.707 0 0 1-1.155-7.983l3.07-4.123Z", fill: `url(#${a.uniqueID}a)` } }), t("path", { attrs: { d: "m10.25 14.007-5.408-.034a.848.848 0 0 1-.674-1.355L12.118 2a5.707 5.707 0 0 1 1.154 7.983l-3.022 4.024Z", fill: "#2684FF" } }), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}a`, x1: "13.109", y1: "10.695", x2: "15.395", y2: "17.607", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#0052CC" } }), t("stop", { attrs: { offset: "1", "stop-color": "#2684FF" } })], 1)], 1)]);
}, d = [], l = /* @__PURE__ */ s(
n,
o,
d
);
const m = l.exports;
export {
m as default
};
//# sourceMappingURL=jira-service-desk.js.map