@proximus/lavender 2.0.0-alpha.113 → 2.0.0-alpha.115
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +65 -5
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -2185,6 +2185,9 @@ class Icon extends WithExtraAttributes {
|
|
|
2185
2185
|
__privateGet(this, _internals).ariaHidden = "true";
|
|
2186
2186
|
this.ariaHidden = "true";
|
|
2187
2187
|
}
|
|
2188
|
+
if (this.parentElement.localName === "px-a" && this.slot !== "before" && this.slot !== "after") {
|
|
2189
|
+
this.setAttribute("color", "inherit");
|
|
2190
|
+
}
|
|
2188
2191
|
}
|
|
2189
2192
|
updateAttribute(attrName, oldValue, newValue, attrValues) {
|
|
2190
2193
|
if (oldValue !== null && oldValue !== "") {
|
|
@@ -9833,7 +9836,7 @@ let Separator = _Separator;
|
|
|
9833
9836
|
if (!customElements.get("px-separator")) {
|
|
9834
9837
|
customElements.define("px-separator", Separator);
|
|
9835
9838
|
}
|
|
9836
|
-
const styles$z = ':host *{box-sizing:border-box}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}dialog{box-shadow:none;padding:0;margin:auto 0 0;border:0;width:100%;animation:dialog-fade-in-bottom .3s;border-radius:var(--px-radius-main) var(--px-radius-main) 0 0;background-color:var(--px-color-background-surface-light)}#container{display:grid;grid-template:"header close" auto "content content" 1fr "footer footer" auto / 1fr auto;column-gap:var(--px-spacing-l-mobile);padding:var(--px-padding-l-mobile);max-height:90dvh}#header{grid-area:header;margin-bottom:var(--px-spacing-l-mobile)}#close{grid-area:close}#content{grid-area:content;overflow:hidden;overflow-y:auto}#footer{grid-area:footer;margin-top:var(--px-spacing-l-mobile)}@media screen and (min-width: 48rem){#container{column-gap:var(--px-spacing-l-tablet);padding:var(--px-padding-l-tablet)}#header{margin-bottom:var(--px-spacing-l-tablet)}#footer{margin-top:var(--px-spacing-l-tablet)}}@media screen and (min-width: 64.0625rem){#container{column-gap:var(--px-spacing-l-laptop);padding:var(--px-padding-l-laptop);max-width:var(--px-content-wrapper-max-width-laptop);margin:0 auto}#header{margin-bottom:var(--px-spacing-l-laptop)}#footer{margin-top:var(--px-spacing-l-laptop)}:host([showfrom="right"]) dialog{width:75%;height:100%;margin:0 0 0 auto;animation:dialog-fade-in-right .3s;border-radius:var(--px-radius-main) 0 0 var(--px-radius-main)}:host([showfrom="right"]) #container{
|
|
9839
|
+
const styles$z = ':host *{box-sizing:border-box}::backdrop{background:#0000004d;-webkit-backdrop-filter:saturate(180%) blur(15px);backdrop-filter:saturate(180%) blur(15px)}dialog{box-shadow:none;padding:0;margin:auto 0 0;border:0;width:100%;animation:dialog-fade-in-bottom .3s;border-radius:var(--px-radius-main) var(--px-radius-main) 0 0;background-color:var(--px-color-background-surface-light)}#container{display:grid;grid-template:"header close" auto "content content" 1fr "footer footer" auto / 1fr auto;column-gap:var(--px-spacing-l-mobile);padding:var(--px-padding-l-mobile);max-height:90dvh}#header{grid-area:header;margin-bottom:var(--px-spacing-l-mobile)}#close{grid-area:close}#content{grid-area:content;overflow:hidden;overflow-y:auto}#footer{grid-area:footer;margin-top:var(--px-spacing-l-mobile)}:host([fullscreen]) #container{height:90dvh}@media screen and (max-width: 47.938rem){:host([fullscreen--mobile]) #container{height:90dvh}}@media screen and (min-width: 48rem) and (max-width: 64rem){:host([fullscreen--tablet]) #container{height:90dvh}}@media screen and (min-width: 48rem){#container{column-gap:var(--px-spacing-l-tablet);padding:var(--px-padding-l-tablet)}#header{margin-bottom:var(--px-spacing-l-tablet)}#footer{margin-top:var(--px-spacing-l-tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([fullscreen--laptop]:not([showfrom="left"]):not([showfrom="right"])) #container{height:90dvh}}@media screen and (min-width: 64.0625rem){#container{column-gap:var(--px-spacing-l-laptop);padding:var(--px-padding-l-laptop);max-width:var(--px-content-wrapper-max-width-laptop);margin:0 auto}#header{margin-bottom:var(--px-spacing-l-laptop)}#footer{margin-top:var(--px-spacing-l-laptop)}:host([showfrom="right"]) dialog,:host([showfrom="left"]) dialog{width:75%;height:100%}:host([showfrom="right"]) #container,:host([showfrom="left"]) #container{max-height:100%;height:100%}:host([showfrom="right"]) dialog{margin:0 0 0 auto;animation:dialog-fade-in-right .3s;border-radius:var(--px-radius-main) 0 0 var(--px-radius-main)}:host([showfrom="right"]) #container{margin:0 auto 0 0}:host([showfrom="left"]) dialog{margin:0 auto 0 0;animation:dialog-fade-in-left .3s;border-radius:0 var(--px-radius-main) var(--px-radius-main) 0}:host([showfrom="left"]) #container{margin:0 0 0 auto}:host([showfrom="right"][fullscreen]) #container,:host([showfrom="left"][fullscreen]) #container{height:100%}}@media screen and (min-width: 90.0625rem){#container{column-gap:var(--px-spacing-l-desktop);padding:var(--px-padding-l-desktop)}#header{margin-bottom:var(--px-spacing-l-desktop)}#footer{margin-top:var(--px-spacing-l-desktop)}:host([fullscreen--desktop]:not([showfrom="left"]):not([showfrom="right"])) #container{height:90dvh}}@keyframes dialog-fade-in-right{0%{margin-right:-1080px}to{margin-right:0}}@keyframes dialog-fade-in-left{0%{margin-left:-1080px}to{margin-left:0}}@keyframes dialog-fade-in-bottom{0%{margin-bottom:-200px}to{margin-bottom:0}}';
|
|
9837
9840
|
const styleSheet$u = new CSSStyleSheet();
|
|
9838
9841
|
styleSheet$u.replaceSync(styles$z);
|
|
9839
9842
|
const HIDE_EVENT = "px.lavender.drawer.hide";
|
|
@@ -9902,7 +9905,17 @@ class Drawer extends HTMLElement {
|
|
|
9902
9905
|
);
|
|
9903
9906
|
}
|
|
9904
9907
|
static get observedAttributes() {
|
|
9905
|
-
return [
|
|
9908
|
+
return [
|
|
9909
|
+
"open",
|
|
9910
|
+
"close-button-aria-label",
|
|
9911
|
+
"openedby",
|
|
9912
|
+
"closedby",
|
|
9913
|
+
"fullscreen",
|
|
9914
|
+
"fullscreen--mobile",
|
|
9915
|
+
"fullscreen--tablet",
|
|
9916
|
+
"fullscreen--laptop",
|
|
9917
|
+
"fullscreen--desktop"
|
|
9918
|
+
];
|
|
9906
9919
|
}
|
|
9907
9920
|
attributeChangedCallback(attrName, oldValue, newValue) {
|
|
9908
9921
|
var _a, _b, _c;
|
|
@@ -10059,6 +10072,56 @@ class Drawer extends HTMLElement {
|
|
|
10059
10072
|
set closedby(value) {
|
|
10060
10073
|
this.setAttribute("closedby", value);
|
|
10061
10074
|
}
|
|
10075
|
+
get fullscreen() {
|
|
10076
|
+
return this.hasAttribute("fullscreen");
|
|
10077
|
+
}
|
|
10078
|
+
set fullscreen(value) {
|
|
10079
|
+
if (value) {
|
|
10080
|
+
this.setAttribute("fullscreen", "");
|
|
10081
|
+
} else {
|
|
10082
|
+
this.removeAttribute("fullscreen");
|
|
10083
|
+
}
|
|
10084
|
+
}
|
|
10085
|
+
get fullscreenMobile() {
|
|
10086
|
+
return this.hasAttribute("fullscreen--mobile");
|
|
10087
|
+
}
|
|
10088
|
+
set fullscreenMobile(value) {
|
|
10089
|
+
if (value) {
|
|
10090
|
+
this.setAttribute("fullscreen--mobile", "");
|
|
10091
|
+
} else {
|
|
10092
|
+
this.removeAttribute("fullscreen--mobile");
|
|
10093
|
+
}
|
|
10094
|
+
}
|
|
10095
|
+
get fullscreenTablet() {
|
|
10096
|
+
return this.hasAttribute("fullscreen--tablet");
|
|
10097
|
+
}
|
|
10098
|
+
set fullscreenTablet(value) {
|
|
10099
|
+
if (value) {
|
|
10100
|
+
this.setAttribute("fullscreen--tablet", "");
|
|
10101
|
+
} else {
|
|
10102
|
+
this.removeAttribute("fullscreen--tablet");
|
|
10103
|
+
}
|
|
10104
|
+
}
|
|
10105
|
+
get fullscreenLaptop() {
|
|
10106
|
+
return this.hasAttribute("fullscreen--laptop");
|
|
10107
|
+
}
|
|
10108
|
+
set fullscreenLaptop(value) {
|
|
10109
|
+
if (value) {
|
|
10110
|
+
this.setAttribute("fullscreen--laptop", "");
|
|
10111
|
+
} else {
|
|
10112
|
+
this.removeAttribute("fullscreen--laptop");
|
|
10113
|
+
}
|
|
10114
|
+
}
|
|
10115
|
+
get fullscreenDesktop() {
|
|
10116
|
+
return this.hasAttribute("fullscreen--desktop");
|
|
10117
|
+
}
|
|
10118
|
+
set fullscreenDesktop(value) {
|
|
10119
|
+
if (value) {
|
|
10120
|
+
this.setAttribute("fullscreen--desktop", "");
|
|
10121
|
+
} else {
|
|
10122
|
+
this.removeAttribute("fullscreen--desktop");
|
|
10123
|
+
}
|
|
10124
|
+
}
|
|
10062
10125
|
}
|
|
10063
10126
|
if (!customElements.get("px-drawer")) {
|
|
10064
10127
|
customElements.define("px-drawer", Drawer);
|
|
@@ -10627,9 +10690,6 @@ const _Link = class _Link extends PxElement {
|
|
|
10627
10690
|
`"${newValue}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${linkVariantValues.join('", "')}".`
|
|
10628
10691
|
);
|
|
10629
10692
|
}
|
|
10630
|
-
if (newValue === "icon-link") {
|
|
10631
|
-
this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
10632
|
-
}
|
|
10633
10693
|
}
|
|
10634
10694
|
updateShape(attrName, newValue, attrValue) {
|
|
10635
10695
|
if (!checkName(attrValue, newValue)) {
|