@proximus/lavender-content-header 1.0.0-alpha.4 → 1.0.0-alpha.6
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.js +6 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PxElement as s, backgroundSizeValues as c, gradientValues as l, backgroundColorValues as g } from "@proximus/lavender-common";
|
|
2
|
-
const d = ":host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:15.
|
|
2
|
+
const d = ":host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:15.625em}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-after-element-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none;border-radius:var(--px-radius-main)}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 768px){.content-header-content{gap:var(--px-spacing-after-element-l-tablet)}}@media only screen and (min-width: 1025px){.content-header-content{gap:var(--px-spacing-after-element-l-desktop)}}", n = new CSSStyleSheet();
|
|
3
3
|
n.replaceSync(d);
|
|
4
4
|
const o = class o extends s {
|
|
5
5
|
constructor() {
|
|
@@ -68,8 +68,8 @@ const o = class o extends s {
|
|
|
68
68
|
this.$section.backgroundPosition = e;
|
|
69
69
|
break;
|
|
70
70
|
case "inverted":
|
|
71
|
-
for (let
|
|
72
|
-
this.$children[
|
|
71
|
+
for (let i = 0; i < this.$children.length; i++)
|
|
72
|
+
this.$children[i].hasAttribute("inverted") || this.$children[i].toggleAttribute("inverted");
|
|
73
73
|
this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
|
|
74
74
|
break;
|
|
75
75
|
default:
|
|
@@ -169,8 +169,8 @@ const o = class o extends s {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
o.nativeName = "div";
|
|
172
|
-
let
|
|
173
|
-
customElements.define("px-content-header",
|
|
172
|
+
let r = o;
|
|
173
|
+
customElements.define("px-content-header", r);
|
|
174
174
|
export {
|
|
175
|
-
|
|
175
|
+
r as ContentHeader
|
|
176
176
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-content-header",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "632aad11570412a005e2ec7417eab5be24bc207e"
|
|
46
46
|
}
|