@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 4.39 kB
JavaScript
import { g as r } from "../utils-BOfnFgIH.js";
import { I as e } from "../constants-DeVuDy8J.js";
import { n as o } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const i = {
name: "DtIconOffice365",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (s) => Object.keys(e).includes(s)
},
/**
* 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 e[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 a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--office-365", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Office 365", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { d: "m12.571 2.069 1.366 3.597v12.297l-1.333 3.97 5.902-1.639a1.904 1.904 0 0 0 1.393-1.834V5.542a1.903 1.903 0 0 0-1.396-1.835L12.571 2.07z", fill: `url(#${a.uniqueID}a)` } }), t("path", { attrs: { d: "m7.239 16.878-1.757.96A1.001 1.001 0 0 1 4 16.96V7.45a1.9 1.9 0 0 1 .954-1.65l6.192-3.553a1.869 1.869 0 0 1 1.642-.107 1.86 1.86 0 0 1 1.15 1.724v1.8L8.904 7.5a1.415 1.415 0 0 0-.93 1.33v6.807a1.415 1.415 0 0 1-.736 1.24z", fill: `url(#${a.uniqueID}b)` } }), t("path", { attrs: { d: "M13.937 17.963v2.214a1.82 1.82 0 0 1-2.713 1.59l-3.88-2.174a.87.87 0 0 1 .425-1.63h6.168z", fill: `url(#${a.uniqueID}c)` } }), t("path", { attrs: { d: "m7.239 16.878-1.757.96A1.001 1.001 0 0 1 4 16.96V7.45a1.9 1.9 0 0 1 .954-1.65l6.192-3.553a1.869 1.869 0 0 1 1.642-.107 1.86 1.86 0 0 1 1.15 1.724v1.8L8.904 7.5a1.415 1.415 0 0 0-.93 1.33v6.807a1.415 1.415 0 0 1-.736 1.24z", fill: `url(#${a.uniqueID}d)` } }), t("path", { attrs: { d: "M13.937 17.963v2.214a1.82 1.82 0 0 1-2.713 1.59l-3.88-2.174a.87.87 0 0 1 .425-1.63h6.168z", fill: `url(#${a.uniqueID}e)` } }), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}a`, x1: "16.235", y1: ".94", x2: "16.235", y2: "20.54", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#FFB900" } }), t("stop", { attrs: { offset: ".166", "stop-color": "#EF8400" } }), t("stop", { attrs: { offset: ".313", "stop-color": "#E25C01" } }), t("stop", { attrs: { offset: ".429", "stop-color": "#DB4401" } }), t("stop", { attrs: { offset: ".5", "stop-color": "#D83B01" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}b`, x1: "12.782", y1: "1.762", x2: "2.29", y2: "16.747", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#800600" } }), t("stop", { attrs: { offset: ".6", "stop-color": "#C72127" } }), t("stop", { attrs: { offset: ".728", "stop-color": "#C13959" } }), t("stop", { attrs: { offset: ".847", "stop-color": "#BC4B81" } }), t("stop", { attrs: { offset: ".942", "stop-color": "#B95799" } }), t("stop", { attrs: { offset: "1", "stop-color": "#B85BA2" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}c`, x1: "7.462", y1: "19.982", x2: "20.393", y2: "19.982", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#F32B44" } }), t("stop", { attrs: { offset: ".6", "stop-color": "#A4070A" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}d`, x1: "12.997", y1: "1.455", x2: "10.775", y2: "4.629", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-opacity": ".4" } }), t("stop", { attrs: { offset: "1", "stop-opacity": "0" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}e`, x1: "16.26", y1: "20.268", x2: "10.46", y2: "19.761", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-opacity": ".4" } }), t("stop", { attrs: { offset: "1", "stop-opacity": "0" } })], 1)], 1)]);
}, p = [], l = /* @__PURE__ */ o(
i,
n,
p
);
const u = l.exports;
export {
u as default
};
//# sourceMappingURL=office-365.js.map