@proximus/lavender-poke-card 1.4.18-beta.1 → 1.4.18
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/index.es.js +20 -5
- package/dist/web-types.json +4 -4
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@proximus/lavender-container";
|
|
2
2
|
import "@proximus/lavender-layout";
|
|
3
3
|
import { booleanPropertyToAttributeSetter as e, createTemplate as t, cssTokenBreakpoints as n, paddingValues as r, propertyToAttributeSetter as i, renderTemplate as a } from "@proximus/lavender-common";
|
|
4
|
-
|
|
4
|
+
//#region src/cardcontainer.css?inline
|
|
5
5
|
var o = ":host{--card-padding:var(--px-padding-s-mobile);border:var(--px-size-border-m) solid #0000;height:100%;display:block}:host[has-border]{border:var(--px-size-border-s) solid #0000}:host *{box-sizing:border-box}px-container{height:100%;display:block}:host([interactive-state=hover]:hover){border:0 solid #0000}.media-wrapper{display:none;position:relative;overflow:hidden}:host([media-position=top]) .media-wrapper{width:100%;display:block}:host([media-position=top]) .media-wrapper img{border-radius:var(--px-radius-main) var(--px-radius-main) 0 0}:host([media-position=left]) .media-wrapper{aspect-ratio:1;flex-shrink:0;width:33.33%;display:block}:host([media-position=left]) .media-wrapper img{border-radius:var(--px-radius-main) 0 0 var(--px-radius-main)}.media-image{object-fit:cover;width:100%;height:100%;display:block}.media-image:not([src]){display:none}:host([media-size=contain]) .media-image{object-fit:contain}.content{padding:var(--card-padding);flex:auto;display:block}", s = new CSSStyleSheet();
|
|
6
6
|
s.replaceSync(o);
|
|
7
7
|
var c = [
|
|
@@ -81,7 +81,13 @@ var c = [
|
|
|
81
81
|
this.$mediaWrapper.style.aspectRatio = t.replace("/", " / ");
|
|
82
82
|
}
|
|
83
83
|
#n() {
|
|
84
|
-
this.$container
|
|
84
|
+
if (this.$container) {
|
|
85
|
+
if (this.#s()) {
|
|
86
|
+
this.#o();
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
this.#i();
|
|
90
|
+
}
|
|
85
91
|
}
|
|
86
92
|
#r() {
|
|
87
93
|
this.$container && (this.#s() || this.#a());
|
|
@@ -94,7 +100,13 @@ var c = [
|
|
|
94
100
|
this.hasBorder ? (this.$container.setAttribute("border", "s"), this.$container.setAttribute("border-color", "main")) : this.$container.setAttribute("border", "none");
|
|
95
101
|
}
|
|
96
102
|
#o() {
|
|
97
|
-
|
|
103
|
+
if (this.$container) {
|
|
104
|
+
if (this.interactiveState === "hover") {
|
|
105
|
+
this.$container.setAttribute("border", "m"), this.$container.setAttribute("border-color", "state-hover"), this.$container.setAttribute("background-color", "state-hover-bordered");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
this.#a(), this.#i();
|
|
109
|
+
}
|
|
98
110
|
}
|
|
99
111
|
#s() {
|
|
100
112
|
return this.interactiveState === "hover";
|
|
@@ -185,7 +197,8 @@ var c = [
|
|
|
185
197
|
}
|
|
186
198
|
};
|
|
187
199
|
customElements.get("px-card-container") || customElements.define("px-card-container", f);
|
|
188
|
-
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/cardheading.css?inline
|
|
189
202
|
var p = ":host{display:block}:host(:not(:has())){display:none}", m = new CSSStyleSheet();
|
|
190
203
|
m.replaceSync(p);
|
|
191
204
|
var h = class e extends HTMLElement {
|
|
@@ -197,7 +210,8 @@ var h = class e extends HTMLElement {
|
|
|
197
210
|
}
|
|
198
211
|
};
|
|
199
212
|
customElements.get("px-card-heading") || customElements.define("px-card-heading", h);
|
|
200
|
-
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/cardactions.css?inline
|
|
201
215
|
var g = ":host{display:block}:host(:not(:has())){display:none}", _ = new CSSStyleSheet();
|
|
202
216
|
_.replaceSync(g);
|
|
203
217
|
var v = class e extends HTMLElement {
|
|
@@ -209,4 +223,5 @@ var v = class e extends HTMLElement {
|
|
|
209
223
|
}
|
|
210
224
|
};
|
|
211
225
|
customElements.get("px-card-actions") || customElements.define("px-card-actions", v);
|
|
226
|
+
//#endregion
|
|
212
227
|
export { v as CardActions, f as CardContainer, h as CardHeading, u as cardContainerBackgroundColorValues, c as cardContainerMediaPositionValues, l as cardContainerMediaSizeValues };
|
package/dist/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@proximus/lavender-poke-card",
|
|
4
|
-
"version": "1.4.18
|
|
4
|
+
"version": "1.4.18",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "px-card-actions",
|
|
11
|
-
"description": "\n---\n",
|
|
11
|
+
"description": "\n\n---\n",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [],
|
|
14
14
|
"events": [],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "px-card-container",
|
|
22
|
-
"description": "\n---\n",
|
|
22
|
+
"description": "\n\n---\n",
|
|
23
23
|
"doc-url": "",
|
|
24
24
|
"attributes": [
|
|
25
25
|
{
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"name": "px-card-heading",
|
|
69
|
-
"description": "\n---\n",
|
|
69
|
+
"description": "\n\n---\n",
|
|
70
70
|
"doc-url": "",
|
|
71
71
|
"attributes": [],
|
|
72
72
|
"events": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-poke-card",
|
|
3
|
-
"version": "1.4.18
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"description": "PokeCard web components: px-card-container, px-card-heading, px-card-actions",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@proximus/lavender-container": "
|
|
23
|
-
"@proximus/lavender-layout": "
|
|
22
|
+
"@proximus/lavender-container": "^1.4.18",
|
|
23
|
+
"@proximus/lavender-layout": "^1.4.18"
|
|
24
24
|
},
|
|
25
25
|
"customElements": "dist/custom-elements.json",
|
|
26
26
|
"web-types": "./dist/web-types.json"
|