@proximus/lavender-common 1.0.0-alpha.71 → 1.0.0-alpha.72

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 +38 -38
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const b = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-value)}:host([order]){order:var(--order-value)}:host([hidden]){display:none}::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){:host([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]){order:var(--order--mobile-value)!important}::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){:host([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]){order:var(--order--tablet-value)!important}::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px) and (max-width: 1440px){:host([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 1441px){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}";
2
- function h(r) {
3
- const t = document.createElement(r), s = Object.getPrototypeOf(t);
2
+ function h(o) {
3
+ const t = document.createElement(o), s = Object.getPrototypeOf(t);
4
4
  return Object.getOwnPropertyNames(s);
5
5
  }
6
6
  const u = new CSSStyleSheet();
@@ -119,7 +119,7 @@ class p extends HTMLElement {
119
119
  }
120
120
  updateProperties(t, s, e, i) {
121
121
  if (i && !this.checkName(i, e)) {
122
- console.error(`Bad ${t} value for`, this.$el);
122
+ console.error(`${e} is not a valid value for ${i}`);
123
123
  return;
124
124
  }
125
125
  const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
@@ -657,35 +657,35 @@ const v = ["", "default", "none", "l"], d = [
657
657
  "heading-to-subtitle",
658
658
  "heading-to-content",
659
659
  "page-layout-between-sections"
660
- ], B = [
660
+ ], E = [
661
661
  "",
662
662
  "all",
663
663
  "top",
664
664
  "right",
665
665
  "bottom",
666
666
  "left"
667
- ], E = [
667
+ ], R = [
668
668
  "",
669
669
  "default",
670
670
  "xs",
671
671
  "s",
672
672
  "l",
673
673
  "2xl"
674
- ], R = ["", "default", "s", "m", "l"];
675
- function z(r) {
674
+ ], z = ["", "default", "s", "m", "l"];
675
+ function B(o) {
676
676
  const t = document.createElement("style");
677
- t.innerHTML = r, document.head.appendChild(t);
677
+ t.innerHTML = o, document.head.appendChild(t);
678
678
  }
679
- function _(r) {
680
- return typeof r == "string" && (r === "false" || r === "0" || r === "null") || typeof r == "boolean" && !r;
679
+ function _(o) {
680
+ return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
681
681
  }
682
682
  function H() {
683
683
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
684
684
  }
685
- function P(r, t) {
686
- return r.includes(t);
685
+ function P(o, t) {
686
+ return o.includes(t);
687
687
  }
688
- function F(r, t, s = !0) {
688
+ function F(o, t, s = !0) {
689
689
  var e;
690
690
  if ([
691
691
  "aria-label",
@@ -722,45 +722,45 @@ function F(r, t, s = !0) {
722
722
  "aria-busy",
723
723
  "aria-owns"
724
724
  ].forEach((i) => {
725
- r.getAttribute(i) && (t.setAttribute(i, r.getAttribute(i)), r.removeAttribute(i));
725
+ o.getAttribute(i) && (t.setAttribute(i, o.getAttribute(i)), o.removeAttribute(i));
726
726
  }), s) {
727
727
  const i = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
728
- t.setAttribute("id", i), r.setAttribute("aria-labelledby", i);
728
+ t.setAttribute("id", i), o.setAttribute("aria-labelledby", i);
729
729
  }
730
730
  }
731
- function I(r, t, s, e = "", i) {
731
+ function I(o, t, s, e = "", i) {
732
732
  const a = new CSSStyleSheet(), l = s.reduce(
733
- (n, o) => n + `
734
- ${t(r, o)} {
733
+ (n, r) => n + `
734
+ ${t(o, r)} {
735
735
  @media only screen and (max-width: 767px) {
736
- ${r}: var(--${e}-${o}-mobile);
737
- ${i ? `${i}: var(--${e}-${o}-mobile)` : ""}
736
+ ${o}: var(--${e}-${r}-mobile);
737
+ ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
738
738
  }
739
- ${r}: var(--${e}-${o}-desktop);
740
- ${i ? `${i}:var(--${e}-${o}-desktop)` : ""}
739
+ ${o}: var(--${e}-${r}-desktop);
740
+ ${i ? `${i}:var(--${e}-${r}-desktop)` : ""}
741
741
  }
742
- ${t(r, o, "mobile")} {
742
+ ${t(o, r, "mobile")} {
743
743
  @media only screen and (max-width: 767px) {
744
- ${r}: var(--${e}-${o}-mobile) !important;
745
- ${i ? `${i}: var(--${e}-${o}-mobile)` : ""}
744
+ ${o}: var(--${e}-${r}-mobile) !important;
745
+ ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
746
746
  }
747
747
  }
748
- ${t(r, o, "tablet")} {
748
+ ${t(o, r, "tablet")} {
749
749
  @media only screen and (min-width: 768px) and (max-width: 1024px) {
750
- ${r}: var(--${e}-${o}-desktop) !important;
751
- ${i ? `${i}: var(--${e}-${o}-desktop)` : ""}
750
+ ${o}: var(--${e}-${r}-desktop) !important;
751
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
752
752
  }
753
753
  }
754
- ${t(r, o, "laptop")} {
754
+ ${t(o, r, "laptop")} {
755
755
  @media only screen and (min-width: 768px) {
756
- ${r}: var(--${e}-${o}-desktop) !important;
757
- ${i ? `${i}: var(--${e}-${o}-desktop)` : ""}
756
+ ${o}: var(--${e}-${r}-desktop) !important;
757
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
758
758
  }
759
759
  }
760
- ${t(r, o, "desktop")} {
760
+ ${t(o, r, "desktop")} {
761
761
  @media only screen and (min-width: 768px) {
762
- ${r}: var(--${e}-${o}-desktop) !important;
763
- ${i ? `${i}: var(--${e}-${o}-desktop)` : ""}
762
+ ${o}: var(--${e}-${r}-desktop) !important;
763
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
764
764
  }
765
765
  }`,
766
766
  ""
@@ -851,9 +851,9 @@ export {
851
851
  J as AttributeBreakpointHandlerDelegate,
852
852
  k as PxElement,
853
853
  p as WithExtraAttributes,
854
- z as addGlobalStylesheet,
855
- E as assetContainerIconSizeValues,
856
- R as assetContainerImgWidthValues,
854
+ B as addGlobalStylesheet,
855
+ R as assetContainerIconSizeValues,
856
+ z as assetContainerImgWidthValues,
857
857
  D as backgroundColorValues,
858
858
  N as backgroundSizeValues,
859
859
  L as borderColorValues,
@@ -880,7 +880,7 @@ export {
880
880
  O as headingValues,
881
881
  $ as iconSizeValues,
882
882
  _ as isFalsy,
883
- B as noBorderRadiusValues,
883
+ E as noBorderRadiusValues,
884
884
  j as paddingValues,
885
885
  x as textalignValues,
886
886
  F as transferAccessibilityAttributes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "1.0.0-alpha.71",
3
+ "version": "1.0.0-alpha.72",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "type": "module",