dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
62 lines (61 loc) • 2.13 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 n } from "../../../../node_modules/lit-html/static.js";
import { DdsElement as f } from "../../../../internal/dds-hu-element.js";
import h from "../../../icon/_styles/icon.scss.js";
import { unsafeCSS as u } from "../../../../node_modules/@lit/reactive-element/css-tag.js";
var m = Object.defineProperty, o = (l, t, p, g) => {
for (var e = void 0, a = l.length - 1, d; a >= 0; a--)
(d = l[a]) && (e = d(t, p, e) || e);
return e && m(t, p, e), e;
};
const i = class i extends f {
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 n`
<svg
part="base"
class=${c("icon", "dap-ds-icon-subtract-line2")}
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 ? n`<title>${this.accessibilityTitle}</title>` : null}
<g part="container">
<g>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10H6"></path>
</g>
</g>
</svg>
`;
}
};
i.tagName = "dap-ds-icon-subtract-line2", i.styles = u(h);
let s = i;
o([
r({ type: Number, reflect: !0 })
], s.prototype, "size");
o([
r({ type: Boolean, reflect: !0 })
], s.prototype, "selected");
o([
r()
], s.prototype, "accessibilityTitle");
o([
r({ type: Boolean })
], s.prototype, "focusable");
export {
s as default
};
//# sourceMappingURL=system-subtract-line2.component.js.map