smoothly 1.0.0-alpha.26 → 1.0.0-alpha.28

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.
@@ -240,9 +240,13 @@ const SmoothlyBurger = class {
240
240
  index.registerInstance(this, hostRef);
241
241
  this.burgerStatus = index.createEvent(this, "burgerStatus", 7);
242
242
  this.visible = undefined;
243
- this.open = false;
243
+ this.open = undefined;
244
244
  this.mediaQuery = "(max-width: 900px)";
245
245
  }
246
+ componentWillLoad() {
247
+ const windowsize = window.innerWidth;
248
+ windowsize > 900 ? (this.visible = false) : (this.visible = true);
249
+ }
246
250
  closedHandler() {
247
251
  this.burgerStatus.emit(this.open);
248
252
  }
@@ -26783,7 +26787,7 @@ const Item = class {
26783
26787
  };
26784
26788
  Item.style = styleCss$r;
26785
26789
 
26786
- const styleCss$q = ".sc-smoothly-notification-h{display:block;width:30em;min-height:3em;border-radius:5px;margin:0.5em}.sc-smoothly-notification-h>span.sc-smoothly-notification{display:flex;justify-content:center;align-items:center;padding:0.5em 1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:center}[hidden].sc-smoothly-notification-h{display:none}smoothly-icon.sc-smoothly-notification{float:left;margin-right:0.2em;font-size:1.5em;margin-top:0.5em}smoothly-trigger.sc-smoothly-notification{font-size:0.5em;float:right;text-align:right;margin-right:0.2em}";
26790
+ const styleCss$q = ".sc-smoothly-notification-h{display:block;width:30em;min-height:3em;border-radius:5px;margin:0.5em}.clean.sc-smoothly-notification{display:flex;justify-content:center;align-items:center;padding:0.5em 1em}.icon.sc-smoothly-notification{display:grid;width:100%;grid-template-columns:1fr 5fr}.icon.sc-smoothly-notification>p.sc-smoothly-notification{padding-right:1em}.sc-smoothly-notification-h>span.sc-smoothly-notification>p.sc-smoothly-notification{text-align:left}[hidden].sc-smoothly-notification-h{display:none}smoothly-icon.sc-smoothly-notification{left:0;font-size:1.2em;align-self:center;justify-self:center}smoothly-trigger.sc-smoothly-notification{font-size:0.5em;float:right;text-align:right;margin-right:0.2em}";
26787
26791
 
26788
26792
  const Notification = class {
26789
26793
  constructor(hostRef) {
@@ -26838,7 +26842,7 @@ const Notification = class {
26838
26842
  this.onUpdatedNotice(this.notice);
26839
26843
  }
26840
26844
  render() {
26841
- return (index.h(index.Host, { color: this.properties[0], fill: "solid" }, this.closable ? (index.h("smoothly-trigger", { fill: "clear", name: "close" }, index.h("smoothly-icon", { name: "close-circle-outline" }))) : (""), index.h("span", null, this.icon ? index.h("smoothly-icon", { name: this.properties[1] }) : "", index.h("p", null, this.notice.message))));
26845
+ return (index.h(index.Host, { color: this.properties[0], fill: "solid" }, this.closable ? (index.h("smoothly-trigger", { fill: "clear", name: "close" }, index.h("smoothly-icon", { name: "close-circle-outline" }))) : (""), index.h("span", { class: this.icon ? "icon" : "clean" }, this.icon ? index.h("smoothly-icon", { name: this.properties[1] }) : "", index.h("p", null, this.notice.message))));
26842
26846
  }
26843
26847
  static get watchers() { return {
26844
26848
  "notice": ["onUpdatedNotice"]