UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

62 lines (61 loc) 2.2 kB
import { clsx as h } 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 c } from "../../../../node_modules/lit-html/static.js"; import { DdsElement as n } from "../../../../internal/dds-hu-element.js"; import f from "../../../icon/_styles/icon.scss.js"; import { unsafeCSS as m } from "../../../../node_modules/@lit/reactive-element/css-tag.js"; var u = Object.defineProperty, a = (l, t, p, y) => { for (var s = void 0, o = l.length - 1, d; o >= 0; o--) (d = l[o]) && (s = d(t, p, s) || s); return s && u(t, p, s), s; }; const i = class i extends n { 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 c` <svg part="base" class=${h("icon", "dap-ds-icon-computer-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 ? c`<title>${this.accessibilityTitle}</title>` : null} <g part="container"> <g> <path d="M4 16h16V5H4zm9 2v2h4v2H7v-2h4v-2H2.992A1 1 0 0 1 2 16.992V4.008C2 3.451 2.455 3 2.992 3h18.016c.548 0 .992.449.992 1.007v12.985c0 .557-.455 1.008-.992 1.008z"></path> </g> </g> </svg> `; } }; i.tagName = "dap-ds-icon-computer-line", i.styles = m(f); let e = i; a([ r({ type: Number, reflect: !0 }) ], e.prototype, "size"); a([ r({ type: Boolean, reflect: !0 }) ], e.prototype, "selected"); a([ r() ], e.prototype, "accessibilityTitle"); a([ r({ type: Boolean }) ], e.prototype, "focusable"); export { e as default }; //# sourceMappingURL=device-computer-line.component.js.map