Archived
Template
1
Fork 0
This repository has been archived on 2024-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
Contour/public/@shoelace-style/shoelace/cdn/chunks/chunk.7GHRB73W.js
2024-09-05 00:39:25 -04:00

46 lines
1.1 KiB
JavaScript
Executable file

import {
card_styles_default
} from "./chunk.4A5FT2GX.js";
import {
HasSlotController
} from "./chunk.NYIIDP5N.js";
import {
e
} from "./chunk.UZVKBFXH.js";
import {
ShoelaceElement
} from "./chunk.SEXBCYCU.js";
import {
x
} from "./chunk.CXZZ2LVK.js";
// src/components/card/card.component.ts
var SlCard = class extends ShoelaceElement {
constructor() {
super(...arguments);
this.hasSlotController = new HasSlotController(this, "footer", "header", "image");
}
render() {
return x`
<div
part="base"
class=${e({
card: true,
"card--has-footer": this.hasSlotController.test("footer"),
"card--has-image": this.hasSlotController.test("image"),
"card--has-header": this.hasSlotController.test("header")
})}
>
<slot name="image" part="image" class="card__image"></slot>
<slot name="header" part="header" class="card__header"></slot>
<slot part="body" class="card__body"></slot>
<slot name="footer" part="footer" class="card__footer"></slot>
</div>
`;
}
};
SlCard.styles = card_styles_default;
export {
SlCard
};