@dialpad/dialtone-icons
Version:
Dialtone icon library
93 lines (92 loc) • 3.7 kB
JavaScript
import { g as i } from "../../utils-BOfnFgIH.js";
import { I as s } from "../../constants-DeVuDy8J.js";
import { openBlock as l, createElementBlock as r, normalizeClass as d, createElementVNode as t, createStaticVNode as n } from "vue";
import { _ as p } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const c = {
name: "DtIconDialpadLogo",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (o) => Object.keys(s).includes(o)
},
/**
* 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 s[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded"), this.uniqueID = i();
}
}, f = ["aria-label", "data-qa", "aria-hidden"], _ = /* @__PURE__ */ t("path", {
d: "M20.4.006H3.6a3.6 3.6 0 0 0-3.6 3.6v16.8a3.6 3.6 0 0 0 3.6 3.6h16.8a3.6 3.6 0 0 0 3.6-3.6v-16.8a3.6 3.6 0 0 0-3.6-3.6Z",
fill: "#10022C"
}, null, -1), u = ["fill"], h = /* @__PURE__ */ t("path", {
d: "M12.788 7.473c.127-.057.1-.276-.035-.306-2.02-.448-3.592-2.236-3.93-4.479-.021-.148-.284-.184-.338-.044-.87 2.68-2.752 4.777-5.256 5.8-.122.057-.097.26.034.292 1.972.474 3.503 2.23 3.846 4.429.023.145.263.178.318.042 1.003-2.804 2.922-4.91 5.361-5.734Z",
fill: "#F8F7F6"
}, null, -1), m = /* @__PURE__ */ t("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M15.135 20.706c-2.583 0-4.438-2.068-4.438-4.898 0-2.83 1.855-4.88 4.438-4.88 1.2 0 2.346.599 2.855 1.379V7.264h2.11v13.26h-2.11V19.31c-.509.78-1.655 1.397-2.855 1.397Zm.345-1.832c1.364 0 2.383-1.052 2.51-2.485V15.19c-.127-1.433-1.146-2.43-2.51-2.43-1.527 0-2.619 1.215-2.619 3.029 0 1.814 1.091 3.084 2.62 3.084Z",
fill: "#F8F7F6"
}, null, -1), g = ["id"], F = /* @__PURE__ */ n('<stop offset=".06" stop-color="#10022C"></stop><stop offset=".2" stop-color="#611F93"></stop><stop offset=".29" stop-color="#8223A1"></stop><stop offset=".366" stop-color="#9325A5"></stop><stop offset=".459" stop-color="#C52599" stop-opacity=".9"></stop><stop offset=".564" stop-color="#D52C86"></stop><stop offset=".658" stop-color="#EA2F6F"></stop><stop offset=".737" stop-color="#F64850"></stop><stop offset=".896" stop-color="#FD6D2D"></stop><stop offset=".955" stop-color="#FF9E0E" stop-opacity=".95"></stop>', 10), v = [
F
];
function D(o, I, a, S, C, e) {
return l(), r("svg", {
"aria-label": a.ariaLabel,
class: d([e.iconSizeClass, "d-icon d-icon--dialpad-logo"]),
"data-qa": e.dataQA,
"aria-hidden": e.ariaHidden,
role: "img",
"data-name": "Dialpad Logo",
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg"
}, [
_,
t("path", {
d: "M20.4.006H3.6a3.6 3.6 0 0 0-3.6 3.6v16.8a3.6 3.6 0 0 0 3.6 3.6h16.8a3.6 3.6 0 0 0 3.6-3.6v-16.8a3.6 3.6 0 0 0-3.6-3.6Z",
fill: `url(#${o.uniqueID}a)`
}, null, 8, u),
h,
m,
t("defs", null, [
t("linearGradient", {
id: `${o.uniqueID}a`,
x1: "-3.75",
y1: "-5.169",
x2: "24.75",
y2: "24.006",
gradientUnits: "userSpaceOnUse"
}, v, 8, g)
])
], 10, f);
}
const Z = /* @__PURE__ */ p(c, [["render", D]]);
export {
Z as default
};
//# sourceMappingURL=dialpad-logo.js.map