@proximus/lavender-pillar 1.4.20-alpha.9 → 1.4.20-beta.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 +3 -12
- package/dist/web-types.json +2 -2
- package/package.json +1 -1
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
|
-
|
|
2
|
+
// 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,22 +59,14 @@ 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
|
-
|
|
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);
|
|
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("\", \"")}".`);
|
|
67
63
|
}
|
|
68
64
|
updateAlignmentStyle(e) {
|
|
69
65
|
let t = e === "left" ? "flex-start" : e;
|
|
70
66
|
this.$el.style.setProperty("--pillar-align-items", t), this.$el.style.setProperty("--pillar-text-align", e);
|
|
71
67
|
}
|
|
72
68
|
updateVariant(e, t, n) {
|
|
73
|
-
|
|
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);
|
|
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("\", \"")}".`);
|
|
78
70
|
}
|
|
79
71
|
get $el() {
|
|
80
72
|
return this.shadowRoot.querySelector(".pillar");
|
|
@@ -120,5 +112,4 @@ var c = [
|
|
|
120
112
|
}
|
|
121
113
|
};
|
|
122
114
|
customElements.get("px-pillar") || customElements.define("px-pillar", u);
|
|
123
|
-
//#endregion
|
|
124
115
|
export { u as Pillar, l as pillarAlignmentValues, c as pillarVariantValues };
|
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-pillar",
|
|
4
|
-
"version": "1.4.20-
|
|
4
|
+
"version": "1.4.20-beta.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
|
|
11
|
+
"description": "\n---\n",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [
|
|
14
14
|
{ "name": "variant", "value": { "type": "string" } },
|