@lark-apaas/client-toolkit 1.1.8 → 1.1.9-alpha.log.1
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 +15 -67
- package/lib/components/NotFoundRender/index.js +18 -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,296 +0,0 @@
|
|
|
1
|
-
const defaultPrimaryPresets = {
|
|
2
|
-
colorPrimary: '#1456f0',
|
|
3
|
-
colorPrimaryBg: '#f0f4ff',
|
|
4
|
-
colorPrimaryBgHover: '#e0e9ff',
|
|
5
|
-
colorPrimaryBorder: '#336df4',
|
|
6
|
-
colorPrimaryBorderHover: '#5083fb',
|
|
7
|
-
colorPrimaryHover: '#336df4',
|
|
8
|
-
colorPrimaryActive: '#0442d2',
|
|
9
|
-
colorPrimaryTextHover: '#336df4',
|
|
10
|
-
colorPrimaryText: '#1456f0',
|
|
11
|
-
colorPrimaryTextActive: '#0442d2',
|
|
12
|
-
colorPrimaryFill: 'rgba(0, 0, 0, 0.36)',
|
|
13
|
-
colorPrimaryFillSecondary: 'rgba(0, 0, 0, 0.22)',
|
|
14
|
-
colorPrimaryFillTertiary: 'rgba(0, 0, 0, 0.16)',
|
|
15
|
-
colorPrimaryFillQuaternary: 'rgba(0, 0, 0, 0.08)'
|
|
16
|
-
};
|
|
17
|
-
const lightToken = {
|
|
18
|
-
blue: '#7AA2FF',
|
|
19
|
-
purple: '#B791FA',
|
|
20
|
-
cyan: '#2DBEAB',
|
|
21
|
-
green: '#32A645',
|
|
22
|
-
magenta: '#EB78B8',
|
|
23
|
-
pink: '#EB2F96',
|
|
24
|
-
red: '#FF7570',
|
|
25
|
-
orange: '#FF811A',
|
|
26
|
-
yellow: '#FFC60A',
|
|
27
|
-
volcano: '#FFE928',
|
|
28
|
-
geekblue: '#25B0E7',
|
|
29
|
-
gold: '#DE81DE',
|
|
30
|
-
lime: '#91AD00',
|
|
31
|
-
colorSuccess: '#32a645',
|
|
32
|
-
colorError: '#f54a45',
|
|
33
|
-
colorInfo: '#1456f0',
|
|
34
|
-
colorLink: '#1456f0',
|
|
35
|
-
colorTextBase: '#1f2329',
|
|
36
|
-
colorBgBase: '#fff',
|
|
37
|
-
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"',
|
|
38
|
-
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"',
|
|
39
|
-
lineWidth: 1,
|
|
40
|
-
lineType: 'solid',
|
|
41
|
-
motionUnit: 0.1,
|
|
42
|
-
motionBase: 0,
|
|
43
|
-
motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',
|
|
44
|
-
motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
|
|
45
|
-
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
|
46
|
-
motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
47
|
-
motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
|
|
48
|
-
motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',
|
|
49
|
-
motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',
|
|
50
|
-
motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
|
|
51
|
-
borderRadius: 6,
|
|
52
|
-
sizePopupArrow: 16,
|
|
53
|
-
controlHeight: 36,
|
|
54
|
-
zIndexBase: 0,
|
|
55
|
-
zIndexPopupBase: 1000,
|
|
56
|
-
opacityImage: 1,
|
|
57
|
-
wireframe: false,
|
|
58
|
-
motion: true,
|
|
59
|
-
borderRadiusLG: 8,
|
|
60
|
-
borderRadiusSM: 4,
|
|
61
|
-
colorText: '#1f2329',
|
|
62
|
-
colorTextSecondary: '#646a73',
|
|
63
|
-
colorTextTertiary: '#8f959e',
|
|
64
|
-
colorTextQuaternary: '#bbbfc4',
|
|
65
|
-
colorFill: '#1f23291f',
|
|
66
|
-
colorFillSecondary: '#1f23290f',
|
|
67
|
-
colorFillTertiary: '#1f232908',
|
|
68
|
-
colorFillQuaternary: '#1f232905',
|
|
69
|
-
colorBgSolid: 'rgb(0,0,0)',
|
|
70
|
-
colorBgSolidHover: 'rgba(0,0,0,0.75)',
|
|
71
|
-
colorBgSolidActive: 'rgba(0,0,0,0.95)',
|
|
72
|
-
colorBgSpotlight: '#eff0f1',
|
|
73
|
-
colorBgBlur: 'transparent',
|
|
74
|
-
colorBorder: '#d0d3d6',
|
|
75
|
-
colorBorderSecondary: '#dee0e3',
|
|
76
|
-
colorSuccessBg: '#e4fae1',
|
|
77
|
-
colorSuccessBgHover: '#d0f5ce',
|
|
78
|
-
colorSuccessBorder: '#32a645',
|
|
79
|
-
colorSuccessBorderHover: '#258832',
|
|
80
|
-
colorSuccessHover: '#71c179',
|
|
81
|
-
colorSuccessActive: '#258832',
|
|
82
|
-
colorSuccessTextHover: '#35bd4b',
|
|
83
|
-
colorSuccessText: '#32a645',
|
|
84
|
-
colorSuccessTextActive: '#258832',
|
|
85
|
-
colorErrorBg: '#fef0f0',
|
|
86
|
-
colorErrorBgHover: '#fee3e2',
|
|
87
|
-
colorErrorBgFilledHover: '#ffdfdc',
|
|
88
|
-
colorErrorBgActive: '#ffccc7',
|
|
89
|
-
colorErrorBorder: '#f54a45',
|
|
90
|
-
colorErrorBorderHover: '#e22e28',
|
|
91
|
-
colorErrorHover: '#f54a45',
|
|
92
|
-
colorErrorActive: '#a53716',
|
|
93
|
-
colorErrorTextHover: '#ff7570',
|
|
94
|
-
colorErrorText: '#f54a45',
|
|
95
|
-
colorErrorTextActive: '#de332c',
|
|
96
|
-
colorWarningBg: '#fff3e5',
|
|
97
|
-
colorWarningBgHover: '#fee7cd',
|
|
98
|
-
colorWarningBorder: '#ed6d0c',
|
|
99
|
-
colorWarningBorderHover: '#c25705',
|
|
100
|
-
colorWarningHover: '#ffc368',
|
|
101
|
-
colorWarningActive: '#c25705',
|
|
102
|
-
colorWarningTextHover: '#ff9d4c',
|
|
103
|
-
colorWarningText: '#ff811a',
|
|
104
|
-
colorWarningTextActive: '#ed6d0c',
|
|
105
|
-
colorInfoBg: '#fcfbff',
|
|
106
|
-
colorInfoBgHover: '#f1f5ff',
|
|
107
|
-
colorInfoBorder: '#cedfff',
|
|
108
|
-
colorInfoBorderHover: '#e2ebff',
|
|
109
|
-
colorInfoHover: '#4c90ff',
|
|
110
|
-
colorInfoActive: '#005ae0',
|
|
111
|
-
colorInfoTextHover: '#4c90ff',
|
|
112
|
-
colorInfoText: '#0072f5',
|
|
113
|
-
colorInfoTextActive: '#005ae0',
|
|
114
|
-
colorLinkHover: '#336df4',
|
|
115
|
-
colorLinkActive: '#0442d2',
|
|
116
|
-
colorBgMask: '#1f232966',
|
|
117
|
-
colorWhite: '#fff',
|
|
118
|
-
fontSizeSM: 12,
|
|
119
|
-
fontSizeLG: 16,
|
|
120
|
-
fontSizeXL: 18,
|
|
121
|
-
fontSizeHeading1: 30,
|
|
122
|
-
fontSizeHeading2: 24,
|
|
123
|
-
fontSizeHeading3: 20,
|
|
124
|
-
fontSizeHeading4: 18,
|
|
125
|
-
fontSizeHeading5: 16,
|
|
126
|
-
lineHeight: 1.5714285714285714,
|
|
127
|
-
lineHeightLG: 1.5,
|
|
128
|
-
lineHeightSM: 1.6666666666666667,
|
|
129
|
-
fontHeight: 22,
|
|
130
|
-
fontHeightLG: 24,
|
|
131
|
-
fontHeightSM: 20,
|
|
132
|
-
lineHeightHeading1: 1.2105263157894737,
|
|
133
|
-
lineHeightHeading2: 1.2666666666666666,
|
|
134
|
-
lineHeightHeading3: 1.3333333333333333,
|
|
135
|
-
lineHeightHeading4: 1.4,
|
|
136
|
-
lineHeightHeading5: 1.5,
|
|
137
|
-
sizeXXL: 48,
|
|
138
|
-
sizeXL: 32,
|
|
139
|
-
sizeLG: 24,
|
|
140
|
-
sizeMD: 20,
|
|
141
|
-
sizeMS: 16,
|
|
142
|
-
size: 16,
|
|
143
|
-
sizeSM: 12,
|
|
144
|
-
sizeXS: 8,
|
|
145
|
-
sizeXXS: 4,
|
|
146
|
-
controlHeightSM: 27,
|
|
147
|
-
controlHeightXS: 18,
|
|
148
|
-
controlHeightLG: 45,
|
|
149
|
-
motionDurationFast: '0.1s',
|
|
150
|
-
motionDurationMid: '0.2s',
|
|
151
|
-
motionDurationSlow: '0.3s',
|
|
152
|
-
lineWidthBold: 2,
|
|
153
|
-
borderRadiusOuter: 4,
|
|
154
|
-
colorSuccessFill: 'rgba(40, 174, 1, 0.26)',
|
|
155
|
-
colorSuccessFillSecondary: 'rgba(60, 190, 10, 0.14)',
|
|
156
|
-
colorSuccessFillTertiary: 'rgba(84, 205, 12, 0.10)',
|
|
157
|
-
colorSuccessFillQuaternary: 'rgba(117, 230, 5, 0.06)',
|
|
158
|
-
colorWarningFill: 'rgba(255, 134, 5, 0.20)',
|
|
159
|
-
colorWarningFillSecondary: 'rgba(255, 117, 5, 0.16)',
|
|
160
|
-
colorWarningFillTertiary: 'rgba(255,155,55,0.08)',
|
|
161
|
-
colorWarningFillQuaternary: 'rgba(255,145,55,0.04)',
|
|
162
|
-
colorErrorFill: 'rgba(255, 42, 3, 0.20)',
|
|
163
|
-
colorErrorFillSecondary: 'rgba(255, 35, 2, 0.12)',
|
|
164
|
-
colorErrorFillTertiary: 'rgba(255, 44, 11, 0.06)',
|
|
165
|
-
colorErrorFillQuaternary: 'rgba(255, 55, 30, 0.04)',
|
|
166
|
-
colorInfoFill: 'rgba(10, 95, 255, 0.2)',
|
|
167
|
-
colorInfoFillSecondary: 'rgba(13, 88, 255, 0.12)',
|
|
168
|
-
colorInfoFillTertiary: 'rgba(22, 88, 255, 0.06)',
|
|
169
|
-
colorInfoFillQuaternary: 'rgba(105, 55, 255, 0.02)',
|
|
170
|
-
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 ',
|
|
171
|
-
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 ',
|
|
172
|
-
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 ',
|
|
173
|
-
colorTextLightSolid: '#fff',
|
|
174
|
-
colorFillContent: 'rgba(0, 0, 0, 0.06)',
|
|
175
|
-
colorFillContentHover: 'rgba(0, 0, 0, 0.12)',
|
|
176
|
-
colorFillAlter: 'rgba(0, 0, 0, 0.015)',
|
|
177
|
-
colorBgContainerDisabled: 'rgba(0, 0, 0, 0.03)',
|
|
178
|
-
colorBorderBg: '#ffffff',
|
|
179
|
-
colorSplit: 'rgba(12,12,12,0.07)',
|
|
180
|
-
colorTextPlaceholder: '#bbbbbb',
|
|
181
|
-
colorTextDisabled: '#bbbbbb',
|
|
182
|
-
colorTextHeading: '#080808',
|
|
183
|
-
colorTextLabel: '#666666',
|
|
184
|
-
colorTextDescription: '#999999',
|
|
185
|
-
colorHighlight: '#ec5e41',
|
|
186
|
-
colorBgTextHover: 'rgba(0, 0, 0, 0.06)',
|
|
187
|
-
colorBgTextActive: 'rgba(0, 0, 0, 0.12)',
|
|
188
|
-
colorIcon: '#999999',
|
|
189
|
-
colorIconHover: '#080808',
|
|
190
|
-
colorErrorOutline: 'rgba(255,55,30,0.04)',
|
|
191
|
-
colorWarningOutline: 'rgba(255,55,255,0.01)',
|
|
192
|
-
fontSizeIcon: 12,
|
|
193
|
-
lineWidthFocus: 3,
|
|
194
|
-
controlOutlineWidth: 2,
|
|
195
|
-
controlInteractiveSize: 18,
|
|
196
|
-
controlItemBgHover: 'rgba(0, 0, 0, 0.03)',
|
|
197
|
-
controlItemBgActive: '#f5f5f5',
|
|
198
|
-
controlItemBgActiveHover: '#eeeeee',
|
|
199
|
-
controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.12)',
|
|
200
|
-
controlTmpOutline: 'rgba(0, 0, 0, 0.015)',
|
|
201
|
-
controlOutline: 'rgba(5,5,5,0.04)',
|
|
202
|
-
fontWeightStrong: 600,
|
|
203
|
-
opacityLoading: 0.65,
|
|
204
|
-
linkDecoration: 'none',
|
|
205
|
-
linkHoverDecoration: 'none',
|
|
206
|
-
linkFocusDecoration: 'none',
|
|
207
|
-
controlPaddingHorizontal: 12,
|
|
208
|
-
controlPaddingHorizontalSM: 8,
|
|
209
|
-
paddingXXS: 4,
|
|
210
|
-
paddingXS: 8,
|
|
211
|
-
paddingSM: 12,
|
|
212
|
-
padding: 16,
|
|
213
|
-
paddingMD: 20,
|
|
214
|
-
paddingLG: 24,
|
|
215
|
-
paddingXL: 32,
|
|
216
|
-
paddingContentHorizontalLG: 24,
|
|
217
|
-
paddingContentVerticalLG: 16,
|
|
218
|
-
paddingContentHorizontal: 16,
|
|
219
|
-
paddingContentVertical: 12,
|
|
220
|
-
paddingContentHorizontalSM: 16,
|
|
221
|
-
paddingContentVerticalSM: 8,
|
|
222
|
-
marginXXS: 4,
|
|
223
|
-
marginXS: 8,
|
|
224
|
-
marginSM: 12,
|
|
225
|
-
margin: 16,
|
|
226
|
-
marginMD: 20,
|
|
227
|
-
marginLG: 24,
|
|
228
|
-
marginXL: 32,
|
|
229
|
-
marginXXL: 48,
|
|
230
|
-
screenXS: 480,
|
|
231
|
-
screenXSMin: 480,
|
|
232
|
-
screenXSMax: 575,
|
|
233
|
-
screenSM: 576,
|
|
234
|
-
screenSMMin: 576,
|
|
235
|
-
screenSMMax: 767,
|
|
236
|
-
screenMD: 768,
|
|
237
|
-
screenMDMin: 768,
|
|
238
|
-
screenMDMax: 991,
|
|
239
|
-
screenLG: 992,
|
|
240
|
-
screenLGMin: 992,
|
|
241
|
-
screenLGMax: 1199,
|
|
242
|
-
screenXL: 1200,
|
|
243
|
-
screenXLMin: 1200,
|
|
244
|
-
screenXLMax: 1599,
|
|
245
|
-
screenXXL: 1600,
|
|
246
|
-
screenXXLMin: 1600,
|
|
247
|
-
boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',
|
|
248
|
-
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 ',
|
|
249
|
-
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 ',
|
|
250
|
-
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 ',
|
|
251
|
-
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 ',
|
|
252
|
-
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 ',
|
|
253
|
-
boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
|
|
254
|
-
boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
|
|
255
|
-
boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
|
|
256
|
-
boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
|
|
257
|
-
Button: {
|
|
258
|
-
contentFontSizeSM: 12
|
|
259
|
-
},
|
|
260
|
-
DatePicker: {},
|
|
261
|
-
Input: {},
|
|
262
|
-
InputNumber: {},
|
|
263
|
-
Mentions: {},
|
|
264
|
-
Select: {},
|
|
265
|
-
themeMode: 'light',
|
|
266
|
-
appearance: 'light',
|
|
267
|
-
isDarkMode: false,
|
|
268
|
-
browserPrefers: 'light',
|
|
269
|
-
prefixCls: 'antd',
|
|
270
|
-
iconPrefixCls: 'anticon',
|
|
271
|
-
colorPrimaryBgHover: '#e0e9ff',
|
|
272
|
-
colorWarning: '#ed6d0c',
|
|
273
|
-
colorBgLayout: '#f5f6f7'
|
|
274
|
-
};
|
|
275
|
-
const defaultLightTheme = {
|
|
276
|
-
cssVar: true,
|
|
277
|
-
token: {
|
|
278
|
-
...lightToken,
|
|
279
|
-
...defaultPrimaryPresets
|
|
280
|
-
},
|
|
281
|
-
components: {
|
|
282
|
-
Tag: {
|
|
283
|
-
lineType: 'none',
|
|
284
|
-
algorithm: true
|
|
285
|
-
},
|
|
286
|
-
Tooltip: {
|
|
287
|
-
colorBgSpotlight: 'rgb(31,35,41)'
|
|
288
|
-
},
|
|
289
|
-
Button: {
|
|
290
|
-
dangerShadow: '0',
|
|
291
|
-
defaultShadow: '0',
|
|
292
|
-
primaryShadow: '0'
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
};
|
|
296
|
-
export { defaultLightTheme };
|
package/lib/hooks/useTheme.d.ts
DELETED
package/lib/hooks/useTheme.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useContext } from "react";
|
|
2
|
-
import { ThemeProviderContext } from "../components/theme/index.js";
|
|
3
|
-
const useTheme = ()=>{
|
|
4
|
-
const context = useContext(ThemeProviderContext);
|
|
5
|
-
if (void 0 === context) throw new Error('useTheme 必须在 ThemeProvider 内使用');
|
|
6
|
-
return context;
|
|
7
|
-
};
|
|
8
|
-
export { useTheme };
|