@fluid-topics/ft-card 1.2.49 → 1.2.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-card.d.ts +2 -0
- package/build/ft-card.js +12 -2
- package/build/ft-card.light.js +64 -53
- package/build/ft-card.min.js +61 -50
- package/build/ft-card.styles.js +14 -3
- package/package.json +5 -5
package/build/ft-card.d.ts
CHANGED
package/build/ft-card.js
CHANGED
|
@@ -18,18 +18,22 @@ class FtCard extends FtLitElement {
|
|
|
18
18
|
this.clickable = false;
|
|
19
19
|
this.selected = false;
|
|
20
20
|
this.noHeader = false;
|
|
21
|
+
this.noContent = false;
|
|
22
|
+
this.oneLineHeader = false;
|
|
21
23
|
}
|
|
22
24
|
render() {
|
|
23
25
|
const classes = {
|
|
24
26
|
selected: this.selected,
|
|
25
27
|
clickable: this.clickable,
|
|
26
28
|
"no-header": this.noHeader,
|
|
29
|
+
"no-content": this.noContent,
|
|
30
|
+
"one-line-header": this.oneLineHeader,
|
|
27
31
|
};
|
|
28
32
|
return html `
|
|
29
33
|
<div id="container" part="container" class=${classMap(classes)}>
|
|
30
34
|
${this.clickable ? html `
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
36
|
+
` : nothing}
|
|
33
37
|
<div id="header" part="header">
|
|
34
38
|
<ft-typography class="title" element="span" variant="title">${this.title}</ft-typography>
|
|
35
39
|
<slot name="header"></slot>
|
|
@@ -63,4 +67,10 @@ __decorate([
|
|
|
63
67
|
__decorate([
|
|
64
68
|
property({ type: Boolean })
|
|
65
69
|
], FtCard.prototype, "noHeader", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
property({ type: Boolean })
|
|
72
|
+
], FtCard.prototype, "noContent", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Boolean })
|
|
75
|
+
], FtCard.prototype, "oneLineHeader", void 0);
|
|
66
76
|
export { FtCard };
|