@proximus/lavender-pillar 1.0.0-alpha.7 → 1.0.0-alpha.8

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 +9 -15
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
- import { WithExtraAttributes as l } from "@proximus/lavender-common";
2
- const s = ':host{display:block}:host *{box-sizing:border-box}.pillar{height:100%;text-align:var(--pillar-text-align, left)}.pillar px-container{height:100%}.pillar__layout{display:flex;flex-direction:column;align-items:var(--pillar-align-items, flex-start);gap:var(--px-spacing-s-mobile);height:100%}.pillar__content{display:flex;flex-direction:column;align-items:var(--pillar-align-items, flex-start);gap:var(--px-spacing-xs-mobile)}::slotted([slot="title"]){font-family:var(--px-font-family);line-height:var(--px-font-line-height-m);font-size:var(--px-text-size-heading-m-mobile);font-weight:var(--px-font-weight-title);color:var(--px-color-text-neutral-default)}::slotted([slot="description"]){font-family:var(--px-font-family);line-height:var(--px-font-line-height-m);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);color:var(--px-color-text-dimmed-default)}@media only screen and (min-width: 768px){.pillar__layout{gap:var(--px-spacing-s-desktop)}.pillar__content{gap:var(--px-spacing-xs-desktop)}::slotted([slot="title"]){font-size:var(--px-text-size-heading-m-desktop)}::slotted([slot="description"]){font-size:var(--px-text-size-body-m-desktop)}}@media only screen and (min-width: 1025px){.pillar__layout{gap:var(--px-spacing-s-desktop)}.pillar__content{gap:var(--px-spacing-xs-desktop)}::slotted([slot="title"]){font-size:var(--px-text-size-heading-m-desktop)}::slotted([slot="description"]){font-size:var(--px-text-size-body-m-desktop)}}:host([inverted]) ::slotted([slot="title"]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) ::slotted([slot="description"]){color:var(--px-color-text-dimmed-inverted)}', n = new CSSStyleSheet();
3
- n.replaceSync(s);
4
- const a = ["", "naked", "contained"], o = ["", "left", "center"];
5
- class d extends l {
1
+ import { WithExtraAttributes as a } from "@proximus/lavender-common";
2
+ const l = ':host{display:block}:host *{box-sizing:border-box}.pillar{height:100%;text-align:var(--pillar-text-align, left)}.pillar px-container{height:100%}.pillar__layout{display:flex;flex-direction:column;align-items:var(--pillar-align-items, flex-start);gap:var(--px-spacing-s-mobile);height:100%}.pillar__content{display:flex;flex-direction:column;align-items:var(--pillar-align-items, flex-start);gap:var(--px-spacing-xs-mobile)}::slotted([slot="title"]){font-family:var(--px-font-family);line-height:var(--px-font-line-height-m);font-size:var(--px-text-size-heading-m-mobile);font-weight:var(--px-font-weight-title);color:var(--px-color-text-neutral-default)}::slotted([slot="description"]){font-family:var(--px-font-family);line-height:var(--px-font-line-height-m);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);color:var(--px-color-text-dimmed-default)}@media only screen and (min-width: 768px){.pillar__layout{gap:var(--px-spacing-s-desktop)}.pillar__content{gap:var(--px-spacing-xs-desktop)}::slotted([slot="title"]){font-size:var(--px-text-size-heading-m-desktop)}::slotted([slot="description"]){font-size:var(--px-text-size-body-m-desktop)}}@media only screen and (min-width: 1025px){.pillar__layout{gap:var(--px-spacing-s-desktop)}.pillar__content{gap:var(--px-spacing-xs-desktop)}::slotted([slot="title"]){font-size:var(--px-text-size-heading-m-desktop)}::slotted([slot="description"]){font-size:var(--px-text-size-body-m-desktop)}}:host([inverted]) ::slotted([slot="title"]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) ::slotted([slot="description"]){color:var(--px-color-text-dimmed-inverted)}', n = new CSSStyleSheet();
3
+ n.replaceSync(l);
4
+ const s = ["", "naked", "contained"], o = ["", "left", "center"];
5
+ class d extends a {
6
6
  constructor() {
7
7
  super(n), this.template = () => `<div class="pillar">
8
8
  <px-container>
@@ -67,10 +67,7 @@ class d extends l {
67
67
  }
68
68
  updateAlignment(t, i, e) {
69
69
  if (!this.checkName(o, e)) {
70
- console.error(
71
- `${e} is not an allowed ${t} value for`,
72
- this.$el
73
- );
70
+ console.error(`${e} is not an allowed ${t} value`);
74
71
  return;
75
72
  }
76
73
  i !== null && i !== "" && i !== "default" && this.updateAlignmentStyle(i), e !== null && e !== "" && e !== "default" && this.updateAlignmentStyle(e);
@@ -80,11 +77,8 @@ class d extends l {
80
77
  this.$el.style.setProperty("--pillar-align-items", i), this.$el.style.setProperty("--pillar-text-align", t);
81
78
  }
82
79
  updateVariant(t, i, e) {
83
- if (!this.checkName(a, e)) {
84
- console.error(
85
- `${e} is not an allowed ${t} value for`,
86
- this.$el
87
- );
80
+ if (!this.checkName(s, e)) {
81
+ console.error(`${e} is not an allowed ${t} value`);
88
82
  return;
89
83
  }
90
84
  i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(i), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(e);
@@ -136,5 +130,5 @@ customElements.define("px-pillar", d);
136
130
  export {
137
131
  d as Pillar,
138
132
  o as pillarAlignmentValues,
139
- a as pillarVariantValues
133
+ s as pillarVariantValues
140
134
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-pillar",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "files": [