@proximus/lavender-common 2.0.0-alpha.59 → 2.0.0-alpha.60

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/common.d.ts CHANGED
@@ -147,4 +147,5 @@ export declare function addGlobalStylesheet(inlineStyles: string): void;
147
147
  export declare function isFalsy(value: string | boolean): boolean;
148
148
  export declare function getViewportFormat(): "mobile" | "tablet" | "laptop";
149
149
  export declare function checkName(values: string[], value: string): boolean;
150
+ export declare const accessibilityAttributes: string[];
150
151
  export declare function transferAccessibilityAttributes(sourceElement: HTMLElement, targetElement: HTMLElement, applyLabelledBy?: boolean): void;
package/dist/index.es.js CHANGED
@@ -473,12 +473,12 @@ const b = class b extends u {
473
473
  };
474
474
  b.accessorExclusions = [];
475
475
  let p = b;
476
- class C extends p {
476
+ class L extends p {
477
477
  connectedCallback() {
478
478
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
479
479
  }
480
480
  }
481
- const L = ["", "default", "none", "l"], y = [
481
+ const M = ["", "default", "none", "l"], y = [
482
482
  "",
483
483
  "default",
484
484
  "auto",
@@ -531,7 +531,7 @@ const L = ["", "default", "none", "l"], y = [
531
531
  "10",
532
532
  "11",
533
533
  "12"
534
- ], M = [
534
+ ], N = [
535
535
  "",
536
536
  "default",
537
537
  "auto",
@@ -539,7 +539,7 @@ const L = ["", "default", "none", "l"], y = [
539
539
  "end",
540
540
  "center",
541
541
  "stretch"
542
- ], N = [
542
+ ], D = [
543
543
  "",
544
544
  "default",
545
545
  "inherit",
@@ -555,7 +555,7 @@ const L = ["", "default", "none", "l"], y = [
555
555
  "heading-l",
556
556
  "heading-m",
557
557
  "heading-s"
558
- ], D = [
558
+ ], T = [
559
559
  "",
560
560
  "default",
561
561
  "inherit",
@@ -570,7 +570,7 @@ const L = ["", "default", "none", "l"], y = [
570
570
  "state-hover",
571
571
  "state-active",
572
572
  "state-disabled"
573
- ], T = [
573
+ ], O = [
574
574
  "",
575
575
  "default",
576
576
  "inherit",
@@ -578,11 +578,11 @@ const L = ["", "default", "none", "l"], y = [
578
578
  "title",
579
579
  "title-large",
580
580
  "subtitle"
581
- ], j = ["Xs", "S", "M", "L", "Xl"], O = [
581
+ ], j = ["Xs", "S", "M", "L", "Xl"], _ = [
582
582
  "",
583
583
  "default",
584
584
  ...j.map((o) => o.toLowerCase())
585
- ], _ = ["", "default", "left", "center", "right"], P = [
585
+ ], P = ["", "default", "left", "center", "right"], q = [
586
586
  "",
587
587
  "none",
588
588
  "3xs",
@@ -592,7 +592,7 @@ const L = ["", "default", "none", "l"], y = [
592
592
  "m",
593
593
  "l",
594
594
  "xl"
595
- ], q = ["", "none", "s", "m", "l"], G = ["", "none", "main", "pill"], E = [
595
+ ], G = ["", "none", "s", "m", "l"], E = ["", "none", "main", "pill"], B = [
596
596
  "none",
597
597
  "main",
598
598
  "brand",
@@ -603,7 +603,7 @@ const L = ["", "default", "none", "l"], y = [
603
603
  "purpose-warning",
604
604
  "purpose-error",
605
605
  "purpose-unlimited"
606
- ], B = [
606
+ ], V = [
607
607
  "",
608
608
  "all",
609
609
  "top",
@@ -612,7 +612,7 @@ const L = ["", "default", "none", "l"], y = [
612
612
  "left",
613
613
  "block",
614
614
  "inline"
615
- ], V = [
615
+ ], R = [
616
616
  "",
617
617
  "none",
618
618
  "surface-light",
@@ -640,7 +640,7 @@ const L = ["", "default", "none", "l"], y = [
640
640
  "purpose-eco",
641
641
  "purpose-notification",
642
642
  "footer-sitemap"
643
- ], R = ["", "cover", "contain", "default"], z = ["", "none", "s", "m", "l", "xl"], H = [
643
+ ], z = ["", "cover", "contain", "default"], H = ["", "none", "s", "m", "l", "xl"], I = [
644
644
  "",
645
645
  "default",
646
646
  "title-4xl",
@@ -651,7 +651,7 @@ const L = ["", "default", "none", "l"], y = [
651
651
  "title-m",
652
652
  "title-s",
653
653
  "subtitle"
654
- ], I = [
654
+ ], W = [
655
655
  "",
656
656
  "purple-top-red",
657
657
  "purple-top-magenta",
@@ -701,7 +701,7 @@ const L = ["", "default", "none", "l"], y = [
701
701
  "color-bottom-right-blue",
702
702
  "color-bottom-right-turquoise",
703
703
  "color-bottom-right-green"
704
- ], W = [
704
+ ], X = [
705
705
  "none",
706
706
  "2xs",
707
707
  "xs",
@@ -711,14 +711,14 @@ const L = ["", "default", "none", "l"], y = [
711
711
  "heading-to-subtitle",
712
712
  "heading-to-content",
713
713
  "page-layout-between-sections"
714
- ], X = [
714
+ ], F = [
715
715
  "",
716
716
  "all",
717
717
  "top",
718
718
  "right",
719
719
  "bottom",
720
720
  "left"
721
- ], F = [
721
+ ], U = [
722
722
  "",
723
723
  "default",
724
724
  "xs",
@@ -727,63 +727,64 @@ const L = ["", "default", "none", "l"], y = [
727
727
  "l",
728
728
  "xl"
729
729
  ];
730
- function U(o) {
730
+ function J(o) {
731
731
  const t = document.createElement("style");
732
732
  t.innerHTML = o, document.head.appendChild(t);
733
733
  }
734
- function J(o) {
734
+ function K(o) {
735
735
  return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
736
736
  }
737
- function K() {
737
+ function Q() {
738
738
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
739
739
  }
740
- function Q(o, t) {
740
+ function Y(o, t) {
741
741
  return o.includes(t);
742
742
  }
743
- function Y(o, t, s = !0) {
743
+ const C = [
744
+ "aria-label",
745
+ "aria-labelledby",
746
+ "aria-describedby",
747
+ "aria-controls",
748
+ "aria-expanded",
749
+ "aria-haspopup",
750
+ "aria-pressed",
751
+ "aria-selected",
752
+ "aria-required",
753
+ "aria-disabled",
754
+ "aria-live",
755
+ "aria-atomic",
756
+ "aria-relevant",
757
+ "aria-orientation",
758
+ "aria-valuenow",
759
+ "aria-valuetext",
760
+ "aria-valuemin",
761
+ "aria-valuemax",
762
+ "aria-details",
763
+ "aria-modal",
764
+ "aria-autocomplete",
765
+ "aria-activedescendant",
766
+ "aria-colcount",
767
+ "aria-colindex",
768
+ "aria-colspan",
769
+ "aria-rowcount",
770
+ "aria-rowindex",
771
+ "aria-rowspan",
772
+ "aria-keyshortcuts",
773
+ "aria-placeholder",
774
+ "aria-invalid",
775
+ "aria-busy",
776
+ "aria-owns"
777
+ ];
778
+ function Z(o, t, s = !0) {
744
779
  var e;
745
- if ([
746
- "aria-label",
747
- "aria-labelledby",
748
- "aria-describedby",
749
- "aria-controls",
750
- "aria-expanded",
751
- "aria-haspopup",
752
- "aria-pressed",
753
- "aria-selected",
754
- "aria-required",
755
- "aria-disabled",
756
- "aria-live",
757
- "aria-atomic",
758
- "aria-relevant",
759
- "aria-orientation",
760
- "aria-valuenow",
761
- "aria-valuetext",
762
- "aria-valuemin",
763
- "aria-valuemax",
764
- "aria-details",
765
- "aria-modal",
766
- "aria-autocomplete",
767
- "aria-activedescendant",
768
- "aria-colcount",
769
- "aria-colindex",
770
- "aria-colspan",
771
- "aria-rowcount",
772
- "aria-rowindex",
773
- "aria-rowspan",
774
- "aria-keyshortcuts",
775
- "aria-placeholder",
776
- "aria-invalid",
777
- "aria-busy",
778
- "aria-owns"
779
- ].forEach((i) => {
780
+ if (C.forEach((i) => {
780
781
  o.getAttribute(i) && (t.setAttribute(i, o.getAttribute(i)), o.removeAttribute(i));
781
782
  }), s) {
782
783
  const i = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
783
784
  t.setAttribute("id", i), o.setAttribute("aria-labelledby", i);
784
785
  }
785
786
  }
786
- function Z(o, t, s, e = "", i, a = o) {
787
+ function tt(o, t, s, e = "", i, a = o) {
787
788
  const l = new CSSStyleSheet(), n = s.reduce(
788
789
  (c, r) => c + `
789
790
  ${t(a, r)} {
@@ -829,7 +830,7 @@ function Z(o, t, s, e = "", i, a = o) {
829
830
  );
830
831
  return l.replaceSync(n), l;
831
832
  }
832
- class tt {
833
+ class et {
833
834
  constructor(t, s, e, i) {
834
835
  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(
835
836
  this.component,
@@ -910,44 +911,45 @@ class tt {
910
911
  }
911
912
  }
912
913
  export {
913
- tt as AttributeBreakpointHandlerDelegate,
914
+ et as AttributeBreakpointHandlerDelegate,
914
915
  p as PxElement,
915
- C as VerticallyExtendedElement,
916
+ L as VerticallyExtendedElement,
916
917
  u as WithExtraAttributes,
917
- U as addGlobalStylesheet,
918
- F as assetContainerImgWidthValues,
919
- V as backgroundColorValues,
920
- R as backgroundSizeValues,
921
- E as borderColorValues,
922
- G as borderRadiusValues,
923
- B as borderSideValues,
924
- q as borderValues,
925
- z as boxShadowValues,
926
- Q as checkName,
927
- D as colorValues,
918
+ C as accessibilityAttributes,
919
+ J as addGlobalStylesheet,
920
+ U as assetContainerImgWidthValues,
921
+ R as backgroundColorValues,
922
+ z as backgroundSizeValues,
923
+ B as borderColorValues,
924
+ E as borderRadiusValues,
925
+ V as borderSideValues,
926
+ G as borderValues,
927
+ H as boxShadowValues,
928
+ Y as checkName,
929
+ T as colorValues,
928
930
  A as cssGridAlignSelfValues,
929
931
  $ as cssGridColSpanValues,
930
932
  S as cssGridJustifySelfValues,
931
933
  x as cssGridOrderValues,
932
- M as cssGridPlaceSelfValues,
933
- Z as cssTokenBreakpoints,
934
+ N as cssGridPlaceSelfValues,
935
+ tt as cssTokenBreakpoints,
934
936
  y as flexboxAlignSelfValues,
935
- N as fontsizeValues,
936
- T as fontweightValues,
937
- W as gapValues,
937
+ D as fontsizeValues,
938
+ O as fontweightValues,
939
+ X as gapValues,
938
940
  k as getSupportedAttributeNames,
939
941
  m as getSupportedPropertyNames,
940
- K as getViewportFormat,
941
- I as gradientValues,
942
- L as gridGapValues,
943
- H as headingValues,
942
+ Q as getViewportFormat,
943
+ W as gradientValues,
944
+ M as gridGapValues,
945
+ I as headingValues,
944
946
  j as iconSizeValues,
945
- O as iconSizeValuesKC,
947
+ _ as iconSizeValuesKC,
946
948
  h as isComponentDebug,
947
- J as isFalsy,
949
+ K as isFalsy,
948
950
  w as log,
949
- X as noBorderRadiusValues,
950
- P as paddingValues,
951
- _ as textalignValues,
952
- Y as transferAccessibilityAttributes
951
+ F as noBorderRadiusValues,
952
+ q as paddingValues,
953
+ P as textalignValues,
954
+ Z as transferAccessibilityAttributes
953
955
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "2.0.0-alpha.59",
3
+ "version": "2.0.0-alpha.60",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",