@getflip/swirl-components 0.51.0 → 0.52.0
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/components.json +3 -3
- package/dist/cjs/swirl-toast-provider.cjs.entry.js +4 -1
- package/dist/cjs/swirl-toast.cjs.entry.js +1 -1
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-toast/swirl-toast.js +3 -3
- package/dist/collection/components/swirl-toast/swirl-toast.stories.js +4 -1
- package/dist/collection/components/swirl-toast-provider/swirl-toast-provider.js +4 -1
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-toast-provider.js +4 -1
- package/dist/components/swirl-toast2.js +1 -1
- package/dist/esm/swirl-toast-provider.entry.js +4 -1
- package/dist/esm/swirl-toast.entry.js +1 -1
- package/dist/swirl-components/p-64b92967.entry.js +1 -0
- package/dist/swirl-components/{p-cddec2c8.entry.js → p-7d702522.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-toast/swirl-toast.d.ts +1 -1
- package/dist/types/components/swirl-toast/swirl-toast.stories.d.ts +3 -0
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/swirl-components/p-ae7a2dde.entry.js +0 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-05-
|
|
2
|
+
"timestamp": "2023-05-08T12:08:32",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "3.0.0",
|
|
@@ -19382,8 +19382,8 @@
|
|
|
19382
19382
|
"type": "string"
|
|
19383
19383
|
}
|
|
19384
19384
|
],
|
|
19385
|
-
"optional":
|
|
19386
|
-
"required":
|
|
19385
|
+
"optional": true,
|
|
19386
|
+
"required": false
|
|
19387
19387
|
},
|
|
19388
19388
|
{
|
|
19389
19389
|
"name": "dismissLabel",
|
|
@@ -50,7 +50,10 @@ const SwirlToastProvider = class {
|
|
|
50
50
|
return newToastWithId;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (index.h(index.Host, { role: "status" }, index.h("swirl-stack", { spacing: "12" }, this.toasts.map((toast) =>
|
|
53
|
+
return (index.h(index.Host, { role: "status" }, index.h("swirl-stack", { spacing: "12" }, this.toasts.map((toast) => {
|
|
54
|
+
const props = Object.assign(Object.assign({}, toast), { content: undefined });
|
|
55
|
+
return (index.h("swirl-toast", Object.assign({ key: toast.toastId, onDismiss: this.onDismiss }, props), toast.content));
|
|
56
|
+
}))));
|
|
54
57
|
}
|
|
55
58
|
};
|
|
56
59
|
|
|
@@ -65,7 +65,7 @@ const SwirlToast = class {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const className = index$1.classnames("toast", `toast--intent-${this.intent}`);
|
|
68
|
-
return (index.h(index.Host, null, index.h("div", { class: className }, this.icon && (index.h("span", { class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), index.h("span", { class: "toast__content", innerHTML: this.content, part: "toast__content" }), index.h("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (index.h("swirl-icon-close", { ref: (el) => (this.dismissIconEl = el) }))))));
|
|
68
|
+
return (index.h(index.Host, null, index.h("div", { class: className }, this.icon && (index.h("span", { class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), index.h("span", { class: "toast__content", innerHTML: this.content, part: "toast__content" }, index.h("slot", null)), index.h("button", { "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (index.h("swirl-icon-close", { ref: (el) => (this.dismissIconEl = el) }))))));
|
|
69
69
|
}
|
|
70
70
|
static get watchers() { return {
|
|
71
71
|
"duration": ["watchDuration"]
|