@proximus/lavender-header-minimal 1.4.14-beta.3 → 1.4.14

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.
Files changed (2) hide show
  1. package/dist/index.es.js +61 -34
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,35 +1,62 @@
1
- import { WithExtraAttributes as e } from "@proximus/lavender-common";
2
- //#region src/header-minimal.css?inline
3
- var t = ":host{display:block}:host *{box-sizing:border-box}", n = new CSSStyleSheet();
4
- n.replaceSync(t);
5
- var r = class extends e {
6
- constructor() {
7
- super(n), this.template = () => "\n <div class=\"header-minimal\">\n <header>\n <slot name=\"skip\"></slot>\n <px-section \n id=\"navigation-container\" \n padding-inline=\"none\"\n padding-block=\"s\"\n background-color=\"surface-light\"\n border=\"m\"\n border-side=\"bottom\"\n >\n <px-hstack gap=\"default\" wrap=\"wrap\" align-items=\"center\">\n <slot name=\"header-logo\"></slot>\n <px-spacer></px-spacer>\n <slot name=\"user-language\"></slot>\n </px-hstack>\n </px-section>\n </header>\n <slot name=\"main\"></slot>\n </div>\n ", this.shadowRoot.innerHTML = this.template(), this.internals = this.attachInternals?.(), this.internals && (this.internals.role = "navigation");
8
- }
9
- connectedCallback() {
10
- this.role = "navigation";
11
- }
12
- static get observedAttributes() {
13
- return [...super.observedAttributes, "inverted"];
14
- }
15
- attributeChangedCallback(e, t, n) {
16
- if (t !== n) switch (e) {
17
- case "inverted":
18
- this.inverted ? this.$navigationContainer.backgroundColor = "surface-dark" : this.$navigationContainer.backgroundColor = "surface-light";
19
- break;
20
- default: super.attributeChangedCallback(e, t, n);
21
- }
22
- }
23
- get $navigationContainer() {
24
- return this.shadowRoot?.querySelector("#navigation-container");
25
- }
26
- get inverted() {
27
- return this.hasAttribute("inverted");
28
- }
29
- set inverted(e) {
30
- e ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
31
- }
1
+ import { WithExtraAttributes as n } from "@proximus/lavender-common";
2
+ const r = ":host{display:block}:host *{box-sizing:border-box}", a = new CSSStyleSheet();
3
+ a.replaceSync(r);
4
+ class s extends n {
5
+ constructor() {
6
+ var e;
7
+ super(a), this.template = () => `
8
+ <div class="header-minimal">
9
+ <header>
10
+ <slot name="skip"></slot>
11
+ <px-section
12
+ id="navigation-container"
13
+ padding-inline="none"
14
+ padding-block="s"
15
+ background-color="surface-light"
16
+ border="m"
17
+ border-side="bottom"
18
+ >
19
+ <px-hstack gap="default" wrap="wrap" align-items="center">
20
+ <slot name="header-logo"></slot>
21
+ <px-spacer></px-spacer>
22
+ <slot name="user-language"></slot>
23
+ </px-hstack>
24
+ </px-section>
25
+ </header>
26
+ <slot name="main"></slot>
27
+ </div>
28
+ `, this.shadowRoot.innerHTML = this.template(), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "navigation");
29
+ }
30
+ connectedCallback() {
31
+ this.role = "navigation";
32
+ }
33
+ static get observedAttributes() {
34
+ return [...super.observedAttributes, "inverted"];
35
+ }
36
+ attributeChangedCallback(e, t, i) {
37
+ if (t !== i)
38
+ switch (e) {
39
+ case "inverted":
40
+ this.inverted ? this.$navigationContainer.backgroundColor = "surface-dark" : this.$navigationContainer.backgroundColor = "surface-light";
41
+ break;
42
+ default:
43
+ super.attributeChangedCallback(e, t, i);
44
+ break;
45
+ }
46
+ }
47
+ get $navigationContainer() {
48
+ var e;
49
+ return (e = this.shadowRoot) == null ? void 0 : e.querySelector("#navigation-container");
50
+ }
51
+ get inverted() {
52
+ return this.hasAttribute("inverted");
53
+ }
54
+ set inverted(e) {
55
+ e ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
56
+ }
57
+ }
58
+ customElements.get("px-header-minimal") || customElements.define("px-header-minimal", s);
59
+ export {
60
+ s as HeaderMinimal,
61
+ a as styleSheet
32
62
  };
33
- customElements.get("px-header-minimal") || customElements.define("px-header-minimal", r);
34
- //#endregion
35
- export { r as HeaderMinimal, n as styleSheet };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-header-minimal",
3
- "version": "1.4.14-beta.3",
3
+ "version": "1.4.14",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",