@proximus/lavender-pillar 1.4.18-beta.1 → 1.4.19-alpha.1

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WithExtraAttributes as e, booleanPropertyToAttributeSetter as t, createTemplate as n, log as r, propertyToAttributeSetter as i, renderTemplate as a } from "@proximus/lavender-common";
2
- // src/pillar.css?inline
2
+ //#region src/pillar.css?inline
3
3
  var o = ":host{display:block}:host *{box-sizing:border-box}.pillar{height:100%}.pillar px-container{height:100%}.pillar__layout{align-items:var(--pillar-align-items,flex-start);gap:var(--px-spacing-s-mobile);flex-direction:column;height:100%;display:flex}.pillar__content{align-items:var(--pillar-align-items,flex-start);gap:var(--px-spacing-xs-mobile);flex-direction:column;display:flex}::slotted([slot=title]){font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);font-size:var(--px-text-size-heading-m-mobile);font-weight:var(--px-font-weight-title);color:var(--px-color-text-neutral-default);text-align:var(--pillar-text-align,left)}::slotted([slot=description]){font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);color:var(--px-color-text-dimmed-default);text-align:var(--pillar-text-align,left)}@media screen and (width>=48rem){.pillar__layout{gap:var(--px-spacing-s-tablet)}.pillar__content{gap:var(--px-spacing-xs-tablet)}::slotted([slot=title]){font-size:var(--px-text-size-heading-m-tablet)}::slotted([slot=description]){font-size:var(--px-text-size-body-m-tablet)}}@media screen and (width>=64.0625rem){.pillar__layout{gap:var(--px-spacing-s-laptop)}.pillar__content{gap:var(--px-spacing-xs-laptop)}::slotted([slot=title]){font-size:var(--px-text-size-heading-m-laptop)}::slotted([slot=description]){font-size:var(--px-text-size-body-m-laptop)}}:host([inverted]) ::slotted([slot=title]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) ::slotted([slot=description]){color:var(--px-color-text-dimmed-inverted)}", s = new CSSStyleSheet();
4
4
  s.replaceSync(o);
5
5
  var c = [
@@ -59,14 +59,22 @@ var c = [
59
59
  this.variant === "contained" ? (this.$container.padding = "l", !this.backgroundColor && !this.gradient && (this.$container.backgroundColor = this.inverted ? "surface-brand" : "surface-default")) : (this.$container.padding = "none", this.$container.backgroundColor = "none", this.$container.borderRadius = "none");
60
60
  }
61
61
  updateAlignment(e, t, n) {
62
- this.checkName(l, n) ? (t !== null && t !== "" && t !== "default" && this.updateAlignmentStyle(t), n !== null && n !== "" && n !== "default" && this.updateAlignmentStyle(n)) : r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${l.join("\", \"")}".`);
62
+ if (!this.checkName(l, n)) {
63
+ r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${l.join("\", \"")}".`);
64
+ return;
65
+ }
66
+ t !== null && t !== "" && t !== "default" && this.updateAlignmentStyle(t), n !== null && n !== "" && n !== "default" && this.updateAlignmentStyle(n);
63
67
  }
64
68
  updateAlignmentStyle(e) {
65
69
  let t = e === "left" ? "flex-start" : e;
66
70
  this.$el.style.setProperty("--pillar-align-items", t), this.$el.style.setProperty("--pillar-text-align", e);
67
71
  }
68
72
  updateVariant(e, t, n) {
69
- this.checkName(c, n) ? (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(t), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(n)) : r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${c.join("\", \"")}".`);
73
+ if (!this.checkName(c, n)) {
74
+ r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${c.join("\", \"")}".`);
75
+ return;
76
+ }
77
+ t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(t), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(n);
70
78
  }
71
79
  get $el() {
72
80
  return this.shadowRoot.querySelector(".pillar");
@@ -112,4 +120,5 @@ var c = [
112
120
  }
113
121
  };
114
122
  customElements.get("px-pillar") || customElements.define("px-pillar", u);
123
+ //#endregion
115
124
  export { u as Pillar, l as pillarAlignmentValues, c as pillarVariantValues };
@@ -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-pillar",
4
- "version": "1.4.18-beta.1",
4
+ "version": "1.4.19-alpha.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-pillar",
11
- "description": "\n---\n",
11
+ "description": "\n\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [
14
14
  { "name": "variant", "value": { "type": "string" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-pillar",
3
- "version": "1.4.18-beta.1",
3
+ "version": "1.4.19-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",