dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
62 lines (61 loc) • 2.22 kB
JavaScript
import { clsx as c } from "../../../../node_modules/clsx/dist/clsx.js";
import "../../../../node_modules/@lit/reactive-element/reactive-element.js";
import "../../../../node_modules/lit-html/lit-html.js";
import "../../../../node_modules/lit-element/lit-element.js";
import { property as r } from "../../../../node_modules/@lit/reactive-element/decorators/property.js";
import { html as f } from "../../../../node_modules/lit-html/static.js";
import { DdsElement as h } from "../../../../internal/dds-hu-element.js";
import n from "../../../icon/_styles/icon.scss.js";
import { unsafeCSS as m } from "../../../../node_modules/@lit/reactive-element/css-tag.js";
var u = Object.defineProperty, a = (p, t, l, y) => {
for (var e = void 0, o = p.length - 1, d; o >= 0; o--)
(d = p[o]) && (e = d(t, l, e) || e);
return e && u(t, l, e), e;
};
const i = class i extends h {
constructor() {
super(...arguments), this.size = 24, this.selected = !1, this.focusable = !1;
}
firstUpdated(t) {
super.firstUpdated(t), this.classList.add("dap-ds-icon");
}
render() {
var t;
return f`
<svg
part="base"
class=${c("icon", "dap-ds-icon-file-image-line")}
xmlns="http://www.w3.org/2000/svg"
width=${this.size}
height=${this.size}
viewBox="0 0 24 24"
tabindex=${this.focusable ? 0 : -1}
aria-hidden=${(t = this.ariaHidden) != null ? t : "true"}>
${this.accessibilityTitle ? f`<title>${this.accessibilityTitle}</title>` : null}
<g part="container">
<g>
<path d="M15 8V4H5v16h14V8zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM11 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m6.5 7.5-4-7L8 17z"></path>
</g>
</g>
</svg>
`;
}
};
i.tagName = "dap-ds-icon-file-image-line", i.styles = m(n);
let s = i;
a([
r({ type: Number, reflect: !0 })
], s.prototype, "size");
a([
r({ type: Boolean, reflect: !0 })
], s.prototype, "selected");
a([
r()
], s.prototype, "accessibilityTitle");
a([
r({ type: Boolean })
], s.prototype, "focusable");
export {
s as default
};
//# sourceMappingURL=document-file-image-line.component.js.map