@dialpad/dialtone-icons
Version:
Dialtone icon library
83 lines (82 loc) • 2.45 kB
JavaScript
import { g as d } from "../../utils-BOfnFgIH.js";
import { I as l } from "../../constants-DeVuDy8J.js";
import { openBlock as n, createElementBlock as o, normalizeClass as s, createElementVNode as e } from "vue";
import { _ as c } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
const u = {
name: "DtIconLockFilled",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (a) => Object.keys(l).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 l[this.size];
},
ariaHidden() {
return this.ariaLabel ? "false" : "true";
},
dataQA() {
return this.$attrs["data-qa"] ?? "dt-icon";
}
},
created() {
this.$emit("loaded"), this.uniqueID = d();
}
}, f = ["aria-label", "data-qa", "aria-hidden"], m = ["clip-path"], p = ["id"];
function h(a, i, r, _, g, t) {
return n(), o("svg", {
"aria-label": r.ariaLabel,
class: s([t.iconSizeClass, "d-icon d-icon--lock-filled"]),
"data-qa": t.dataQA,
"aria-hidden": t.ariaHidden,
role: "img",
"data-name": "Lock Filled",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 12 12"
}, [
e("g", {
"clip-path": `url(#${a.uniqueID}a)`
}, [...i[0] || (i[0] = [
e("path", {
fill: "currentColor",
"fill-rule": "evenodd",
d: "M4.542 2.042A2.063 2.063 0 0 1 8.062 3.5v1.562H3.939V3.5c0-.547.217-1.072.604-1.458Zm-1.48 3.02V3.5a2.937 2.937 0 0 1 5.876 0v1.562H9.5c.794 0 1.438.644 1.438 1.438V10c0 .794-.644 1.438-1.438 1.438h-7A1.438 1.438 0 0 1 1.063 10V6.5c0-.794.643-1.437 1.437-1.437h.563Z",
"clip-rule": "evenodd"
}, null, -1)
])], 8, m),
e("defs", null, [
e("clipPath", {
id: `${a.uniqueID}a`
}, [...i[1] || (i[1] = [
e("path", {
fill: "#fff",
d: "M0 0h12v12H0z"
}, null, -1)
])], 8, p)
])
], 10, f);
}
const S = /* @__PURE__ */ c(u, [["render", h]]);
export {
S as default
};
//# sourceMappingURL=lock-filled.js.map