@gx-design-vue/context 0.0.5-alpha.0 → 0.0.5-alpha.2
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,6 +1,6 @@
|
|
|
1
1
|
import { ThemeProviderContext } from "./types.js";
|
|
2
2
|
|
|
3
3
|
//#region src/theme-context/context.d.ts
|
|
4
|
-
declare const createThemeContext: (value: ThemeProviderContext) => void, useThemeContext: (injectDefaultValue?: ThemeProviderContext
|
|
4
|
+
declare const createThemeContext: (value: ThemeProviderContext) => void, useThemeContext: (injectDefaultValue?: ThemeProviderContext) => ThemeProviderContext;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { createThemeContext, useThemeContext };
|
|
@@ -2,6 +2,6 @@ import * as _vueuse_core0 from "@vueuse/core";
|
|
|
2
2
|
|
|
3
3
|
//#region src/theme-context/dark.d.ts
|
|
4
4
|
declare const isDark: _vueuse_core0.UseDarkReturn;
|
|
5
|
-
declare const toggleDark: (value?: boolean
|
|
5
|
+
declare const toggleDark: (value?: boolean) => boolean;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { isDark, toggleDark };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/context",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.5-alpha.
|
|
4
|
+
"version": "0.0.5-alpha.2",
|
|
5
5
|
"description": "Gx Design Context",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "gx12358",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@vueuse/core": "^14.2.0",
|
|
44
|
-
"@gx-design-vue/pro-utils": "0.2.0-alpha.
|
|
44
|
+
"@gx-design-vue/pro-utils": "^0.2.0-alpha.2"
|
|
45
45
|
},
|
|
46
46
|
"browserslist": [
|
|
47
47
|
"> 1%",
|