@julseb-lib/react 0.0.32 → 0.0.34

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.es.js CHANGED
@@ -5879,7 +5879,7 @@ const Yd = (l) => {
5879
5879
  e === "light" ? (a("dark"), d(a0.dark), localStorage.setItem("theme", "dark"), f.classList.add("dark")) : (a("light"), d(a0.light), localStorage.setItem("theme", "light"), f.classList.remove("dark"));
5880
5880
  };
5881
5881
  return z2(() => {
5882
- typeof window < "u" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && !e || localStorage.getItem("theme") === "dark" ? (a("dark"), d(a0.dark), f.classList.add("dark")) : localStorage.getItem("theme") === "light" && (a("light"), d(a0.light), f.classList.remove("dark")));
5882
+ typeof window < "u" && (window.localStorage.getItem("key") || window.localStorage.setItem("theme", "light"), window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && !e || localStorage.getItem("theme") === "dark" ? (a("dark"), d(a0.dark), f.classList.add("dark")) : localStorage.getItem("theme") === "light" && (a("light"), d(a0.light), f.classList.remove("dark")));
5883
5883
  }, [e, f]), /* @__PURE__ */ t.jsx(f4.Provider, { value: { theme: h, selectedTheme: e, toggleTheme: i }, children: c ? /* @__PURE__ */ t.jsx(
5884
5884
  il,
5885
5885
  {
@@ -21999,6 +21999,7 @@ export {
21999
21999
  d0 as LAYOUTS,
22000
22000
  C2 as LIB_TOKENS,
22001
22001
  n2 as LINE_HEIGHTS,
22002
+ a0 as LibThemeColors,
22002
22003
  s1 as Linkify,
22003
22004
  Mi as ListGroup,
22004
22005
  jh as ListGroupItem,