@tuya-sat/sdf-main-sdk 6.2.23 → 6.2.25
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/{364.9a4edcaf.chunk.js → 364.7f50b3a9.chunk.js} +1 -1
- package/dist/{364.9a4edcaf.chunk.js.map → 364.7f50b3a9.chunk.js.map} +1 -1
- package/dist/components/Layout/antd/components/SwitchTheme/index.d.ts +4 -2
- package/dist/components/MicroComponent/Header/index.d.ts +1 -0
- package/dist/en.json +1 -0
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +54 -4
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +2 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/theme/base.d.ts +6 -1
- package/dist/utils/theme/index.d.ts +6 -3
- package/dist/zh.json +1 -0
- package/package.json +1 -1
package/dist/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"main.css": "auto/main.css",
|
|
3
3
|
"main.js": "auto/main.bundle.js",
|
|
4
|
-
"364.
|
|
4
|
+
"364.7f50b3a9.chunk.js": "auto/364.7f50b3a9.chunk.js",
|
|
5
5
|
"static/img/login3.png": "auto/static/img/dd06d35d98047203e715.png",
|
|
6
6
|
"static/img/reLogin.png": "auto/static/img/294142da390c5af23324.png",
|
|
7
7
|
"static/img/login2.png": "auto/static/img/47a523d0027c7b5af83f.png",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"static/img/tuya.png": "auto/static/img/328d8b5c342b13933c5c.png",
|
|
24
24
|
"main.css.map": "auto/main.css.map",
|
|
25
25
|
"main.bundle.js.map": "auto/main.bundle.js.map",
|
|
26
|
-
"364.
|
|
26
|
+
"364.7f50b3a9.chunk.js.map": "auto/364.7f50b3a9.chunk.js.map"
|
|
27
27
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export declare const curMicroAppName: () => string;
|
|
|
60
60
|
export declare const curMicroAppCode: () => string;
|
|
61
61
|
export declare const isSysMicroApp: (app?: MicroApp) => boolean;
|
|
62
62
|
export declare const isMicroAppRequireProject: (app?: MicroApp) => boolean;
|
|
63
|
+
export declare const shouldHideMicroAppBreadcrumb: (app?: MicroApp) => boolean;
|
|
63
64
|
export declare const micApps: () => {
|
|
64
65
|
active_rule: string;
|
|
65
66
|
app_engine: "MICRO-FRONTEND" | "WEB" | "TUYA-MINI-PROGRAM";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { MenuType } from 'src/components/BLayout/components/Menu';
|
|
2
2
|
export declare const LIGHT = "light";
|
|
3
3
|
export declare const DARK = "dark";
|
|
4
|
+
export declare const SYSTEM = "system";
|
|
4
5
|
export type Theme = typeof LIGHT | typeof DARK;
|
|
6
|
+
export type ThemeMode = Theme | typeof SYSTEM;
|
|
5
7
|
export declare const getDefaultPrimaryColor: (themeMode?: Theme) => "#165dff" | "#306FFF";
|
|
6
8
|
export interface ColorConfig {
|
|
7
9
|
menuBg?: string;
|
|
@@ -38,5 +40,8 @@ declare function getCssVarible(): {
|
|
|
38
40
|
primaryColorInAll: string | UserConfigItem;
|
|
39
41
|
};
|
|
40
42
|
declare function getDynamicMenuTheme(): UserColorConfigWithThemeAndMenu;
|
|
43
|
+
declare function getSystemTheme(): Theme;
|
|
44
|
+
declare function isSystemThemeSupported(): boolean;
|
|
45
|
+
declare function getThemeMode(): ThemeMode;
|
|
41
46
|
declare function getRenderTheme(): Theme;
|
|
42
|
-
export { isSupportCssVariable, isSupportLightDarkSwitch, getSupportedTheme, isSpecificTheme, getCssVarible, getDynamicMenuTheme, getRenderTheme, };
|
|
47
|
+
export { isSupportCssVariable, isSupportLightDarkSwitch, getSupportedTheme, isSpecificTheme, getCssVarible, getDynamicMenuTheme, getRenderTheme, getThemeMode, getSystemTheme, isSystemThemeSupported, };
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ConfigProviderProps } from 'antd';
|
|
2
|
-
import { Theme } from './base';
|
|
2
|
+
import { Theme, ThemeMode } from './base';
|
|
3
3
|
export declare function getRenderCssVariable(theme?: Theme): {
|
|
4
4
|
primaryColor: string;
|
|
5
5
|
};
|
|
6
6
|
declare function changeTheme(theme: Theme): void;
|
|
7
|
+
declare function changeThemeMode(mode: ThemeMode): void;
|
|
7
8
|
declare function useTheme(): {
|
|
8
|
-
theme:
|
|
9
|
+
theme: Theme;
|
|
10
|
+
themeMode: ThemeMode;
|
|
9
11
|
isDark: boolean;
|
|
10
12
|
isLight: boolean;
|
|
13
|
+
setThemeMode(mode: ThemeMode): void;
|
|
11
14
|
changeTheme(): void;
|
|
12
15
|
};
|
|
13
16
|
declare function initialTheme(themeConfigs: {
|
|
14
17
|
dark: ConfigProviderProps;
|
|
15
18
|
light: ConfigProviderProps;
|
|
16
19
|
} | null, cb?: () => void): void;
|
|
17
|
-
export { changeTheme, useTheme, initialTheme };
|
|
20
|
+
export { changeTheme, changeThemeMode, useTheme, initialTheme };
|
package/dist/zh.json
CHANGED
|
@@ -223,6 +223,7 @@
|
|
|
223
223
|
"httpCodeText.callBack": "网络异常",
|
|
224
224
|
"navItem.theme.light": "亮色模式",
|
|
225
225
|
"navItem.theme.dark": "暗色模式",
|
|
226
|
+
"navItem.theme.system": "跟随系统",
|
|
226
227
|
"navItem.app.download": "下载 APP",
|
|
227
228
|
"appHint1": "扫描下方二维码,下载涂鸦智慧空间 App",
|
|
228
229
|
"appHint1.us": "扫描下方二维码,下载Tuya Spatial App",
|