@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.65 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: "DtIconMessenger",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (a) => Object.keys(r).includes(a)
},
/**
* 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 t = this, e = t._self._c;
return e("svg", { staticClass: "d-icon d-icon--messenger", class: t.iconSizeClass, attrs: { "aria-label": t.ariaLabel, "data-qa": t.dataQA, "aria-hidden": t.ariaHidden, role: "img", "data-name": "Messenger", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [e("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12 2.86c-5.281 0-9.375 3.868-9.375 9.093 0 2.733 1.12 5.095 2.944 6.726a.75.75 0 0 1 .252.535l.051 1.668a.75.75 0 0 0 1.053.663l1.86-.822a.748.748 0 0 1 .501-.037c.855.236 1.765.36 2.714.36 5.281 0 9.375-3.868 9.375-9.093S17.281 2.86 12 2.86Z", fill: `url(#${t.uniqueID}a)` } }), e("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "m6.37 14.613 2.754-4.37a1.406 1.406 0 0 1 2.034-.375l2.19 1.643c.2.15.477.15.678-.002l2.958-2.245c.394-.3.91.173.646.592l-2.754 4.37a1.406 1.406 0 0 1-2.034.374l-2.19-1.642a.562.562 0 0 0-.678.002l-2.958 2.245c-.395.3-.91-.173-.646-.592Z", fill: "#fff" } }), e("defs", [e("radialGradient", { attrs: { id: `${t.uniqueID}a`, cx: "0", cy: "0", r: "1", gradientUnits: "userSpaceOnUse", gradientTransform: "translate(6.234 21.51) scale(20.4299)" } }, [e("stop", { attrs: { "stop-color": "#09F" } }), e("stop", { attrs: { offset: ".61", "stop-color": "#A033FF" } }), e("stop", { attrs: { offset: ".935", "stop-color": "#FF5280" } }), e("stop", { attrs: { offset: "1", "stop-color": "#FF7061" } })], 1)], 1)]);
}, l = [], d = /* @__PURE__ */ i(
n,
o,
l
);
const u = d.exports;
export {
u as default
};
//# sourceMappingURL=messenger.js.map