@dialpad/dialtone-icons
Version:
Dialtone icon library
83 lines (82 loc) • 2.79 kB
JavaScript
import { g as r } from "../../utils-BOfnFgIH.js";
import { I as i } from "../../constants-DeVuDy8J.js";
import { openBlock as s, createElementBlock as l, normalizeClass as n, createElementVNode as e } from "vue";
import { _ as o } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const c = {
name: "DtIconDialpadStarReversed",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (a) => Object.keys(i).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 i[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded"), this.uniqueID = r();
}
}, _ = ["aria-label", "data-qa", "aria-hidden"], u = ["clip-path"], h = /* @__PURE__ */ e("path", {
"fill-rule": "evenodd",
"clip-rule": "evenodd",
d: "M1.8 0A1.8 1.8 0 0 0 0 1.8v8.4A1.8 1.8 0 0 0 1.8 12h8.4a1.8 1.8 0 0 0 1.8-1.8V1.8A1.8 1.8 0 0 0 10.2 0H1.8Zm4.577 3.58c.067.016.08.125.017.154-1.22.411-2.179 1.465-2.68 2.866-.028.068-.148.052-.16-.02-.17-1.1-.936-1.978-1.922-2.215-.066-.015-.078-.117-.017-.146 1.252-.511 2.193-1.56 2.628-2.9.027-.07.158-.052.17.022.168 1.122.954 2.016 1.964 2.24ZM5.349 7.902c0 1.415.927 2.45 2.219 2.45.6 0 1.173-.31 1.427-.7v.608h1.055V3.63H8.995v2.522c-.254-.39-.827-.69-1.427-.69-1.292 0-2.22 1.025-2.22 2.44Zm3.646.29c-.063.717-.573 1.243-1.255 1.243-.764 0-1.31-.635-1.31-1.542s.546-1.515 1.31-1.515c.682 0 1.192.5 1.255 1.216v.598Z",
fill: "currentColor"
}, null, -1), p = [
h
], m = ["id"], f = /* @__PURE__ */ e("path", {
fill: "#fff",
d: "M0 0h12v12H0z"
}, null, -1), v = [
f
];
function g(a, I, d, S, b, t) {
return s(), l("svg", {
"aria-label": d.ariaLabel,
class: n([t.iconSizeClass, "d-icon d-icon--dialpad-star-reversed"]),
"data-qa": t.dataQA,
"aria-hidden": t.ariaHidden,
role: "img",
"data-name": "Dialpad Star Reversed",
viewBox: "0 0 12 12",
xmlns: "http://www.w3.org/2000/svg"
}, [
e("g", {
"clip-path": `url(#${a.uniqueID}a)`
}, p, 8, u),
e("defs", null, [
e("clipPath", {
id: `${a.uniqueID}a`
}, v, 8, m)
])
], 10, _);
}
const A = /* @__PURE__ */ o(c, [["render", g]]);
export {
A as default
};
//# sourceMappingURL=dialpad-star-reversed.js.map