@getflip/swirl-components 0.351.0 → 0.352.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 +2 -2
- package/dist/cjs/swirl-toast.cjs.entry.js +2 -2
- package/dist/collection/components/swirl-toast/swirl-toast.js +3 -3
- package/dist/collection/components/swirl-toast/swirl-toast.stories.js +3 -0
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +1 -1
- package/dist/components/swirl-toast2.js +2 -2
- package/dist/esm/swirl-toast.entry.js +2 -2
- package/dist/swirl-components/p-833ab945.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-toast/swirl-toast.d.ts +3 -0
- package/dist/types/components/swirl-toast/swirl-toast.stories.d.ts +3 -0
- package/dist/types/components.d.ts +6 -0
- package/package.json +1 -1
- package/vscode-data.json +1 -1
- package/dist/swirl-components/p-78603004.entry.js +0 -1
package/components.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-07-24T08:
|
|
2
|
+
"timestamp": "2025-07-24T08:58:19",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.35.0",
|
|
@@ -71528,7 +71528,7 @@
|
|
|
71528
71528
|
"mutable": false,
|
|
71529
71529
|
"attr": "duration",
|
|
71530
71530
|
"reflectToAttr": false,
|
|
71531
|
-
"docs": "",
|
|
71531
|
+
"docs": "When set to Infinity, the toast will remain visible until explicitly dismissed",
|
|
71532
71532
|
"docsTags": [],
|
|
71533
71533
|
"values": [
|
|
71534
71534
|
{
|
|
@@ -38,7 +38,7 @@ const SwirlToast = class {
|
|
|
38
38
|
}
|
|
39
39
|
startTimer() {
|
|
40
40
|
this.clearTimer();
|
|
41
|
-
if (this.duration === undefined) {
|
|
41
|
+
if (this.duration === undefined || this.duration === Infinity) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this.timeout = setTimeout(() => {
|
|
@@ -54,7 +54,7 @@ const SwirlToast = class {
|
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
const className = index$1.classnames("toast", `toast--intent-${this.intent}`);
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
57
|
+
return (index.h(index.Host, { key: '4c5034f5eecff5a7193a3578b376c7be27ce53fc' }, index.h("div", { key: '0748f69fcdd6d1890e04e296ea7bfc7e8ce1e70e', class: className }, this.icon && (index.h("span", { key: '74b9864ed23e7faa4f5aa874798bbc2ede631f88', class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), index.h("span", { key: 'f5f4cbc4a58cd7ec19412d284033ea24a6da419d', class: "toast__content", innerHTML: this.content, part: "toast__content" }, index.h("slot", { key: 'c873fa45a42b1af610aa61c672b187ce4e3c1038' })), index.h("button", { key: '2c6608afc754da275ab5029feca800ec5acd51f3', "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", { key: 'e5a6fb1ae4380d977af18299869cd729b1c5e326', ref: (el) => (this.dismissIconEl = el) }))))));
|
|
58
58
|
}
|
|
59
59
|
static get watchers() { return {
|
|
60
60
|
"duration": ["watchDuration"]
|
|
@@ -30,7 +30,7 @@ export class SwirlToast {
|
|
|
30
30
|
}
|
|
31
31
|
startTimer() {
|
|
32
32
|
this.clearTimer();
|
|
33
|
-
if (this.duration === undefined) {
|
|
33
|
+
if (this.duration === undefined || this.duration === Infinity) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
this.timeout = setTimeout(() => {
|
|
@@ -46,7 +46,7 @@ export class SwirlToast {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const className = classnames("toast", `toast--intent-${this.intent}`);
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '4c5034f5eecff5a7193a3578b376c7be27ce53fc' }, h("div", { key: '0748f69fcdd6d1890e04e296ea7bfc7e8ce1e70e', class: className }, this.icon && (h("span", { key: '74b9864ed23e7faa4f5aa874798bbc2ede631f88', class: "toast__icon", innerHTML: this.icon, part: "toast__icon", ref: (el) => (this.iconEl = el) })), h("span", { key: 'f5f4cbc4a58cd7ec19412d284033ea24a6da419d', class: "toast__content", innerHTML: this.content, part: "toast__content" }, h("slot", { key: 'c873fa45a42b1af610aa61c672b187ce4e3c1038' })), h("button", { key: '2c6608afc754da275ab5029feca800ec5acd51f3', "aria-label": this.dismissLabel || this.accessibleDismissLabel, class: "toast__dismiss-button", onClick: this.onDismiss, type: "button" }, this.dismissLabel, !Boolean(this.dismissLabel) && (h("swirl-icon-close", { key: 'e5a6fb1ae4380d977af18299869cd729b1c5e326', ref: (el) => (this.dismissIconEl = el) }))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "swirl-toast"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,7 +133,7 @@ export class SwirlToast {
|
|
|
133
133
|
"optional": true,
|
|
134
134
|
"docs": {
|
|
135
135
|
"tags": [],
|
|
136
|
-
"text": ""
|
|
136
|
+
"text": "When set to Infinity, the toast will remain visible until explicitly dismissed"
|
|
137
137
|
},
|
|
138
138
|
"getter": false,
|
|
139
139
|
"setter": false,
|