dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
52 lines (51 loc) • 1.57 kB
JavaScript
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 s } from "../../node_modules/@lit/reactive-element/decorators/property.js";
import { ifDefined as m } from "../../node_modules/lit-html/directives/if-defined.js";
import { html as d } from "../../node_modules/lit-html/static.js";
import { DdsElement as n } from "../../internal/dds-hu-element.js";
import f from "./_styles/card-image.scss.js";
import { unsafeCSS as u } from "../../node_modules/@lit/reactive-element/css-tag.js";
var y = Object.defineProperty, o = (h, i, a, c) => {
for (var t = void 0, p = h.length - 1, l; p >= 0; p--)
(l = h[p]) && (t = l(i, a, t) || t);
return t && y(i, a, t), t;
};
const e = class e extends n {
render() {
var i;
return d`<slot
><img
part="base"
class="card-image"
style=${[
this.width != null ? `width: ${this.width}px` : "",
this.height != null ? `height: ${this.height}px` : ""
].filter(Boolean).join("; ")}
aria-hidden=${m(
(i = this.ariaHidden) != null ? i : "true"
)}
alt=${this.alt}
src=${this.src}
/></slot>`;
}
};
e.tagName = "dap-ds-card-image", e.styles = u(f);
let r = e;
o([
s()
], r.prototype, "src");
o([
s()
], r.prototype, "alt");
o([
s({ type: Number })
], r.prototype, "width");
o([
s({ type: Number })
], r.prototype, "height");
export {
r as default
};
//# sourceMappingURL=card-image.component.js.map