@nubitio/ui 0.5.24 → 0.5.27

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.cjs CHANGED
@@ -760,7 +760,13 @@ function setThemeToDOM(href) {
760
760
  link.setAttribute("data-theme-href", href);
761
761
  document.head.appendChild(link);
762
762
  }
763
- link.onload = () => resolve();
763
+ const timer = setTimeout(resolve, 5e3);
764
+ const settle = () => {
765
+ clearTimeout(timer);
766
+ resolve();
767
+ };
768
+ link.onload = settle;
769
+ link.onerror = settle;
764
770
  });
765
771
  }
766
772
  function applyThemeAttributes(theme, themePrefix) {
package/dist/index.mjs CHANGED
@@ -736,7 +736,13 @@ function setThemeToDOM(href) {
736
736
  link.setAttribute("data-theme-href", href);
737
737
  document.head.appendChild(link);
738
738
  }
739
- link.onload = () => resolve();
739
+ const timer = setTimeout(resolve, 5e3);
740
+ const settle = () => {
741
+ clearTimeout(timer);
742
+ resolve();
743
+ };
744
+ link.onload = settle;
745
+ link.onerror = settle;
740
746
  });
741
747
  }
742
748
  function applyThemeAttributes(theme, themePrefix) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubitio/ui",
3
- "version": "0.5.24",
3
+ "version": "0.5.27",
4
4
  "type": "module",
5
5
  "description": "Visual primitives and theme system for the Nubit admin stack (dialogs, cards, toolbar, light/dark theme).",
6
6
  "license": "MIT",