quirk-ui 0.0.232 → 0.0.233

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.
@@ -1,14 +1,15 @@
1
- import { jsx as n, Fragment as c } from "react/jsx-runtime";
2
- import { useEffect as f } from "react";
1
+ import { jsx as f, Fragment as i } from "react/jsx-runtime";
2
+ import { useEffect as m } from "react";
3
3
  import '../../assets/colors.css';/* empty css */
4
- function u({ children: t, theme: o = {} }) {
5
- return f(() => {
6
- const e = document.documentElement;
7
- Object.entries(o).forEach(([m, r]) => {
8
- r && e.style.setProperty(`--color-${m}`, r);
4
+ function s({ children: r, theme: e = {} }) {
5
+ return m(() => {
6
+ if (typeof window > "u") return;
7
+ const t = document.documentElement;
8
+ Object.entries(e).forEach(([n, o]) => {
9
+ o && t.style.setProperty(`--color-${n}`, o);
9
10
  });
10
- }, [o]), /* @__PURE__ */ n(c, { children: t });
11
+ }, [e]), /* @__PURE__ */ f(i, { children: r });
11
12
  }
12
13
  export {
13
- u as ThemeProvider
14
+ s as ThemeProvider
14
15
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.232",
4
+ "version": "0.0.233",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {