UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

57 lines (56 loc) 2.2 kB
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: "DtIconFilm", props: { /** * The size of the icon. * @values 100, 200, 300, 400, 500, 600, 700, 800 */ size: { type: String, default: "500", validator: (e) => Object.keys(i).includes(e) }, /** * 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 d = function() { var a = this, t = a._self._c; return t("svg", { staticClass: "d-icon d-icon--film", class: a.iconSizeClass, attrs: { "aria-label": a.ariaLabel, "data-qa": a.dataQA, "aria-hidden": a.ariaHidden, role: "img", "data-name": "Film", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg" } }, [t("g", { attrs: { "clip-path": `url(#${a.uniqueID}a)` } }, [t("path", { attrs: { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M2.09.5A1.59 1.59 0 0 0 .5 2.09v7.82c0 .878.712 1.59 1.59 1.59h7.82a1.59 1.59 0 0 0 1.59-1.59V2.09A1.59 1.59 0 0 0 9.91.5H2.09ZM4 5.5v-4h4v4H4Zm6.5 0H9V4h1.5v1.5Zm0-3.41a.59.59 0 0 0-.59-.59H9V3h1.5v-.91Zm0 5.91H9V6.5h1.5V8Zm-.59 2.5a.59.59 0 0 0 .59-.59V9H9v1.5h.91ZM1.5 2.09a.59.59 0 0 1 .59-.59H3V3H1.5v-.91ZM3 4H1.5v1.5H3V4ZM1.5 6.5H3V8H1.5V6.5Zm0 3.41c0 .326.264.59.59.59H3V9H1.5v.91ZM8 6.5v4H4v-4h4Z", fill: "currentColor" } })]), t("defs", [t("clipPath", { attrs: { id: `${a.uniqueID}a` } }, [t("path", { attrs: { fill: "#fff", d: "M0 0h12v12H0z" } })])])]); }, l = [], o = /* @__PURE__ */ s( n, d, l ); const u = o.exports; export { u as default }; //# sourceMappingURL=film.js.map