@proximus/lavender-toaster 2.0.0-alpha.232 → 2.0.0-alpha.233
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/index.es.js +88 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1406,7 +1406,7 @@ var he = [
|
|
|
1406
1406
|
customElements.get("px-container") || customElements.define("px-container", M);
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region ../Layout/src/Stack.css?inline
|
|
1409
|
-
var N = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", P = new CSSStyleSheet();
|
|
1409
|
+
var N = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", P = new CSSStyleSheet();
|
|
1410
1410
|
P.replaceSync(N);
|
|
1411
1411
|
var F = document.createElement("template");
|
|
1412
1412
|
F.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
@@ -1497,7 +1497,17 @@ var I = [
|
|
|
1497
1497
|
"max-height--mobile",
|
|
1498
1498
|
"max-height--tablet",
|
|
1499
1499
|
"max-height--laptop",
|
|
1500
|
-
"max-height--desktop"
|
|
1500
|
+
"max-height--desktop",
|
|
1501
|
+
"min-width",
|
|
1502
|
+
"min-width--mobile",
|
|
1503
|
+
"min-width--tablet",
|
|
1504
|
+
"min-width--laptop",
|
|
1505
|
+
"min-width--desktop",
|
|
1506
|
+
"max-width",
|
|
1507
|
+
"max-width--mobile",
|
|
1508
|
+
"max-width--tablet",
|
|
1509
|
+
"max-width--laptop",
|
|
1510
|
+
"max-width--desktop"
|
|
1501
1511
|
];
|
|
1502
1512
|
}
|
|
1503
1513
|
attributeChangedCallback(e, t, n) {
|
|
@@ -1537,6 +1547,18 @@ var I = [
|
|
|
1537
1547
|
case "direction--desktop":
|
|
1538
1548
|
this.updateFlexProperties(e, t, n, I), this.updateVerticalStyles();
|
|
1539
1549
|
break;
|
|
1550
|
+
case "min-width":
|
|
1551
|
+
case "min-width--mobile":
|
|
1552
|
+
case "min-width--tablet":
|
|
1553
|
+
case "min-width--laptop":
|
|
1554
|
+
case "min-width--desktop":
|
|
1555
|
+
case "max-width":
|
|
1556
|
+
case "max-width--mobile":
|
|
1557
|
+
case "max-width--tablet":
|
|
1558
|
+
case "max-width--laptop":
|
|
1559
|
+
case "max-width--desktop":
|
|
1560
|
+
n && !CSS.supports(e.split("--")[0], n) && r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
1561
|
+
break;
|
|
1540
1562
|
case "overflow-y":
|
|
1541
1563
|
case "overflow-y--mobile":
|
|
1542
1564
|
case "overflow-y--tablet":
|
|
@@ -1575,7 +1597,7 @@ var I = [
|
|
|
1575
1597
|
y(i, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : r(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
1576
1598
|
}
|
|
1577
1599
|
updateFlexProperties(t, n, i, a) {
|
|
1578
|
-
i !== null && !this.checkName(a, i) && r(`"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1600
|
+
a && i !== null && !this.checkName(a, i) && r(`"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${a.join("\", \"")}".`);
|
|
1579
1601
|
let o = t.indexOf("--");
|
|
1580
1602
|
if (o === -1) for (let n of e.breakpoints) this.getAttribute(`${t}--${n}`) || this.updateStyle(t, n, i, a);
|
|
1581
1603
|
else {
|
|
@@ -1584,12 +1606,12 @@ var I = [
|
|
|
1584
1606
|
}
|
|
1585
1607
|
}
|
|
1586
1608
|
updateStyle(e, t, n, r) {
|
|
1587
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
1588
|
-
if (!n)
|
|
1609
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
1610
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
1589
1611
|
else if (a && r && r.includes(n)) {
|
|
1590
1612
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
1591
1613
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
1592
|
-
} else
|
|
1614
|
+
} else s.style.setProperty(i, n);
|
|
1593
1615
|
}
|
|
1594
1616
|
static {
|
|
1595
1617
|
this.breakpoints = [
|
|
@@ -1839,6 +1861,66 @@ var I = [
|
|
|
1839
1861
|
set maxHeightDesktop(e) {
|
|
1840
1862
|
a(this, "max-height--desktop", e);
|
|
1841
1863
|
}
|
|
1864
|
+
get minWidth() {
|
|
1865
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
1866
|
+
}
|
|
1867
|
+
set minWidth(e) {
|
|
1868
|
+
a(this, "min-width", e);
|
|
1869
|
+
}
|
|
1870
|
+
get minWidthMobile() {
|
|
1871
|
+
return this.getAttribute("min-width--mobile");
|
|
1872
|
+
}
|
|
1873
|
+
set minWidthMobile(e) {
|
|
1874
|
+
a(this, "min-width--mobile", e);
|
|
1875
|
+
}
|
|
1876
|
+
get minWidthTablet() {
|
|
1877
|
+
return this.getAttribute("min-width--tablet");
|
|
1878
|
+
}
|
|
1879
|
+
set minWidthTablet(e) {
|
|
1880
|
+
a(this, "min-width--tablet", e);
|
|
1881
|
+
}
|
|
1882
|
+
get minWidthLaptop() {
|
|
1883
|
+
return this.getAttribute("min-width--laptop");
|
|
1884
|
+
}
|
|
1885
|
+
set minWidthLaptop(e) {
|
|
1886
|
+
a(this, "min-width--laptop", e);
|
|
1887
|
+
}
|
|
1888
|
+
get minWidthDesktop() {
|
|
1889
|
+
return this.getAttribute("min-width--desktop");
|
|
1890
|
+
}
|
|
1891
|
+
set minWidthDesktop(e) {
|
|
1892
|
+
a(this, "min-width--desktop", e);
|
|
1893
|
+
}
|
|
1894
|
+
get maxWidth() {
|
|
1895
|
+
return this.getAttribute("max-width") ?? "none";
|
|
1896
|
+
}
|
|
1897
|
+
set maxWidth(e) {
|
|
1898
|
+
a(this, "max-width", e);
|
|
1899
|
+
}
|
|
1900
|
+
get maxWidthMobile() {
|
|
1901
|
+
return this.getAttribute("max-width--mobile");
|
|
1902
|
+
}
|
|
1903
|
+
set maxWidthMobile(e) {
|
|
1904
|
+
a(this, "max-width--mobile", e);
|
|
1905
|
+
}
|
|
1906
|
+
get maxWidthTablet() {
|
|
1907
|
+
return this.getAttribute("max-width--tablet");
|
|
1908
|
+
}
|
|
1909
|
+
set maxWidthTablet(e) {
|
|
1910
|
+
a(this, "max-width--tablet", e);
|
|
1911
|
+
}
|
|
1912
|
+
get maxWidthLaptop() {
|
|
1913
|
+
return this.getAttribute("max-width--laptop");
|
|
1914
|
+
}
|
|
1915
|
+
set maxWidthLaptop(e) {
|
|
1916
|
+
a(this, "max-width--laptop", e);
|
|
1917
|
+
}
|
|
1918
|
+
get maxWidthDesktop() {
|
|
1919
|
+
return this.getAttribute("max-width--desktop");
|
|
1920
|
+
}
|
|
1921
|
+
set maxWidthDesktop(e) {
|
|
1922
|
+
a(this, "max-width--desktop", e);
|
|
1923
|
+
}
|
|
1842
1924
|
get $el() {
|
|
1843
1925
|
return this.shadowRoot.firstElementChild;
|
|
1844
1926
|
}
|