UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

57 lines (56 loc) 2.63 kB
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 o = { name: "DtIconFront", 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 n = function() { var a = this, t = a._self._c; return t("svg", { staticClass: "d-icon d-icon--front", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Front", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [t("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M5.223 5.45a3.302 3.302 0 0 1 3.302-3.302h10.59v4.7a1.65 1.65 0 0 1-1.65 1.651h-4.33a1.588 1.588 0 0 0-1.561 1.566v10.279c0 .912-.74 1.65-1.651 1.65h-4.7V5.452z", fill: "#001B38" } }), t("path", { attrs: { d: "M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z", fill: `url(#${a.uniqueID}a)` } }), t("path", { attrs: { opacity: ".5", d: "M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z", fill: `url(#${a.uniqueID}b)` } }), t("defs", [t("linearGradient", { attrs: { id: `${a.uniqueID}a`, x1: "10.182", y1: "6.913", x2: "16.629", y2: "13.404", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#FF0057", "stop-opacity": ".16" } }), t("stop", { attrs: { offset: ".861", "stop-color": "#FF0057" } })], 1), t("linearGradient", { attrs: { id: `${a.uniqueID}b`, x1: "10.182", y1: "6.913", x2: "16.629", y2: "13.404", gradientUnits: "userSpaceOnUse" } }, [t("stop", { attrs: { "stop-color": "#FF0057", "stop-opacity": ".16" } }), t("stop", { attrs: { offset: ".861", "stop-color": "#FF0057" } })], 1)], 1)]); }, d = [], l = /* @__PURE__ */ s( o, n, d ); const f = l.exports; export { f as default }; //# sourceMappingURL=front.js.map