@dialpad/dialtone-icons
Version:
Dialtone icon library
56 lines (55 loc) • 2.14 kB
JavaScript
import { I as r } from "../constants-DeVuDy8J.js";
import { n as i } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
name: "DtIconWebchat",
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");
}
};
var s = function() {
var a = this, t = a._self._c;
return t("svg", { staticClass: "d-icon d-icon--webchat", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Webchat", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 13 12" } }, [t("path", { attrs: { fill: "currentColor", "fill-rule": "evenodd", d: "M4.842 1.342c.219-.22.515-.342.825-.342h4.666A1.167 1.167 0 0 1 11.5 2.167v4.73a.75.75 0 0 1-1.28.53l-.687-.687a.25.25 0 0 0-.177-.073H8.5V8a1.167 1.167 0 0 1-1.167 1.167H3.644a.25.25 0 0 0-.177.073l-.687.687a.75.75 0 0 1-1.28-.53v-4.73A1.167 1.167 0 0 1 2.667 3.5H4.5V2.167c0-.31.123-.606.342-.825ZM5.5 3.5h1.833A1.167 1.167 0 0 1 8.5 4.667v1h.856c.332 0 .65.131.884.366l.26.26V2.167A.167.167 0 0 0 10.333 2H5.667a.167.167 0 0 0-.167.167V3.5Zm5.427 3.22ZM7.5 4.667a.167.167 0 0 0-.167-.167H2.667a.167.167 0 0 0-.167.167v4.126l.26-.26a1.25 1.25 0 0 1 .884-.366h3.69A.167.167 0 0 0 7.5 8V4.667Z", "clip-rule": "evenodd" } })]);
}, d = [], l = /* @__PURE__ */ i(
n,
s,
d
);
const _ = l.exports;
export {
_ as default
};
//# sourceMappingURL=webchat.js.map