@ichaingo/providers 1.3.7 → 1.3.71

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 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAavF"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAYvF"}
package/dist/theme.js CHANGED
@@ -1,30 +1,19 @@
1
1
  'use client';
2
- import { jsxs as t, jsx as s } from "react/jsx-runtime";
3
- import { ThemeProvider as a, useTheme as m } from "next-themes";
4
- import { useSearchParams as i } from "next/navigation";
5
- import { useEffect as n } from "react";
6
- function o() {
7
- const { setTheme: r } = m(), e = i().get("theme");
8
- return n(() => {
9
- e && ["light", "dark"].includes(e) && r(e);
10
- }, [e]), null;
11
- }
12
- function d({ children: r }) {
13
- return /* @__PURE__ */ t(
14
- a,
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { ThemeProvider as t } from "@ichaingo/next-themes";
4
+ function o({ children: e }) {
5
+ return /* @__PURE__ */ r(
6
+ t,
15
7
  {
16
8
  attribute: "class",
17
9
  enableSystem: !0,
18
10
  disableTransitionOnChange: !0,
19
11
  storageKey: "ichaingo-theme",
20
12
  themes: ["light", "dark"],
21
- children: [
22
- /* @__PURE__ */ s(o, {}),
23
- r
24
- ]
13
+ children: e
25
14
  }
26
15
  );
27
16
  }
28
17
  export {
29
- d as default
18
+ o as default
30
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichaingo/providers",
3
- "version": "1.3.7",
3
+ "version": "1.3.71",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "next": "^15.4.5",
32
- "next-themes": "^0.4.6",
32
+ "@ichaingo/next-themes": "^0.4.11",
33
33
  "react": "^19.1.0",
34
34
  "tailwind-merge": "^3.3.1"
35
35
  },