@gx-design-vue/context 0.0.5-alpha.6 → 0.0.5-alpha.7
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,4 +1,3 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
1
|
import { PropType, SlotsType } from "vue";
|
|
3
2
|
|
|
4
3
|
//#region src/context/ContextProvider.d.ts
|
|
@@ -19,7 +18,7 @@ declare const contextProps: {
|
|
|
19
18
|
required: boolean;
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
|
-
declare const ContextProvider:
|
|
21
|
+
declare const ContextProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
22
|
contextKey: {
|
|
24
23
|
type: PropType<ContextProviderProps["contextKey"]>;
|
|
25
24
|
required: boolean;
|
|
@@ -28,7 +27,7 @@ declare const ContextProvider: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
28
27
|
type: PropType<ContextProviderProps["value"]>;
|
|
29
28
|
required: boolean;
|
|
30
29
|
};
|
|
31
|
-
}>, () => any, {}, {}, {},
|
|
30
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
31
|
contextKey: {
|
|
33
32
|
type: PropType<ContextProviderProps["contextKey"]>;
|
|
34
33
|
required: boolean;
|
|
@@ -37,7 +36,7 @@ declare const ContextProvider: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
37
36
|
type: PropType<ContextProviderProps["value"]>;
|
|
38
37
|
required: boolean;
|
|
39
38
|
};
|
|
40
|
-
}>> & Readonly<{}>, {}, SlotsType<ContextProviderSlots>, {}, {}, string,
|
|
39
|
+
}>> & Readonly<{}>, {}, SlotsType<ContextProviderSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
40
|
declare function useContextProvider<T = any>(contextInjectKey: string, defaultValue?: T): T & {
|
|
42
41
|
contextId: string;
|
|
43
42
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseTheme, ThemeValue } from "./types.js";
|
|
2
|
-
import * as _$vue from "vue";
|
|
3
2
|
import { PropType, SlotsType } from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/theme-context/ThemeContext.d.ts
|
|
@@ -36,7 +35,7 @@ declare const themeContextProps: {
|
|
|
36
35
|
type: PropType<(theme: ThemeValue) => void>;
|
|
37
36
|
};
|
|
38
37
|
};
|
|
39
|
-
declare const ThemeContext:
|
|
38
|
+
declare const ThemeContext: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
40
39
|
theme: {
|
|
41
40
|
type: PropType<ThemeValue>;
|
|
42
41
|
};
|
|
@@ -53,7 +52,7 @@ declare const ThemeContext: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
53
52
|
onUpdateTheme: {
|
|
54
53
|
type: PropType<(theme: ThemeValue) => void>;
|
|
55
54
|
};
|
|
56
|
-
}>, () => any, {}, {}, {},
|
|
55
|
+
}>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
56
|
theme: {
|
|
58
57
|
type: PropType<ThemeValue>;
|
|
59
58
|
};
|
|
@@ -72,6 +71,6 @@ declare const ThemeContext: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
|
|
72
71
|
};
|
|
73
72
|
}>> & Readonly<{}>, {
|
|
74
73
|
defaultTheme: ThemeValue;
|
|
75
|
-
}, SlotsType<ThemeContextSlots>, {}, {}, string,
|
|
74
|
+
}, SlotsType<ThemeContextSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
75
|
//#endregion
|
|
77
76
|
export { ThemeContextEmits, ThemeContextProps, ThemeContextSlots, ThemeContext as default, themeContextProps };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _$_vueuse_core0 from "@vueuse/core";
|
|
2
|
-
|
|
3
1
|
//#region src/theme-context/dark.d.ts
|
|
4
|
-
declare const isDark:
|
|
2
|
+
declare const isDark: import("@vueuse/core").UseDarkReturn;
|
|
5
3
|
declare const toggleDark: (value?: boolean) => boolean;
|
|
6
4
|
//#endregion
|
|
7
5
|
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.7",
|
|
5
5
|
"description": "Gx Design Context",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "gx12358",
|
|
@@ -37,17 +37,20 @@
|
|
|
37
37
|
"package.json"
|
|
38
38
|
],
|
|
39
39
|
"peerDependencies": {
|
|
40
|
+
"@gx-design-vue/pro-utils": "^0.2.0-alpha.9",
|
|
40
41
|
"vue": ">=3.2.0"
|
|
41
42
|
},
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@vueuse/core": "^14.3.0"
|
|
44
|
-
"@gx-design-vue/pro-utils": "^0.2.0-alpha.6"
|
|
44
|
+
"@vueuse/core": "^14.3.0"
|
|
45
45
|
},
|
|
46
46
|
"browserslist": [
|
|
47
47
|
"> 1%",
|
|
48
48
|
"not ie 11",
|
|
49
49
|
"not op_mini all"
|
|
50
50
|
],
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@gx-design-vue/pro-utils": "^0.2.0-alpha.9"
|
|
53
|
+
},
|
|
51
54
|
"scripts": {
|
|
52
55
|
"test": "vitest run",
|
|
53
56
|
"build": "run-s build:esm build:vite:parallel",
|