@ichaingo/providers 1.5.7-beta → 1.5.8
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/theme.d.ts +8 -2
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +12 -10
- package/package.json +1 -1
package/dist/theme.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
interface ThemeProviderWrapperProps {
|
|
2
2
|
children: React.ReactNode;
|
|
3
|
-
|
|
3
|
+
cookieOptions?: {
|
|
4
|
+
domain: string;
|
|
5
|
+
};
|
|
6
|
+
storageKey?: string;
|
|
7
|
+
}
|
|
8
|
+
export default function ThemeProviderWrapper({ children, cookieOptions, storageKey }: ThemeProviderWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
4
10
|
//# sourceMappingURL=theme.d.ts.map
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.tsx"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,QAAQ,EACR,aAAyC,EACzC,UAA4B,EAC7B,EAAE,yBAAyB,2CAa3B"}
|
package/dist/theme.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { ThemeProvider as
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { ThemeProvider as i } from "@ichaingo/next-themes";
|
|
4
|
+
function n({
|
|
5
|
+
children: e,
|
|
6
|
+
cookieOptions: r = { domain: ".ichatgo.ai" },
|
|
7
|
+
storageKey: t = "ichatgo-theme"
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ a(
|
|
10
|
+
i,
|
|
7
11
|
{
|
|
8
12
|
attribute: "class",
|
|
9
13
|
enableSystem: !0,
|
|
10
14
|
disableTransitionOnChange: !0,
|
|
11
|
-
storageKey:
|
|
15
|
+
storageKey: t,
|
|
12
16
|
themes: ["light", "dark"],
|
|
13
|
-
cookieOptions:
|
|
14
|
-
domain: ".ichatgo.ai"
|
|
15
|
-
},
|
|
17
|
+
cookieOptions: r,
|
|
16
18
|
children: e
|
|
17
19
|
}
|
|
18
20
|
);
|
|
19
21
|
}
|
|
20
22
|
export {
|
|
21
|
-
|
|
23
|
+
n as default
|
|
22
24
|
};
|