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