@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. 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.remove();
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cal.macconnachie/web-components",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Web components hosted on a CDN",
5
5
  "keywords": [
6
6
  "web-components",