@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.57 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: "DtIconTransferWebchat",
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 l = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--transfer-webchat", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Transfer Webchat", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12" } }, [t("g", { attrs: { "clip-path": `url(#${a.uniqueID}a)`, fill: "currentColor" } }, [t("path", { attrs: { "fill-rule": "evenodd", d: "M6.706 3.5a.5.5 0 0 1 .5-.5h2.905a1.39 1.39 0 0 1 1.39 1.386v4.427a1.384 1.384 0 0 1-1.39 1.385H5.192a.502.502 0 0 0-.354.146l-.916.913c-.522.52-1.422.155-1.422-.59v-2.48a.5.5 0 1 1 1 0v2.079l.632-.63c.282-.28.663-.438 1.06-.438h4.92a.39.39 0 0 0 .275-.113.384.384 0 0 0 .113-.272V4.386c0-.102-.04-.2-.113-.272A.39.39 0 0 0 10.111 4H7.206a.5.5 0 0 1-.5-.5Z", "clip-rule": "evenodd" } }), t("path", { attrs: { d: "M3.897 1.147a.5.5 0 0 1 .707 0l1.25 1.25a.5.5 0 0 1 0 .707l-1.25 1.25a.5.5 0 0 1-.707-.707l.396-.397H2.5a.5.5 0 0 1 0-1h1.793l-.396-.396a.5.5 0 0 1 0-.707Zm-1.293 2.5a.5.5 0 0 1 0 .707l-.397.396H4a.5.5 0 1 1 0 1H2.207l.397.397a.5.5 0 0 1-.707.707l-1.25-1.25a.5.5 0 0 1 0-.707l1.25-1.25a.5.5 0 0 1 .707 0Z" } })]), t("defs", [t("clipPath", { attrs: { id: `${a.uniqueID}a` } }, [t("path", { attrs: { fill: "#fff", d: "M0 0h12v12H0z", transform: "matrix(1 0 0 -1 0 12)" } })])])]);
}, d = [], o = /* @__PURE__ */ s(
n,
l,
d
);
const m = o.exports;
export {
m as default
};
//# sourceMappingURL=transfer-webchat.js.map