UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

83 lines (82 loc) 2.38 kB
import { g as d } from "../utils-BOfnFgIH.js"; import { I as i } from "../constants-DeVuDy8J.js"; import { openBlock as o, createElementBlock as r, normalizeClass as n, createElementVNode as e } from "vue"; import { _ as s } from "../_plugin-vue_export-helper-CHgC5LLL.js"; const c = { 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(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 = d(); } }, _ = ["aria-label", "data-qa", "aria-hidden"], u = ["clip-path"], h = /* @__PURE__ */ 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), f = [ h ], m = ["id"], p = /* @__PURE__ */ e("path", { fill: "#fff", d: "M0 0h12v12H0z" }, null, -1), g = [ p ]; function v(a, I, l, b, q, t) { return o(), r("svg", { "aria-label": l.ariaLabel, class: n([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)` }, f, 8, u), e("defs", null, [ e("clipPath", { id: `${a.uniqueID}a` }, g, 8, m) ]) ], 10, _); } const C = /* @__PURE__ */ s(c, [["render", v]]); export { C as default }; //# sourceMappingURL=lock-filled.js.map