@cal.macconnachie/web-components 2.1.5 → 2.1.6
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7686,7 +7686,9 @@ function wa({
|
|
|
7686
7686
|
}) {
|
|
7687
7687
|
const s = document.createElement("base-toast");
|
|
7688
7688
|
s.id = `toast-${Date.now()}`, s.setAttribute("variant", e), s.setAttribute("position", t), s.setAttribute("dismiss", o), s.textContent = r, document.body.appendChild(s), s.show(), s.addEventListener("toast-hidden", () => {
|
|
7689
|
-
s.
|
|
7689
|
+
s.hide(), setTimeout(() => {
|
|
7690
|
+
s.parentElement && s.remove();
|
|
7691
|
+
}, 500);
|
|
7690
7692
|
});
|
|
7691
7693
|
}
|
|
7692
7694
|
var Lo = Object.defineProperty, Ze = (r, e, t, o) => {
|