dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
62 lines (61 loc) • 2.34 kB
JavaScript
import { clsx as n } 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 d } from "../../../../node_modules/lit-html/static.js";
import { DdsElement as f } from "../../../../internal/dds-hu-element.js";
import m from "../../../icon/_styles/icon.scss.js";
import { unsafeCSS as h } from "../../../../node_modules/@lit/reactive-element/css-tag.js";
var u = Object.defineProperty, a = (l, t, p, g) => {
for (var e = void 0, o = l.length - 1, c; o >= 0; o--)
(c = l[o]) && (e = c(t, p, e) || e);
return e && u(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 d`
<svg
part="base"
class=${n("icon", "dap-ds-icon-shield-check-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 ? d`<title>${this.accessibilityTitle}</title>` : null}
<g part="container">
<g>
<path d="m12 1 8.217 1.826a1 1 0 0 1 .783.976v9.987a6 6 0 0 1-2.672 4.992L12 23l-6.328-4.219A6 6 0 0 1 3 13.79V3.802a1 1 0 0 1 .783-.976zm0 2.049L5 4.604v9.185a4 4 0 0 0 1.781 3.328L12 20.597l5.219-3.48A4 4 0 0 0 19 13.79V4.604zm4.452 5.173 1.415 1.414L11.503 16 7.26 11.757l1.414-1.414 2.828 2.828z"></path>
</g>
</g>
</svg>
`;
}
};
i.tagName = "dap-ds-icon-shield-check-line", i.styles = h(m);
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=system-shield-check-line.component.js.map