@proximus/lavender-pillar 1.4.9-alpha.9 → 1.4.9-beta.2

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 +14 -14
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { WithExtraAttributes as s, log as n } 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-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)}::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)}@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)}', a = new CSSStyleSheet();
3
- a.replaceSync(l);
4
- const o = ["", "naked", "contained"], d = ["", "left", "center"];
5
- class c extends s {
1
+ import { WithExtraAttributes as o, log as a } from "@proximus/lavender-common";
2
+ const d = ':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-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)}::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)}@media screen and (min-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 (min-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();
3
+ s.replaceSync(d);
4
+ const n = ["", "naked", "contained"], l = ["", "left", "center"];
5
+ class c extends o {
6
6
  constructor() {
7
- super(a), this.template = () => `<div class="pillar">
7
+ super(s), this.template = () => `<div class="pillar">
8
8
  <px-container>
9
9
  <div class="pillar__layout">
10
10
  <slot name="media"></slot>
@@ -64,9 +64,9 @@ class c extends s {
64
64
  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");
65
65
  }
66
66
  updateAlignment(t, i, e) {
67
- if (!this.checkName(d, e)) {
68
- n(
69
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
67
+ if (!this.checkName(l, e)) {
68
+ a(
69
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${l.join('", "')}".`
70
70
  );
71
71
  return;
72
72
  }
@@ -77,9 +77,9 @@ class c extends s {
77
77
  this.$el.style.setProperty("--pillar-align-items", i), this.$el.style.setProperty("--pillar-text-align", t);
78
78
  }
79
79
  updateVariant(t, i, e) {
80
- if (!this.checkName(o, e)) {
81
- n(
82
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
80
+ if (!this.checkName(n, e)) {
81
+ a(
82
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join('", "')}".`
83
83
  );
84
84
  return;
85
85
  }
@@ -131,6 +131,6 @@ class c extends s {
131
131
  customElements.get("px-pillar") || customElements.define("px-pillar", c);
132
132
  export {
133
133
  c as Pillar,
134
- d as pillarAlignmentValues,
135
- o as pillarVariantValues
134
+ l as pillarAlignmentValues,
135
+ n as pillarVariantValues
136
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-pillar",
3
- "version": "1.4.9-alpha.9",
3
+ "version": "1.4.9-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",