@lark-apaas/client-toolkit 1.1.8 → 1.1.9-alpha.log.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.
- package/lib/components/AppContainer/IframeBridge.d.ts +0 -1
- package/lib/components/AppContainer/IframeBridge.js +0 -1
- package/lib/components/AppContainer/index.js +4 -7
- package/lib/components/AppContainer/sonner.js +1 -6
- package/lib/components/ErrorRender/index.js +16 -68
- package/lib/components/NotFoundRender/index.js +19 -40
- package/lib/components/theme/index.d.ts +1 -2
- package/lib/components/theme/index.js +1 -3
- package/lib/components/theme/util.d.ts +6 -5
- package/lib/components/theme/util.js +1 -81
- package/lib/hooks/index.d.ts +0 -1
- package/lib/hooks/index.js +0 -1
- package/lib/logger/intercept-global-error.d.ts +1 -1
- package/lib/logger/intercept-global-error.js +27 -2
- package/lib/logger/log-types.d.ts +10 -4
- package/lib/logger/log-types.js +12 -12
- package/lib/logger/logger.js +7 -2
- package/lib/logger/selected-logs.js +12 -5
- package/lib/utils/axiosConfig.js +12 -12
- package/package.json +1 -5
- package/lib/apis/hooks/useTheme.d.ts +0 -1
- package/lib/apis/hooks/useTheme.js +0 -1
- package/lib/components/AppContainer/LogInterceptor.d.ts +0 -1
- package/lib/components/AppContainer/LogInterceptor.js +0 -66
- package/lib/components/theme/ThemeProvider.d.ts +0 -20
- package/lib/components/theme/ThemeProvider.js +0 -75
- package/lib/components/theme/miaoDarkTheme.d.ts +0 -2
- package/lib/components/theme/miaoDarkTheme.js +0 -310
- package/lib/components/theme/miaoLightTheme.d.ts +0 -2
- package/lib/components/theme/miaoLightTheme.js +0 -296
- package/lib/hooks/useTheme.d.ts +0 -4
- package/lib/hooks/useTheme.js +0 -8
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { batchLogInfo, destroyBatchLogger, initBatchLogger } from "../../logger/batch-logger.js";
|
|
2
|
-
import { postMessage } from "../../utils/postMessage.js";
|
|
3
|
-
const PROXY_CONSOLE_METHOD = [
|
|
4
|
-
'log',
|
|
5
|
-
'info',
|
|
6
|
-
'warn',
|
|
7
|
-
'error'
|
|
8
|
-
];
|
|
9
|
-
const LOG_FILTER_PREFIX = [
|
|
10
|
-
'[Dataloom]',
|
|
11
|
-
'[MiaoDa]'
|
|
12
|
-
];
|
|
13
|
-
function formatArg(arg) {
|
|
14
|
-
if (null === arg) return 'null';
|
|
15
|
-
if (void 0 === arg) return 'undefined';
|
|
16
|
-
if ('object' == typeof arg) {
|
|
17
|
-
if (arg instanceof Error) return `${arg.name}: ${arg.message}\n${arg.stack}`;
|
|
18
|
-
try {
|
|
19
|
-
return JSON.stringify(arg, this.getCircularReplacer(), 2);
|
|
20
|
-
} catch (e) {
|
|
21
|
-
return Object.prototype.toString.call(arg);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
if ('function' == typeof arg) return arg.toString();
|
|
25
|
-
return String(arg);
|
|
26
|
-
}
|
|
27
|
-
const initHandleError = ()=>{
|
|
28
|
-
window.onerror = (message, source, lineno, colno, error)=>{
|
|
29
|
-
const errorList = [];
|
|
30
|
-
if (error) errorList.push(error);
|
|
31
|
-
else {
|
|
32
|
-
if ('string' == typeof message && [
|
|
33
|
-
'Script error.'
|
|
34
|
-
].includes(message)) return;
|
|
35
|
-
if (message) errorList.push(message);
|
|
36
|
-
else if (source) errorList.push(source);
|
|
37
|
-
}
|
|
38
|
-
console.error('[MiaoDa]', ...errorList);
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const initLogInterceptor = ()=>{
|
|
42
|
-
initBatchLogger(console);
|
|
43
|
-
window.addEventListener('beforeunload', ()=>{
|
|
44
|
-
destroyBatchLogger();
|
|
45
|
-
});
|
|
46
|
-
PROXY_CONSOLE_METHOD.forEach((method)=>{
|
|
47
|
-
const originalMethod = window.console[method];
|
|
48
|
-
window.console[method] = (...args)=>{
|
|
49
|
-
originalMethod(...args);
|
|
50
|
-
const log = args[0];
|
|
51
|
-
if ('string' == typeof log && LOG_FILTER_PREFIX.some((prefix)=>log.startsWith(prefix))) {
|
|
52
|
-
batchLogInfo(method, args.map(formatArg).join(' '));
|
|
53
|
-
postMessage({
|
|
54
|
-
type: 'Console',
|
|
55
|
-
method,
|
|
56
|
-
data: args
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
function init() {
|
|
63
|
-
initHandleError();
|
|
64
|
-
initLogInterceptor();
|
|
65
|
-
}
|
|
66
|
-
'production' !== process.env.NODE_ENV && init();
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
import type { ITheme } from '../../types';
|
|
4
|
-
import { IThemeTokenMeta } from './util';
|
|
5
|
-
export interface IBaseThemeProviderProps {
|
|
6
|
-
defaultTheme?: ITheme;
|
|
7
|
-
themeMeta?: Partial<IThemeTokenMeta>;
|
|
8
|
-
}
|
|
9
|
-
interface ThemeProviderProps extends IBaseThemeProviderProps {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
/** 是否启用系统主题自动切换 */
|
|
12
|
-
enableSystemTheme?: boolean;
|
|
13
|
-
}
|
|
14
|
-
type ThemeProviderState = {
|
|
15
|
-
theme: ITheme;
|
|
16
|
-
setTheme: (theme: ITheme) => void;
|
|
17
|
-
};
|
|
18
|
-
export declare const ThemeProviderContext: React.Context<ThemeProviderState>;
|
|
19
|
-
export declare function ThemeProvider({ children, defaultTheme, themeMeta, enableSystemTheme, ...props }: ThemeProviderProps): React.JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { createContext, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { ConfigProvider } from "antd";
|
|
4
|
-
import { generateDarkTheme, generateLightTheme } from "./util.js";
|
|
5
|
-
import { findValueByPixel, themeMetaOptions } from "./constants.js";
|
|
6
|
-
const initialState = {
|
|
7
|
-
theme: 'system',
|
|
8
|
-
setTheme: ()=>null
|
|
9
|
-
};
|
|
10
|
-
const ThemeProviderContext = /*#__PURE__*/ createContext(initialState);
|
|
11
|
-
const themeKey = 'miao-ui-theme';
|
|
12
|
-
function ThemeProvider({ children, defaultTheme = 'light', themeMeta = {}, enableSystemTheme = false, ...props }) {
|
|
13
|
-
const [theme, setTheme] = useState(()=>localStorage.getItem(themeKey) || defaultTheme);
|
|
14
|
-
useEffect(()=>{
|
|
15
|
-
const root = window.document.documentElement;
|
|
16
|
-
root.classList.remove('light', 'dark');
|
|
17
|
-
root.classList.add(theme);
|
|
18
|
-
}, [
|
|
19
|
-
theme,
|
|
20
|
-
enableSystemTheme
|
|
21
|
-
]);
|
|
22
|
-
useEffect(()=>{
|
|
23
|
-
const root = window.document.documentElement;
|
|
24
|
-
if (void 0 !== themeMeta.spacing) {
|
|
25
|
-
const { rem } = findValueByPixel(themeMetaOptions.themeSpaces, themeMeta.spacing) || {
|
|
26
|
-
rem: '0.25'
|
|
27
|
-
};
|
|
28
|
-
root.style.setProperty('--spacing', `${rem}rem`);
|
|
29
|
-
}
|
|
30
|
-
if (void 0 !== themeMeta.borderRadius) {
|
|
31
|
-
const { rem } = findValueByPixel(themeMetaOptions.themeRadius, themeMeta.borderRadius) || {
|
|
32
|
-
rem: '0.625'
|
|
33
|
-
};
|
|
34
|
-
root.style.setProperty('--radius', `${rem}rem`);
|
|
35
|
-
}
|
|
36
|
-
}, [
|
|
37
|
-
themeMeta
|
|
38
|
-
]);
|
|
39
|
-
const value = {
|
|
40
|
-
theme,
|
|
41
|
-
setTheme: (theme)=>{
|
|
42
|
-
localStorage.setItem(themeKey, theme);
|
|
43
|
-
setTheme(theme);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
const antdTheme = useMemo(()=>{
|
|
47
|
-
const res = findValueByPixel(themeMetaOptions.themeSpaces, themeMeta.spacing) || {
|
|
48
|
-
pixel: '36',
|
|
49
|
-
rem: '0.25',
|
|
50
|
-
size: {
|
|
51
|
-
sizeUnit: '4',
|
|
52
|
-
sizeStep: '4'
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
const transformThemeMeta = {
|
|
56
|
-
colorPrimary: themeMeta.colorPrimary,
|
|
57
|
-
borderRadius: Number(themeMeta.borderRadius),
|
|
58
|
-
sizeUnit: Number(res.size.sizeUnit),
|
|
59
|
-
sizeStep: Number(res.size.sizeStep)
|
|
60
|
-
};
|
|
61
|
-
return 'dark' === theme ? generateDarkTheme(transformThemeMeta) : generateLightTheme(transformThemeMeta);
|
|
62
|
-
}, [
|
|
63
|
-
theme,
|
|
64
|
-
themeMeta
|
|
65
|
-
]);
|
|
66
|
-
return /*#__PURE__*/ jsx(ThemeProviderContext.Provider, {
|
|
67
|
-
...props,
|
|
68
|
-
value: value,
|
|
69
|
-
children: /*#__PURE__*/ jsx(ConfigProvider, {
|
|
70
|
-
theme: antdTheme,
|
|
71
|
-
children: children
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
export { ThemeProvider, ThemeProviderContext };
|
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
const defaultPrimaryPresets = {
|
|
2
|
-
colorPrimary: '#336df4',
|
|
3
|
-
colorPrimaryBg: '#152340',
|
|
4
|
-
colorPrimaryBgHover: '#173166',
|
|
5
|
-
colorPrimaryBorder: '#336df4',
|
|
6
|
-
colorPrimaryBorderHover: '#888888',
|
|
7
|
-
colorPrimaryHover: '#4c88ff',
|
|
8
|
-
colorPrimaryActive: '#75a4ff',
|
|
9
|
-
colorPrimaryTextHover: '#3370eb',
|
|
10
|
-
colorPrimaryText: '#4c88ff',
|
|
11
|
-
colorPrimaryTextActive: '#75a4ff',
|
|
12
|
-
colorPrimaryFill: 'rgba(255, 255, 255, 0.22)',
|
|
13
|
-
colorPrimaryFillSecondary: 'rgba(255, 255, 255, 0.16)',
|
|
14
|
-
colorPrimaryFillTertiary: 'rgba(255, 255, 255, 0.08)',
|
|
15
|
-
colorPrimaryFillQuaternary: 'rgba(255, 255, 255, 0.02)'
|
|
16
|
-
};
|
|
17
|
-
const darkToken = {
|
|
18
|
-
blue: '#8ae8ff',
|
|
19
|
-
purple: '#bd54c6',
|
|
20
|
-
cyan: '#95f3d9',
|
|
21
|
-
green: '#62c473',
|
|
22
|
-
magenta: '#e34ba9',
|
|
23
|
-
pink: '#EB2F96',
|
|
24
|
-
red: '#f4416c',
|
|
25
|
-
orange: '#ff9927',
|
|
26
|
-
yellow: '#ffef5c',
|
|
27
|
-
volcano: '#ec5e41',
|
|
28
|
-
geekblue: '#0072f5',
|
|
29
|
-
gold: '#ffb224',
|
|
30
|
-
lime: '#c4f042',
|
|
31
|
-
colorPrimary: '#336df4',
|
|
32
|
-
colorSuccess: '#51ba43',
|
|
33
|
-
colorWarning: '#f3871b',
|
|
34
|
-
colorError: '#f05b56',
|
|
35
|
-
colorInfo: '#336df4',
|
|
36
|
-
colorLink: '#4c88ff',
|
|
37
|
-
colorTextBase: '#ebebeb',
|
|
38
|
-
colorBgBase: '#000',
|
|
39
|
-
fontFamily: '"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
|
|
40
|
-
fontFamilyCode: 'Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace,"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif,"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',
|
|
41
|
-
fontSize: 14,
|
|
42
|
-
lineWidth: 1,
|
|
43
|
-
lineType: 'solid',
|
|
44
|
-
motionUnit: 0.1,
|
|
45
|
-
motionBase: 0,
|
|
46
|
-
motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
|
|
47
|
-
motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
|
|
48
|
-
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
|
49
|
-
motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
50
|
-
motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
|
|
51
|
-
motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
|
|
52
|
-
motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
|
|
53
|
-
motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
|
54
|
-
borderRadius: 6,
|
|
55
|
-
sizeUnit: 4,
|
|
56
|
-
sizeStep: 4,
|
|
57
|
-
sizePopupArrow: 16,
|
|
58
|
-
controlHeight: 36,
|
|
59
|
-
zIndexBase: 0,
|
|
60
|
-
zIndexPopupBase: 1000,
|
|
61
|
-
opacityImage: 1,
|
|
62
|
-
wireframe: false,
|
|
63
|
-
motion: true,
|
|
64
|
-
borderRadiusLG: 8,
|
|
65
|
-
borderRadiusSM: 4,
|
|
66
|
-
colorText: '#ebebeb',
|
|
67
|
-
colorTextSecondary: '#a6a6a6',
|
|
68
|
-
colorTextTertiary: '#757575',
|
|
69
|
-
colorTextQuaternary: '#5f5f5f',
|
|
70
|
-
colorFill: 'rgba(255, 255, 255, 0.16)',
|
|
71
|
-
colorFillSecondary: 'rgba(255, 255, 255, 0.10)',
|
|
72
|
-
colorFillTertiary: 'rgba(255, 255, 255, 0.06)',
|
|
73
|
-
colorFillQuaternary: 'rgba(255, 255, 255, 0.02)',
|
|
74
|
-
colorBgSolid: 'rgba(255,255,255,0.95)',
|
|
75
|
-
colorBgSolidHover: 'rgb(255,255,255)',
|
|
76
|
-
colorBgSolidActive: 'rgba(255,255,255,0.9)',
|
|
77
|
-
colorBgLayout: '#000000',
|
|
78
|
-
colorBgContainer: '#0d0d0d',
|
|
79
|
-
colorBgElevated: '#1a1a1a',
|
|
80
|
-
colorBgSpotlight: '#2d2d2d',
|
|
81
|
-
colorBgBlur: 'rgba(255,255,255,0.04)',
|
|
82
|
-
colorBorder: '#505050',
|
|
83
|
-
colorBorderSecondary: '#ebebeb26',
|
|
84
|
-
colorPrimaryBg: '#152340',
|
|
85
|
-
colorPrimaryBgHover: '#173166',
|
|
86
|
-
colorPrimaryBorder: '#336df4',
|
|
87
|
-
colorPrimaryBorderHover: '#888888',
|
|
88
|
-
colorPrimaryHover: '#4c88ff',
|
|
89
|
-
colorPrimaryActive: '#75a4ff',
|
|
90
|
-
colorPrimaryTextHover: '#3370eb',
|
|
91
|
-
colorPrimaryText: '#4c88ff',
|
|
92
|
-
colorPrimaryTextActive: '#75a4ff',
|
|
93
|
-
colorSuccessBg: '#0e2b0a',
|
|
94
|
-
colorSuccessBgHover: '#173b12',
|
|
95
|
-
colorSuccessBorder: '#2f7526',
|
|
96
|
-
colorSuccessBorderHover: '#35872a',
|
|
97
|
-
colorSuccessHover: '#419e34',
|
|
98
|
-
colorSuccessActive: '#69cc5c',
|
|
99
|
-
colorSuccessTextHover: '#419e34',
|
|
100
|
-
colorSuccessText: '#51ba43',
|
|
101
|
-
colorSuccessTextActive: '#69cc5c',
|
|
102
|
-
colorErrorBg: '#3d1a19',
|
|
103
|
-
colorErrorBgHover: '#591f1d',
|
|
104
|
-
colorErrorBgFilledHover: '#441e1f',
|
|
105
|
-
colorErrorBgActive: '#5b2526',
|
|
106
|
-
colorErrorBorder: '#b33a37',
|
|
107
|
-
colorErrorBorderHover: '#d14642',
|
|
108
|
-
colorErrorHover: '#f05b56',
|
|
109
|
-
colorErrorActive: '#f89e9b',
|
|
110
|
-
colorErrorTextHover: '#d14642',
|
|
111
|
-
colorErrorText: '#f05b56',
|
|
112
|
-
colorErrorTextActive: '#f89e9b',
|
|
113
|
-
colorWarningBg: '#33210b',
|
|
114
|
-
colorWarningBgHover: '#4a2b10',
|
|
115
|
-
colorWarningBorder: '#a15317',
|
|
116
|
-
colorWarningBorderHover: '#b85e1a',
|
|
117
|
-
colorWarningHover: '#db7018',
|
|
118
|
-
colorWarningActive: '#f89e44',
|
|
119
|
-
colorWarningTextHover: '#db7018',
|
|
120
|
-
colorWarningText: '#f3871b',
|
|
121
|
-
colorWarningTextActive: '#f89e44',
|
|
122
|
-
colorInfoBg: '#002126',
|
|
123
|
-
colorInfoBgHover: '#00363f',
|
|
124
|
-
colorInfoBorder: '#006675',
|
|
125
|
-
colorInfoBorderHover: '#008093',
|
|
126
|
-
colorInfoHover: '#b8f0ff',
|
|
127
|
-
colorInfoActive: '#47b3ca',
|
|
128
|
-
colorInfoTextHover: '#b8f0ff',
|
|
129
|
-
colorInfoText: '#8ae8ff',
|
|
130
|
-
colorInfoTextActive: '#47b3ca',
|
|
131
|
-
colorLinkHover: '#3370eb',
|
|
132
|
-
colorLinkActive: '#75a4ff',
|
|
133
|
-
colorBgMask: 'rgba(0, 0, 0, 0.44)',
|
|
134
|
-
colorWhite: '#fff',
|
|
135
|
-
fontSizeSM: 12,
|
|
136
|
-
fontSizeLG: 16,
|
|
137
|
-
fontSizeXL: 18,
|
|
138
|
-
fontSizeHeading1: 30,
|
|
139
|
-
fontSizeHeading2: 24,
|
|
140
|
-
fontSizeHeading3: 20,
|
|
141
|
-
fontSizeHeading4: 18,
|
|
142
|
-
fontSizeHeading5: 16,
|
|
143
|
-
lineHeight: 1.5714285714285714,
|
|
144
|
-
lineHeightLG: 1.5,
|
|
145
|
-
lineHeightSM: 1.6666666666666667,
|
|
146
|
-
fontHeight: 22,
|
|
147
|
-
fontHeightLG: 24,
|
|
148
|
-
fontHeightSM: 20,
|
|
149
|
-
lineHeightHeading1: 1.2105263157894737,
|
|
150
|
-
lineHeightHeading2: 1.2666666666666666,
|
|
151
|
-
lineHeightHeading3: 1.3333333333333333,
|
|
152
|
-
lineHeightHeading4: 1.4,
|
|
153
|
-
lineHeightHeading5: 1.5,
|
|
154
|
-
sizeXXL: 48,
|
|
155
|
-
sizeXL: 32,
|
|
156
|
-
sizeLG: 24,
|
|
157
|
-
sizeMD: 20,
|
|
158
|
-
sizeMS: 16,
|
|
159
|
-
size: 16,
|
|
160
|
-
sizeSM: 12,
|
|
161
|
-
sizeXS: 8,
|
|
162
|
-
sizeXXS: 4,
|
|
163
|
-
controlHeightSM: 27,
|
|
164
|
-
controlHeightXS: 18,
|
|
165
|
-
controlHeightLG: 45,
|
|
166
|
-
motionDurationFast: '0.1s',
|
|
167
|
-
motionDurationMid: '0.2s',
|
|
168
|
-
motionDurationSlow: '0.3s',
|
|
169
|
-
lineWidthBold: 2,
|
|
170
|
-
borderRadiusOuter: 4,
|
|
171
|
-
colorPrimaryFill: 'rgba(255, 255, 255, 0.22)',
|
|
172
|
-
colorPrimaryFillSecondary: 'rgba(255, 255, 255, 0.16)',
|
|
173
|
-
colorPrimaryFillTertiary: 'rgba(255, 255, 255, 0.08)',
|
|
174
|
-
colorPrimaryFillQuaternary: 'rgba(255, 255, 255, 0.02)',
|
|
175
|
-
colorSuccessFill: 'rgba(177, 255, 0, 0.31)',
|
|
176
|
-
colorSuccessFillSecondary: 'rgba(168, 250, 0, 0.22)',
|
|
177
|
-
colorSuccessFillTertiary: 'rgba(154, 254, 0, 0.13)',
|
|
178
|
-
colorSuccessFillQuaternary: 'rgba(100, 200, 0, 0.02)',
|
|
179
|
-
colorWarningFill: 'rgba(252, 174, 0, 0.42)',
|
|
180
|
-
colorWarningFillSecondary: 'rgba(248, 166, 0, 0.29)',
|
|
181
|
-
colorWarningFillTertiary: 'rgba(247, 159, 0, 0.17)',
|
|
182
|
-
colorWarningFillQuaternary: 'rgba(233, 100, 0, 0.03)',
|
|
183
|
-
colorErrorFill: 'rgba(255, 0, 106, 0.47)',
|
|
184
|
-
colorErrorFillSecondary: 'rgba(253, 0, 103, 0.34)',
|
|
185
|
-
colorErrorFillTertiary: 'rgba(255, 0, 95, 0.22)',
|
|
186
|
-
colorErrorFillQuaternary: 'rgba(250, 0, 50, 0.06)',
|
|
187
|
-
colorInfoFill: 'rgba(0, 223, 254, 0.35)',
|
|
188
|
-
colorInfoFillSecondary: 'rgba(0, 216, 252, 0.25)',
|
|
189
|
-
colorInfoFillTertiary: 'rgba(0, 220, 253, 0.15)',
|
|
190
|
-
colorInfoFillQuaternary: 'rgba(0, 167, 200, 0.03)',
|
|
191
|
-
boxShadow: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
192
|
-
boxShadowSecondary: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
193
|
-
boxShadowTertiary: '\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ',
|
|
194
|
-
colorTextLightSolid: '#fff',
|
|
195
|
-
colorFillContent: 'rgba(255, 255, 255, 0.10)',
|
|
196
|
-
colorFillContentHover: 'rgba(255, 255, 255, 0.16)',
|
|
197
|
-
colorFillAlter: 'rgba(255, 255, 255, 0.02)',
|
|
198
|
-
colorBgContainerDisabled: 'rgba(255, 255, 255, 0.06)',
|
|
199
|
-
colorBorderBg: '#0d0d0d',
|
|
200
|
-
colorSplit: 'rgba(230,230,230,0.06)',
|
|
201
|
-
colorTextPlaceholder: '#555555',
|
|
202
|
-
colorTextDisabled: '#555555',
|
|
203
|
-
colorTextHeading: '#ffffff',
|
|
204
|
-
colorTextLabel: '#aaaaaa',
|
|
205
|
-
colorTextDescription: '#6f6f6f',
|
|
206
|
-
colorHighlight: '#f4416c',
|
|
207
|
-
colorBgTextHover: 'rgba(255, 255, 255, 0.10)',
|
|
208
|
-
colorBgTextActive: 'rgba(255, 255, 255, 0.16)',
|
|
209
|
-
colorIcon: '#6f6f6f',
|
|
210
|
-
colorIconHover: '#ffffff',
|
|
211
|
-
colorErrorOutline: 'rgba(57,0,21,0.97)',
|
|
212
|
-
colorWarningOutline: 'rgba(43,27,0,0.97)',
|
|
213
|
-
fontSizeIcon: 12,
|
|
214
|
-
lineWidthFocus: 3,
|
|
215
|
-
controlOutlineWidth: 2,
|
|
216
|
-
controlInteractiveSize: 18,
|
|
217
|
-
controlItemBgHover: 'rgba(255, 255, 255, 0.06)',
|
|
218
|
-
controlItemBgActive: '#111111',
|
|
219
|
-
controlItemBgActiveHover: '#333333',
|
|
220
|
-
controlItemBgActiveDisabled: 'rgba(255, 255, 255, 0.16)',
|
|
221
|
-
controlTmpOutline: 'rgba(255, 255, 255, 0.02)',
|
|
222
|
-
controlOutline: 'rgba(213,213,213,0.02)',
|
|
223
|
-
fontWeightStrong: 600,
|
|
224
|
-
opacityLoading: 0.65,
|
|
225
|
-
linkDecoration: 'none',
|
|
226
|
-
linkHoverDecoration: 'none',
|
|
227
|
-
linkFocusDecoration: 'none',
|
|
228
|
-
controlPaddingHorizontal: 12,
|
|
229
|
-
controlPaddingHorizontalSM: 8,
|
|
230
|
-
paddingXXS: 4,
|
|
231
|
-
paddingXS: 8,
|
|
232
|
-
paddingSM: 12,
|
|
233
|
-
padding: 16,
|
|
234
|
-
paddingMD: 20,
|
|
235
|
-
paddingLG: 24,
|
|
236
|
-
paddingXL: 32,
|
|
237
|
-
paddingContentHorizontalLG: 24,
|
|
238
|
-
paddingContentVerticalLG: 16,
|
|
239
|
-
paddingContentHorizontal: 16,
|
|
240
|
-
paddingContentVertical: 12,
|
|
241
|
-
paddingContentHorizontalSM: 16,
|
|
242
|
-
paddingContentVerticalSM: 8,
|
|
243
|
-
marginXXS: 4,
|
|
244
|
-
marginXS: 8,
|
|
245
|
-
marginSM: 12,
|
|
246
|
-
margin: 16,
|
|
247
|
-
marginMD: 20,
|
|
248
|
-
marginLG: 24,
|
|
249
|
-
marginXL: 32,
|
|
250
|
-
marginXXL: 48,
|
|
251
|
-
screenXS: 480,
|
|
252
|
-
screenXSMin: 480,
|
|
253
|
-
screenXSMax: 575,
|
|
254
|
-
screenSM: 576,
|
|
255
|
-
screenSMMin: 576,
|
|
256
|
-
screenSMMax: 767,
|
|
257
|
-
screenMD: 768,
|
|
258
|
-
screenMDMin: 768,
|
|
259
|
-
screenMDMax: 991,
|
|
260
|
-
screenLG: 992,
|
|
261
|
-
screenLGMin: 992,
|
|
262
|
-
screenLGMax: 1199,
|
|
263
|
-
screenXL: 1200,
|
|
264
|
-
screenXLMin: 1200,
|
|
265
|
-
screenXLMax: 1599,
|
|
266
|
-
screenXXL: 1600,
|
|
267
|
-
screenXXLMin: 1600,
|
|
268
|
-
boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',
|
|
269
|
-
boxShadowCard: '\n 0 1px 2px -2px rgba(0,0,0,0.16),\n 0 3px 6px 0 rgba(0,0,0,0.12),\n 0 5px 12px 4px rgba(0,0,0,0.09)\n ',
|
|
270
|
-
boxShadowDrawerRight: '\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
271
|
-
boxShadowDrawerLeft: '\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
272
|
-
boxShadowDrawerUp: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
273
|
-
boxShadowDrawerDown: '\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
|
|
274
|
-
boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
|
|
275
|
-
boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
|
|
276
|
-
boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
|
|
277
|
-
boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
|
|
278
|
-
Button: {
|
|
279
|
-
contentFontSizeSM: 12
|
|
280
|
-
},
|
|
281
|
-
DatePicker: {},
|
|
282
|
-
Input: {},
|
|
283
|
-
InputNumber: {},
|
|
284
|
-
Mentions: {},
|
|
285
|
-
Select: {},
|
|
286
|
-
themeMode: 'dark',
|
|
287
|
-
appearance: 'dark',
|
|
288
|
-
isDarkMode: true,
|
|
289
|
-
browserPrefers: 'light',
|
|
290
|
-
prefixCls: 'antd',
|
|
291
|
-
iconPrefixCls: 'anticon'
|
|
292
|
-
};
|
|
293
|
-
const defaultDarkTheme = {
|
|
294
|
-
cssVar: true,
|
|
295
|
-
token: {
|
|
296
|
-
...darkToken,
|
|
297
|
-
...defaultPrimaryPresets
|
|
298
|
-
},
|
|
299
|
-
components: {
|
|
300
|
-
Tag: {
|
|
301
|
-
lineType: 'none'
|
|
302
|
-
},
|
|
303
|
-
Button: {
|
|
304
|
-
dangerShadow: '0',
|
|
305
|
-
defaultShadow: '0',
|
|
306
|
-
primaryShadow: '0'
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
export { defaultDarkTheme };
|