@proximus/lavender-common 1.0.0-alpha.74 → 1.0.0-alpha.76

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 +27 -22
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -666,28 +666,29 @@ const v = ["", "default", "none", "l"], d = [
666
666
  "right",
667
667
  "bottom",
668
668
  "left"
669
- ], V = [
669
+ ], B = [
670
670
  "",
671
671
  "default",
672
672
  "xs",
673
673
  "s",
674
+ "m",
674
675
  "l",
675
- "2xl"
676
- ], z = ["", "default", "s", "m", "l"];
677
- function B(o) {
676
+ "xl"
677
+ ];
678
+ function V(o) {
678
679
  const t = document.createElement("style");
679
680
  t.innerHTML = o, document.head.appendChild(t);
680
681
  }
681
682
  function _(o) {
682
683
  return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
683
684
  }
684
- function H() {
685
+ function z() {
685
686
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
686
687
  }
687
- function P(o, t) {
688
+ function H(o, t) {
688
689
  return o.includes(t);
689
690
  }
690
- function F(o, t, s = !0) {
691
+ function P(o, t, s = !0) {
691
692
  var e;
692
693
  if ([
693
694
  "aria-label",
@@ -730,39 +731,44 @@ function F(o, t, s = !0) {
730
731
  t.setAttribute("id", i), o.setAttribute("aria-labelledby", i);
731
732
  }
732
733
  }
733
- function I(o, t, s, e = "", i) {
734
+ function F(o, t, s, e = "", i) {
734
735
  const a = new CSSStyleSheet(), l = s.reduce(
735
736
  (n, r) => n + `
736
737
  ${t(o, r)} {
737
738
  ${o}: var(--${e}-${r}-desktop);
738
739
  ${i ? `${i}:var(--${e}-${r}-desktop)` : ""}
739
740
  }
740
- @media only screen and (max-width: 767px) {
741
+ /* Mobile only - max 767px */
742
+ @media only screen and (max-width: 47.938em) {
741
743
  ${t(o, r)} {
742
744
  ${o}: var(--${e}-${r}-mobile);
743
745
  ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
744
746
  }
745
747
  }
746
748
  ${t(o, r, "mobile")} {
747
- @media only screen and (max-width: 767px) {
749
+ /* Mobile only - max 767px */
750
+ @media only screen and (max-width: 47.938em) {
748
751
  ${o}: var(--${e}-${r}-mobile) !important;
749
752
  ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
750
753
  }
751
754
  }
752
755
  ${t(o, r, "tablet")} {
753
- @media only screen and (min-width: 768px) and (max-width: 1024px) {
756
+ /* Tablet - min 768px max 1024px */
757
+ @media only screen and (min-width: 48em) and (max-width: 64em) {
754
758
  ${o}: var(--${e}-${r}-desktop) !important;
755
759
  ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
756
760
  }
757
761
  }
758
762
  ${t(o, r, "laptop")} {
759
- @media only screen and (min-width: 768px) {
763
+ /* Laptop - 1025px*/
764
+ @media only screen and (min-width: 64.0625em) {
760
765
  ${o}: var(--${e}-${r}-desktop) !important;
761
766
  ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
762
767
  }
763
768
  }
764
769
  ${t(o, r, "desktop")} {
765
- @media only screen and (min-width: 768px) {
770
+ /* Desktop - 1025px*/
771
+ @media only screen and (min-width: 64.0625em) {
766
772
  ${o}: var(--${e}-${r}-desktop) !important;
767
773
  ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
768
774
  }
@@ -771,7 +777,7 @@ function I(o, t, s, e = "", i) {
771
777
  );
772
778
  return a.replaceSync(l), a;
773
779
  }
774
- class J {
780
+ class I {
775
781
  constructor(t, s, e, i) {
776
782
  this.component = t, this.attributeName = s, this.cssVariable = i, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
777
783
  this.component,
@@ -852,12 +858,11 @@ class J {
852
858
  }
853
859
  }
854
860
  export {
855
- J as AttributeBreakpointHandlerDelegate,
861
+ I as AttributeBreakpointHandlerDelegate,
856
862
  k as PxElement,
857
863
  p as WithExtraAttributes,
858
- B as addGlobalStylesheet,
859
- V as assetContainerIconSizeValues,
860
- z as assetContainerImgWidthValues,
864
+ V as addGlobalStylesheet,
865
+ B as assetContainerImgWidthValues,
861
866
  D as backgroundColorValues,
862
867
  N as backgroundSizeValues,
863
868
  L as borderColorValues,
@@ -865,20 +870,20 @@ export {
865
870
  T as borderSideValues,
866
871
  C as borderValues,
867
872
  G as boxShadowValues,
868
- P as checkName,
873
+ H as checkName,
869
874
  A as colorValues,
870
875
  c as cssGridAlignSelfValues,
871
876
  f as cssGridColSpanValues,
872
877
  g as cssGridJustifySelfValues,
873
878
  m as cssGridOrderValues,
874
879
  y as cssGridPlaceSelfValues,
875
- I as cssTokenBreakpoints,
880
+ F as cssTokenBreakpoints,
876
881
  d as flexboxAlignSelfValues,
877
882
  w as fontsizeValues,
878
883
  S as fontweightValues,
879
884
  E as gapValues,
880
885
  h as getSupportedAttributeNames,
881
- H as getViewportFormat,
886
+ z as getViewportFormat,
882
887
  q as gradientValues,
883
888
  v as gridGapValues,
884
889
  O as headingValues,
@@ -887,5 +892,5 @@ export {
887
892
  R as noBorderRadiusValues,
888
893
  j as paddingValues,
889
894
  x as textalignValues,
890
- F as transferAccessibilityAttributes
895
+ P as transferAccessibilityAttributes
891
896
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "1.0.0-alpha.74",
3
+ "version": "1.0.0-alpha.76",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "type": "module",