@proximus/lavender 2.0.0-alpha.114 → 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.
@@ -9836,7 +9836,7 @@ let Separator = _Separator;
9836
9836
  if (!customElements.get("px-separator")) {
9837
9837
  customElements.define("px-separator", Separator);
9838
9838
  }
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)}@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{max-height:100%;height:100%;margin:0 auto 0 0}:host([showfrom="left"]) dialog{width:75%;height:100%;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}}@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)}}@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}}';
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}}';
9840
9840
  const styleSheet$u = new CSSStyleSheet();
9841
9841
  styleSheet$u.replaceSync(styles$z);
9842
9842
  const HIDE_EVENT = "px.lavender.drawer.hide";
@@ -9905,7 +9905,17 @@ class Drawer extends HTMLElement {
9905
9905
  );
9906
9906
  }
9907
9907
  static get observedAttributes() {
9908
- return ["open", "close-button-aria-label", "openedby", "closedby"];
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
+ ];
9909
9919
  }
9910
9920
  attributeChangedCallback(attrName, oldValue, newValue) {
9911
9921
  var _a, _b, _c;
@@ -10062,6 +10072,56 @@ class Drawer extends HTMLElement {
10062
10072
  set closedby(value) {
10063
10073
  this.setAttribute("closedby", value);
10064
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
+ }
10065
10125
  }
10066
10126
  if (!customElements.get("px-drawer")) {
10067
10127
  customElements.define("px-drawer", Drawer);