@dialpad/dialtone-icons
Version:
Dialtone icon library
57 lines (56 loc) • 2.08 kB
JavaScript
import { g as r } from "../utils-BOfnFgIH.js";
import { I as i } from "../constants-DeVuDy8J.js";
import { n as s } from "../_plugin-vue2_normalizer-DSLOjnn3.js";
const n = {
name: "DtIconLockFilled",
props: {
/**
* The size of the icon.
* @values 100, 200, 300, 400, 500, 600, 700, 800
*/
size: {
type: String,
default: "500",
validator: (t) => Object.keys(i).includes(t)
},
/**
* 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();
}
};
var l = function() {
var a = this, e = a._self._c;
return e("svg", { staticClass: "d-icon d-icon--lock-filled", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Lock Filled", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 12 12" } }, [e("g", { attrs: { "clip-path": `url(#${a.uniqueID}a)` } }, [e("path", { attrs: { 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" } })]), e("defs", [e("clipPath", { attrs: { id: `${a.uniqueID}a` } }, [e("path", { attrs: { fill: "#fff", d: "M0 0h12v12H0z" } })])])]);
}, d = [], o = /* @__PURE__ */ s(
n,
l,
d
);
const _ = o.exports;
export {
_ as default
};
//# sourceMappingURL=lock-filled.js.map