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.
- package/dist/cjs/smoothly-accordion_58.cjs.entry.js +7 -3
- package/dist/cjs/smoothly-accordion_58.cjs.entry.js.map +1 -1
- package/dist/collection/components/burger/index.js +6 -3
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/notification/index.js +1 -1
- package/dist/collection/components/notification/index.js.map +1 -1
- package/dist/collection/components/notification/style.css +15 -7
- package/dist/custom-elements/index.js +7 -3
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/smoothly-accordion_58.entry.js +7 -3
- package/dist/esm/smoothly-accordion_58.entry.js.map +1 -1
- package/dist/smoothly/p-271c2f90.entry.js +2 -0
- package/dist/smoothly/p-271c2f90.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/burger/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/smoothly/p-6de9baa3.entry.js +0 -2
- package/dist/smoothly/p-6de9baa3.entry.js.map +0 -1
|
@@ -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 =
|
|
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}.
|
|
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",
|
|
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"]
|