@kubex/zinc 1.1.49 → 1.1.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/dist/custom-elements.json +74 -74
- package/dist/vscode.html-custom-data.json +11 -11
- package/dist/web-types.json +23 -23
- package/dist/zn.min.js +65 -62
- package/package.json +1 -1
- package/src/components/content-block/content-block.component.ts +1 -0
- package/src/components/content-block/content-block.scss +2 -12
- package/src/components/tile/tile.component.ts +6 -3
package/package.json
CHANGED
|
@@ -216,6 +216,7 @@ export default class ContentBlock extends ZincElement {
|
|
|
216
216
|
|
|
217
217
|
return html`
|
|
218
218
|
<div class="${classMap({
|
|
219
|
+
'content-block': true,
|
|
219
220
|
'content-block--outbound': this.outbound,
|
|
220
221
|
'content-block--short': this.short,
|
|
221
222
|
'content-block--collapsible': !this.noCollapse
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
@use "../../wc";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
text-rendering: optimizeLegibility;
|
|
6
|
-
-webkit-font-smoothing: antialiased;
|
|
7
|
-
-moz-osx-font-smoothing: grayscale;
|
|
8
|
-
|
|
9
|
-
background-color: rgba(var(--zn-panel), var(--zn-panel-opacity));
|
|
3
|
+
.content-block {
|
|
4
|
+
background-color: var(--zn-note-background, rgba(var(--zn-panel), var(--zn-panel-opacity)));
|
|
10
5
|
border-bottom: 1px solid rgb(var(--zn-border-color));
|
|
11
|
-
|
|
12
6
|
padding-inline: calc(var(--zn-gutter, 0) + var(--zn-base-gap, 0));
|
|
13
|
-
|
|
14
|
-
*, *::before, *::after {
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
17
7
|
}
|
|
18
8
|
|
|
19
9
|
.content-block-header {
|
|
@@ -102,13 +102,15 @@ export default class ZnTile extends ZincElement {
|
|
|
102
102
|
<div
|
|
103
103
|
class="tile__link">
|
|
104
104
|
<div class="tile__left">
|
|
105
|
-
${hasImage ? html
|
|
105
|
+
${hasImage ? html`
|
|
106
|
+
<slot name="image" part="image" class="tile__image"></slot>` : html``}
|
|
106
107
|
<div class="tile__content">
|
|
107
108
|
<p part="caption" class="tile__caption">
|
|
108
109
|
<slot name="caption">${this.caption}</slot>
|
|
109
110
|
</p>
|
|
110
111
|
${hasDescription ? html`
|
|
111
|
-
<p part="description" class="tile__description"
|
|
112
|
+
<p part="description" class="tile__description">
|
|
113
|
+
${this.description}</p>` : html`<slot name="description" class="tile__description"></slot>`}
|
|
112
114
|
</div>
|
|
113
115
|
</div>
|
|
114
116
|
</div>
|
|
@@ -117,7 +119,8 @@ export default class ZnTile extends ZincElement {
|
|
|
117
119
|
${hasProperties ? html`
|
|
118
120
|
<slot name="properties" part="properties" class="tile__properties"></slot>` : ''}
|
|
119
121
|
${hasActions ? html`
|
|
120
|
-
<slot name="actions" part="actions" class="tile__actions"
|
|
122
|
+
<slot name="actions" part="actions" class="tile__actions"
|
|
123
|
+
@click=${this._handleActionsClick}></slot>` : ''}
|
|
121
124
|
</div>`}
|
|
122
125
|
</${tag}>`;
|
|
123
126
|
}
|