gant-core 0.2.36 → 2.0.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.
Files changed (67) hide show
  1. package/.changeset/README.md +8 -0
  2. package/.changeset/config.json +11 -0
  3. package/CHANGELOG.md +14 -0
  4. package/eslint.config.mjs +26 -0
  5. package/lib/cli/acorn.js +2 -1
  6. package/lib/cli/angular.js +2 -1
  7. package/lib/cli/babel.js +2 -1
  8. package/lib/cli/config/defineConfig.js +103 -1
  9. package/lib/cli/config/index.js +2 -1
  10. package/lib/cli/copyfiles/index.js +2 -1
  11. package/lib/cli/create/config/index.js +3 -2
  12. package/lib/cli/create/index.js +1 -0
  13. package/lib/cli/create/module/index.js +2 -9
  14. package/lib/cli/estree.js +2 -1
  15. package/lib/cli/flow.js +2 -1
  16. package/lib/cli/glimmer.js +2 -1
  17. package/lib/cli/graphql.js +2 -1
  18. package/lib/cli/html.js +2 -1
  19. package/lib/cli/i18n/index.js +3 -2
  20. package/lib/cli/i18n/utils.js +2 -1
  21. package/lib/cli/index.d.ts +1836 -0
  22. package/lib/cli/index.js +2 -1
  23. package/lib/cli/markdown.js +2 -1
  24. package/lib/cli/meriyah.js +2 -1
  25. package/lib/cli/postcss.js +2 -1
  26. package/lib/cli/routes/index.js +2 -1
  27. package/lib/cli/template/template.vue.config.txt +1 -1
  28. package/lib/cli/template/types.d.txt +134 -132
  29. package/lib/cli/tsconfig/index.js +2 -1
  30. package/lib/cli/typescript.js +2 -1
  31. package/lib/cli/utils/detectPort.js +3 -0
  32. package/lib/cli/utils/getJavascriptfile.js +2 -1
  33. package/lib/cli/utils/index.js +2 -1
  34. package/lib/cli/webpack/Webpack.js +2 -1
  35. package/lib/cli/webpack/config/analyzer.config.js +2 -1
  36. package/lib/cli/webpack/config/browsers.js +1 -0
  37. package/lib/cli/webpack/config/cssRules.js +2 -1
  38. package/lib/cli/webpack/config/default.config.js +2 -1
  39. package/lib/cli/webpack/config/development.config.js +2 -1
  40. package/lib/cli/webpack/config/framework/index.js +3 -0
  41. package/lib/cli/webpack/config/framework/react.js +3 -0
  42. package/lib/cli/webpack/config/framework/vue.js +3 -0
  43. package/lib/cli/webpack/config/index.js +1 -0
  44. package/lib/cli/webpack/config/production.config.js +2 -1
  45. package/lib/cli/webpack/plugins/copy.js +2 -1
  46. package/lib/cli/webpack/plugins/index.js +2 -1
  47. package/lib/cli/yaml.js +2 -1
  48. package/lib/core/i18n/index.js +1 -1
  49. package/lib/core/index.js +1 -1
  50. package/lib/core/microservices/index.js +10 -1
  51. package/lib/core/request/index.js +1 -1
  52. package/lib/core/store/index.js +1 -1
  53. package/lib/core/theme/index.js +1 -1
  54. package/lib/core/utils/index.js +83 -1
  55. package/lib/types/index.d.ts +115 -104
  56. package/package.json +62 -44
  57. package/rollup.config.js +27 -10
  58. package/tsconfig.json +1 -0
  59. package/lib/core/cache/index.js.map +0 -1
  60. package/lib/core/event/index.js.map +0 -1
  61. package/lib/core/i18n/index.js.map +0 -1
  62. package/lib/core/index.js.map +0 -1
  63. package/lib/core/microservices/index.js.map +0 -1
  64. package/lib/core/request/index.js.map +0 -1
  65. package/lib/core/store/index.js.map +0 -1
  66. package/lib/core/theme/index.js.map +0 -1
  67. package/lib/core/utils/index.js.map +0 -1
@@ -0,0 +1,1836 @@
1
+ import * as connect_history_api_fallback from 'connect-history-api-fallback';
2
+ import { Configuration } from '@rspack/core';
3
+ import { Configuration as Configuration$1 } from '@rspack/dev-server';
4
+
5
+ declare const PresetColors: readonly ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
6
+ type PresetColorKey = (typeof PresetColors)[number];
7
+ type PresetColorType = Record<PresetColorKey, string>;
8
+ type ColorPaletteKeyIndex = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
9
+ type LegacyColorPalettes = {
10
+ [key in `${keyof PresetColorType}-${ColorPaletteKeyIndex}`]: string;
11
+ };
12
+ type ColorPalettes = {
13
+ [key in `${keyof PresetColorType}${ColorPaletteKeyIndex}`]: string;
14
+ };
15
+
16
+ interface SeedToken extends PresetColorType {
17
+ /**
18
+ * @nameZH 品牌主色
19
+ * @nameEN Brand Color
20
+ * @desc 品牌色是体现产品特性和传播理念最直观的视觉元素之一。在你完成品牌主色的选取之后,我们会自动帮你生成一套完整的色板,并赋予它们有效的设计语义
21
+ * @descEN Brand color is one of the most direct visual elements to reflect the characteristics and communication of the product. After you have selected the brand color, we will automatically generate a complete color palette and assign it effective design semantics.
22
+ */
23
+ colorPrimary: string;
24
+ /**
25
+ * @nameZH 成功色
26
+ * @nameEN Success Color
27
+ * @desc 用于表示操作成功的 Token 序列,如 Result、Progress 等组件会使用该组梯度变量。
28
+ * @descEN Used to represent the token sequence of operation success, such as Result, Progress and other components will use these map tokens.
29
+ */
30
+ colorSuccess: string;
31
+ /**
32
+ * @nameZH 警戒色
33
+ * @nameEN Warning Color
34
+ * @desc 用于表示操作警告的 Token 序列,如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该组梯度变量。
35
+ * @descEN Used to represent the warning map token, such as Notification, Alert, etc. Alert or Control component(like Input) will use these map tokens.
36
+ */
37
+ colorWarning: string;
38
+ /**
39
+ * @nameZH 错误色
40
+ * @nameEN Error Color
41
+ * @desc 用于表示操作失败的 Token 序列,如失败按钮、错误状态提示(Result)组件等。
42
+ * @descEN Used to represent the visual elements of the operation failure, such as the error Button, error Result component, etc.
43
+ */
44
+ colorError: string;
45
+ /**
46
+ * @nameZH 信息色
47
+ * @nameEN Info Color
48
+ * @desc 用于表示操作信息的 Token 序列,如 Alert 、Tag、 Progress 等组件都有用到该组梯度变量。
49
+ * @descEN Used to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.
50
+ */
51
+ colorInfo: string;
52
+ /**
53
+ * @nameZH 基础文本色
54
+ * @nameEN Seed Text Color
55
+ * @desc 用于派生文本色梯度的基础变量,v5 中我们添加了一层文本色的派生算法可以产出梯度明确的文本色的梯度变量。但请不要在代码中直接使用该 Seed Token !
56
+ * @descEN Used to derive the base variable of the text color gradient. In v5, we added a layer of text color derivation algorithm to produce gradient variables of text color gradient. But please do not use this Seed Token directly in the code!
57
+ */
58
+ colorTextBase: string;
59
+ /**
60
+ * @nameZH 基础背景色
61
+ * @nameEN Seed Background Color
62
+ * @desc 用于派生背景色梯度的基础变量,v5 中我们添加了一层背景色的派生算法可以产出梯度明确的背景色的梯度变量。但请不要在代码中直接使用该 Seed Token !
63
+ * @descEN Used to derive the base variable of the background color gradient. In v5, we added a layer of background color derivation algorithm to produce map token of background color. But PLEASE DO NOT USE this Seed Token directly in the code!
64
+ */
65
+ colorBgBase: string;
66
+ /**
67
+ * @nameZH 超链接颜色
68
+ * @nameEN Hyperlink color
69
+ * @desc 控制超链接的颜色。
70
+ * @descEN Control the color of hyperlink.
71
+ */
72
+ colorLink: string;
73
+ /**
74
+ * @nameZH 字体
75
+ * @nameEN Font family for default text
76
+ * @desc Ant Design 的字体家族中优先使用系统默认的界面字体,同时提供了一套利于屏显的备用字体库,来维护在不同平台以及浏览器的显示下,字体始终保持良好的易读性和可读性,体现了友好、稳定和专业的特性。
77
+ * @descEN The font family of Ant Design prioritizes the default interface font of the system, and provides a set of alternative font libraries that are suitable for screen display to maintain the readability and readability of the font under different platforms and browsers, reflecting the friendly, stable and professional characteristics.
78
+ */
79
+ fontFamily: string;
80
+ /**
81
+ * @nameZH 代码字体
82
+ * @nameEN Font family for code text
83
+ * @desc 代码字体,用于 Typography 内的 code、pre 和 kbd 类型的元素
84
+ * @descEN Code font, used for code, pre and kbd elements in Typography
85
+ */
86
+ fontFamilyCode: string;
87
+ /**
88
+ * @nameZH 代 Weight
89
+ * @nameEN Font Weight
90
+ */
91
+ fontWeight: string | number;
92
+ /**
93
+ * @nameZH 默认字号
94
+ * @nameEN Default Font Size
95
+ * @desc 设计系统中使用最广泛的字体大小,文本梯度也将基于该字号进行派生。
96
+ * @descEN The most widely used font size in the design system, from which the text gradient will be derived.
97
+ * @default 14
98
+ */
99
+ fontSize: number;
100
+ /**
101
+ * @nameZH 基础线宽
102
+ * @nameEN Base Line Width
103
+ * @desc 用于控制组件边框、分割线等的宽度
104
+ * @descEN Border width of base components
105
+ */
106
+ lineWidth: number;
107
+ /**
108
+ * @nameZH 线条样式
109
+ * @nameEN Line Style
110
+ * @desc 用于控制组件边框、分割线等的样式,默认是实线
111
+ * @descEN Border style of base components
112
+ */
113
+ lineType: string;
114
+ /**
115
+ * @nameZH 基础圆角
116
+ * @nameEN Base Border Radius
117
+ * @descEN Border radius of base components
118
+ * @desc 基础组件的圆角大小,例如按钮、输入框、卡片等
119
+ */
120
+ borderRadius: number;
121
+ /**
122
+ * @nameZH 尺寸变化单位
123
+ * @nameEN Size Change Unit
124
+ * @desc 用于控制组件尺寸的变化单位,在 Ant Design 中我们的基础单位为 4 ,便于更加细致地控制尺寸梯度
125
+ * @descEN The unit of size change, in Ant Design, our base unit is 4, which is more fine-grained control of the size step
126
+ * @default 4
127
+ */
128
+ sizeUnit: number;
129
+ /**
130
+ * @nameZH 尺寸步长
131
+ * @nameEN Size Base Step
132
+ * @desc 用于控制组件尺寸的基础步长,尺寸步长结合尺寸变化单位,就可以派生各种尺寸梯度。通过调整步长即可得到不同的布局模式,例如 V5 紧凑模式下的尺寸步长为 2
133
+ * @descEN The base step of size change, the size step combined with the size change unit, can derive various size steps. By adjusting the step, you can get different layout modes, such as the size step of the compact mode of V5 is 2
134
+ * @default 4
135
+ */
136
+ sizeStep: number;
137
+ /**
138
+ * @nameZH 组件箭头尺寸
139
+ * @desc 组件箭头的尺寸
140
+ * @descEN The size of the component arrow
141
+ */
142
+ sizePopupArrow: number;
143
+ /**
144
+ * @nameZH 基础高度
145
+ * @nameEN Base Control Height
146
+ * @desc Ant Design 中按钮和输入框等基础控件的高度
147
+ * @descEN The height of the basic controls such as buttons and input boxes in Ant Design
148
+ * @default 32
149
+ */
150
+ controlHeight: number;
151
+ /**
152
+ * @nameZH 基础 zIndex
153
+ * @nameEN Base zIndex
154
+ * @desc 所有组件的基础 Z 轴值,用于一些悬浮类的组件的可以基于该值 Z 轴控制层级,例如 BackTop、 Affix 等
155
+ * @descEN The base Z axis value of all components, which can be used to control the level of some floating components based on the Z axis value, such as BackTop, Affix, etc.
156
+ *
157
+ * @default 0
158
+ */
159
+ zIndexBase: number;
160
+ /**
161
+ * @nameZH 浮层基础 zIndex
162
+ * @nameEN popup base zIndex
163
+ * @desc 浮层类组件的基础 Z 轴值,用于一些悬浮类的组件的可以基于该值 Z 轴控制层级,例如 FloatButton、 Affix、Modal 等
164
+ * @descEN Base zIndex of component like FloatButton, Affix which can be cover by large popup
165
+ * @default 1000
166
+ */
167
+ zIndexPopupBase: number;
168
+ /**
169
+ * @nameZH 不透明度
170
+ * @nameEN Define default opacity. Useful when in dark-like theme
171
+ */
172
+ opacity: number;
173
+ /**
174
+ * @nameZH 动画时长变化单位
175
+ * @nameEN Animation Duration Unit
176
+ * @desc 用于控制动画时长的变化单位
177
+ * @descEN The unit of animation duration change
178
+ * @default 100ms
179
+ */
180
+ motionUnit: number;
181
+ /**
182
+ * @nameZH 动画基础时长。
183
+ * @nameEN Animation Base Duration.
184
+ */
185
+ motionBase: number;
186
+ /**
187
+ * @desc 预设动效曲率
188
+ * @descEN Preset motion curve.
189
+ */
190
+ motionEaseOutCirc: string;
191
+ /**
192
+ * @desc 预设动效曲率
193
+ * @descEN Preset motion curve.
194
+ */
195
+ motionEaseInOutCirc: string;
196
+ /**
197
+ * @desc 预设动效曲率
198
+ * @descEN Preset motion curve.
199
+ */
200
+ motionEaseInOut: string;
201
+ /**
202
+ * @desc 预设动效曲率
203
+ * @descEN Preset motion curve.
204
+ */
205
+ motionEaseOutBack: string;
206
+ /**
207
+ * @desc 预设动效曲率
208
+ * @descEN Preset motion curve.
209
+ */
210
+ motionEaseInBack: string;
211
+ /**
212
+ * @desc 预设动效曲率
213
+ * @descEN Preset motion curve.
214
+ */
215
+ motionEaseInQuint: string;
216
+ /**
217
+ * @desc 预设动效曲率
218
+ * @descEN Preset motion curve.
219
+ */
220
+ motionEaseOutQuint: string;
221
+ /**
222
+ * @desc 预设动效曲率
223
+ * @descEN Preset motion curve.
224
+ */
225
+ motionEaseOut: string;
226
+ /**
227
+ * @nameZH 线框风格
228
+ * @nameEN Wireframe Style
229
+ * @desc 用于将组件的视觉效果变为线框化,如果需要使用 V4 的效果,需要开启配置项
230
+ * @descEN Used to change the visual effect of the component to wireframe, if you need to use the V4 effect, you need to enable the configuration item
231
+ * @default false
232
+ */
233
+ wireframe: boolean;
234
+ /**
235
+ * @nameZH 动画风格
236
+ * @nameEN Motion Style
237
+ * @desc 用于配置动画效果,为 `false` 时则关闭动画
238
+ * @descEN Used to configure the motion effect, when it is `false`, the motion is turned off
239
+ * @default false
240
+ */
241
+ motion: boolean;
242
+ /**
243
+ * @nameZH 头部高度
244
+ * @default 50
245
+ */
246
+ layoutHeaderHeight: number;
247
+ /**
248
+ * @nameZH layout icon
249
+ * @default 24
250
+ */
251
+ layoutIconSize: number;
252
+ /**
253
+ * @nameZH 菜单宽度
254
+ * @default 200
255
+ */
256
+ layoutSiderWidth: number;
257
+ /**
258
+ * @nameZH 导航菜单高度
259
+ * @default 40
260
+ */
261
+ layoutNavHeight: number;
262
+ gradientColors: string[];
263
+ }
264
+
265
+ interface ColorNeutralMapToken {
266
+ /**
267
+ * @internal
268
+ */
269
+ colorTextBase: string;
270
+ /**
271
+ * @internal
272
+ */
273
+ colorBgBase: string;
274
+ /**
275
+ * @nameZH 一级文本色
276
+ * @nameEN Text Color
277
+ * @desc 最深的文本色。为了符合W3C标准,默认的文本颜色使用了该色,同时这个颜色也是最深的中性色。
278
+ * @descEN Default text color which comply with W3C standards, and this color is also the darkest neutral color.
279
+ */
280
+ colorText: string;
281
+ /**
282
+ * @nameZH 二级文本色
283
+ * @nameEN Secondary Text Color
284
+ * @desc 作为第二梯度的文本色,一般用在不那么需要强化文本颜色的场景,例如 Label 文本、Menu 的文本选中态等场景。
285
+ * @descEN The second level of text color is generally used in scenarios where text color is not emphasized, such as label text, menu text selection state, etc.
286
+ */
287
+ colorTextSecondary: string;
288
+ /**
289
+ * @nameZH 三级文本色
290
+ * @desc 第三级文本色一般用于描述性文本,例如表单的中的补充说明文本、列表的描述性文本等场景。
291
+ * @descEN The third level of text color is generally used for descriptive text, such as form supplementary explanation text, list descriptive text, etc.
292
+ */
293
+ colorTextTertiary: string;
294
+ /**
295
+ * @nameZH 四级文本色
296
+ * @desc 第四级文本色是最浅的文本色,例如表单的输入提示文本、禁用色文本等。
297
+ * @descEN The fourth level of text color is the lightest text color, such as form input prompt text, disabled color text, etc.
298
+ */
299
+ colorTextQuaternary: string;
300
+ /**
301
+ * @nameZH 一级边框色
302
+ * @nameEN Default Border Color
303
+ * @desc 默认使用的边框颜色, 用于分割不同的元素,例如:表单的分割线、卡片的分割线等。
304
+ * @descEN Default border color, used to separate different elements, such as: form separator, card separator, etc.
305
+ */
306
+ colorBorder: string;
307
+ /**
308
+ * @nameZH 二级边框色
309
+ * @nameEN Secondary Border Color
310
+ * @desc 比默认使用的边框色要浅一级,此颜色和 colorSplit 的颜色一致。使用的是实色。
311
+ * @descEN Slightly lighter than the default border color, this color is the same as `colorSplit`. Solid color is used.
312
+ */
313
+ colorBorderSecondary: string;
314
+ /**
315
+ * @nameZH 一级填充色
316
+ * @desc 最深的填充色,用于拉开与二、三级填充色的区分度,目前只用在 Slider 的 hover 效果。
317
+ * @descEN The darkest fill color is used to distinguish between the second and third level of fill color, and is currently only used in the hover effect of Slider.
318
+ */
319
+ colorFill: string;
320
+ /**
321
+ * @nameZH 二级填充色
322
+ * @desc 二级填充色可以较为明显地勾勒出元素形体,如 Rate、Skeleton 等。也可以作为三级填充色的 Hover 状态,如 Table 等。
323
+ * @descEN The second level of fill color can outline the shape of the element more clearly, such as Rate, Skeleton, etc. It can also be used as the Hover state of the third level of fill color, such as Table, etc.
324
+ */
325
+ colorFillSecondary: string;
326
+ /**
327
+ * @nameZH 三级填充色
328
+ * @desc 三级填充色用于勾勒出元素形体的场景,如 Slider、Segmented 等。如无强调需求的情况下,建议使用三级填色作为默认填色。
329
+ * @descEN The third level of fill color is used to outline the shape of the element, such as Slider, Segmented, etc. If there is no emphasis requirement, it is recommended to use the third level of fill color as the default fill color.
330
+ */
331
+ colorFillTertiary: string;
332
+ /**
333
+ * @nameZH 四级填充色
334
+ * @desc 最弱一级的填充色,适用于不易引起注意的色块,例如斑马纹、区分边界的色块等。
335
+ * @descEN The weakest level of fill color is suitable for color blocks that are not easy to attract attention, such as zebra stripes, color blocks that distinguish boundaries, etc.
336
+ */
337
+ colorFillQuaternary: string;
338
+ /**
339
+ * @nameZH 布局背景色
340
+ * @nameEN Layout Background Color
341
+ * @desc 该色用于页面整体布局的背景色,只有需要在页面中处于 B1 的视觉层级时才会使用该 token,其他用法都是错误的
342
+ * @descEN This color is used for the background color of the overall layout of the page. This token will only be used when it is necessary to be at the B1 visual level in the page. Other usages are wrong.
343
+ */
344
+ colorBgLayout: string;
345
+ /**
346
+ * @nameZH 组件容器背景色
347
+ * @desc 组件的容器背景色,例如:默认按钮、输入框等。务必不要将其与 `colorBgElevated` 混淆。
348
+ * @descEN Container background color, e.g: default button, input box, etc. Be sure not to confuse this with `colorBgElevated`.
349
+ */
350
+ colorBgContainer: string;
351
+ /**
352
+ * @nameZH 浮层容器背景色
353
+ * @desc 浮层容器背景色,在暗色模式下该 token 的色值会比 `colorBgContainer` 要亮一些。例如:模态框、弹出框、菜单等。
354
+ * @descEN Container background color of the popup layer, in dark mode the color value of this token will be a little brighter than `colorBgContainer`. E.g: modal, pop-up, menu, etc.
355
+ */
356
+ colorBgElevated: string;
357
+ /**
358
+ * @nameZH 引起注意的背景色
359
+ * @desc 该色用于引起用户强烈关注注意的背景色,目前只用在 Tooltip 的背景色上。
360
+ * @descEN This color is used to draw the user's strong attention to the background color, and is currently only used in the background color of Tooltip.
361
+ */
362
+ colorBgSpotlight: string;
363
+ }
364
+ /**
365
+ * 品牌色梯度变量
366
+ */
367
+ interface ColorPrimaryMapToken {
368
+ /**
369
+ * @nameZH 品牌主色
370
+ * @nameEN Primary color of the brand
371
+ * @desc 品牌色是体现产品特性和传播理念最直观的视觉元素之一,用于产品的主色调、主按钮、主图标、主文本等
372
+ * @descEN The brand color is one of the most intuitive visual elements that reflects product characteristics and communication concepts, and is used for the main color tone, main buttons, main icons, main text, etc. of the product.
373
+ */
374
+ colorPrimary: string;
375
+ /**
376
+ * @nameZH 主色浅色背景色
377
+ * @nameEN Light background color of primary color
378
+ * @desc 主色浅色背景颜色,一般用于视觉层级较弱的选中状态。
379
+ * @descEN Light background color of primary color, usually used for weak visual level selection state.
380
+ */
381
+ colorPrimaryBg: string;
382
+ /**
383
+ * @nameZH 主色浅色背景悬浮态
384
+ * @nameEN Hover state of light background color of primary color
385
+ * @desc 与主色浅色背景颜色相对应的悬浮态颜色。
386
+ * @descEN The hover state color corresponding to the light background color of the primary color.
387
+ */
388
+ colorPrimaryBgHover: string;
389
+ /**
390
+ * @nameZH 主色描边色
391
+ * @nameEN Border color of primary color
392
+ * @desc 主色梯度下的描边用色,用在 Slider 等组件的描边上。
393
+ * @descEN The stroke color under the main color gradient, used on the stroke of components such as Slider.
394
+ */
395
+ colorPrimaryBorder: string;
396
+ /**
397
+ * @nameZH 主色描边色悬浮态
398
+ * @nameEN Hover state of border color of primary color
399
+ * @desc 主色梯度下的描边用色的悬浮态,Slider 、Button 等组件的描边 Hover 时会使用。
400
+ * @descEN The hover state of the stroke color under the main color gradient, which will be used when the stroke Hover of components such as Slider and Button.
401
+ */
402
+ colorPrimaryBorderHover: string;
403
+ /**
404
+ * @nameZH 主色悬浮态
405
+ * @nameEN Hover state of primary color
406
+ * @desc 主色梯度下的悬浮态。
407
+ * @descEN Hover state under the main color gradient.
408
+ */
409
+ colorPrimaryHover: string;
410
+ /**
411
+ * @nameZH 主色激活态
412
+ * @nameEN Active state of primary color
413
+ * @desc 主色梯度下的深色激活态。
414
+ * @descEN Dark active state under the main color gradient.
415
+ */
416
+ colorPrimaryActive: string;
417
+ /**
418
+ * @nameZH 主色文本悬浮态
419
+ * @nameEN Hover state of text color of primary color
420
+ * @desc 主色梯度下的文本悬浮态。
421
+ * @descEN Hover state of text color under the main color gradient.
422
+ */
423
+ colorPrimaryTextHover: string;
424
+ /**
425
+ * @nameZH 主色文本
426
+ * @nameEN Text color of primary color
427
+ * @desc 主色梯度下的文本颜色。
428
+ * @descEN Text color under the main color gradient.
429
+ */
430
+ colorPrimaryText: string;
431
+ /**
432
+ * @nameZH 主色文本激活态
433
+ * @nameEN Active state of text color of primary color
434
+ * @desc 主色梯度下的文本激活态。
435
+ * @descEN Active state of text color under the main color gradient.
436
+ */
437
+ colorPrimaryTextActive: string;
438
+ }
439
+ interface ColorSuccessMapToken {
440
+ /**
441
+ * @nameZH 成功色的浅色背景颜色
442
+ * @nameEN Light Background Color of Success Color
443
+ * @desc 成功色的浅色背景颜色,用于 Tag 和 Alert 的成功态背景色
444
+ * @descEN Light background color of success color, used for Tag and Alert success state background color
445
+ */
446
+ colorSuccessBg: string;
447
+ /**
448
+ * @nameZH 成功色的浅色背景色悬浮态
449
+ * @nameEN Hover State Color of Light Success Background
450
+ * @desc 成功色浅色背景颜色,一般用于视觉层级较弱的选中状态,不过 antd 目前没有使用到该 token
451
+ * @descEN Light background color of success color, but antd does not use this token currently
452
+ */
453
+ colorSuccessBgHover: string;
454
+ /**
455
+ * @nameZH 成功色的描边色
456
+ * @nameEN Border Color of Success Color
457
+ * @desc 成功色的描边色,用于 Tag 和 Alert 的成功态描边色
458
+ * @descEN Border color of success color, used for Tag and Alert success state border color
459
+ */
460
+ colorSuccessBorder: string;
461
+ /**
462
+ * @nameZH 成功色的描边色悬浮态
463
+ * @nameEN Hover State Color of Success Border
464
+ * @desc 成功色的描边色悬浮态
465
+ * @descEN Hover state color of success color border
466
+ */
467
+ colorSuccessBorderHover: string;
468
+ /**
469
+ * @nameZH 成功色的深色悬浮态
470
+ * @nameEN Hover State Color of Dark Success
471
+ * @desc 成功色的深色悬浮态
472
+ * @descEN Hover state color of dark success color
473
+ */
474
+ colorSuccessHover: string;
475
+ /**
476
+ * @nameZH 成功色
477
+ * @nameEN Success Color
478
+ * @desc 默认的成功色,如 Result、Progress 等组件中都有使用该颜色
479
+ * @descEN Default success color, used in components such as Result and Progress
480
+ */
481
+ colorSuccess: string;
482
+ /**
483
+ * @nameZH 成功色的深色激活态
484
+ * @nameEN Active State Color of Dark Success
485
+ * @desc 成功色的深色激活态
486
+ * @descEN Active state color of dark success color
487
+ */
488
+ colorSuccessActive: string;
489
+ /**
490
+ * @nameZH 成功色的文本悬浮态
491
+ * @nameEN Hover State Color of Success Text
492
+ * @desc 成功色的文本悬浮态
493
+ * @descEN Hover state color of success color text
494
+ */
495
+ colorSuccessTextHover: string;
496
+ /**
497
+ * @nameZH 成功色的文本默认态
498
+ * @nameEN Default State Color of Success Text
499
+ * @desc 成功色的文本默认态
500
+ * @descEN Default state color of success color text
501
+ */
502
+ colorSuccessText: string;
503
+ /**
504
+ * @nameZH 成功色的文本激活态
505
+ * @nameEN Active State Color of Success Text
506
+ * @desc 成功色的文本激活态
507
+ * @descEN Active state color of success color text
508
+ */
509
+ colorSuccessTextActive: string;
510
+ }
511
+ interface ColorWarningMapToken {
512
+ /**
513
+ * @nameZH 警戒色的浅色背景颜色
514
+ * @nameEN Warning background color
515
+ * @desc 警戒色的浅色背景颜色
516
+ * @descEN The background color of the warning state.
517
+ */
518
+ colorWarningBg: string;
519
+ /**
520
+ * @nameZH 警戒色的浅色背景色悬浮态
521
+ * @nameEN Warning background color hover state
522
+ * @desc 警戒色的浅色背景色悬浮态
523
+ * @descEN The hover state background color of the warning state.
524
+ */
525
+ colorWarningBgHover: string;
526
+ /**
527
+ * @nameZH 警戒色的描边色
528
+ * @nameEN Warning border color
529
+ * @desc 警戒色的描边色
530
+ * @descEN The border color of the warning state.
531
+ */
532
+ colorWarningBorder: string;
533
+ /**
534
+ * @nameZH 警戒色的描边色悬浮态
535
+ * @nameEN Warning border color hover state
536
+ * @desc 警戒色的描边色悬浮态
537
+ * @descEN The hover state border color of the warning state.
538
+ */
539
+ colorWarningBorderHover: string;
540
+ /**
541
+ * @nameZH 警戒色的深色悬浮态
542
+ * @nameEN Warning hover color
543
+ * @desc 警戒色的深色悬浮态
544
+ * @descEN The hover state of the warning color.
545
+ */
546
+ colorWarningHover: string;
547
+ /**
548
+ * @nameZH 警戒色
549
+ * @nameEN Warning color
550
+ * @desc 最常用的警戒色,例如 Notification、 Alert等警告类组件或 Input 输入类等组件会使用该颜色
551
+ * @descEN The most commonly used warning color, used for warning components such as Notification, Alert, or input components.
552
+ */
553
+ colorWarning: string;
554
+ /**
555
+ * @nameZH 警戒色的深色激活态
556
+ * @nameEN Warning active color
557
+ * @desc 警戒色的深色激活态
558
+ * @descEN The active state of the warning color.
559
+ */
560
+ colorWarningActive: string;
561
+ /**
562
+ * @nameZH 警戒色的文本悬浮态
563
+ * @nameEN Warning text hover state
564
+ * @desc 警戒色的文本悬浮态
565
+ * @descEN The hover state of the text in the warning color.
566
+ */
567
+ colorWarningTextHover: string;
568
+ /**
569
+ * @nameZH 警戒色的文本默认态
570
+ * @nameEN Warning text default state
571
+ * @desc 警戒色的文本默认态
572
+ * @descEN The default state of the text in the warning color.
573
+ */
574
+ colorWarningText: string;
575
+ /**
576
+ * @nameZH 警戒色的文本激活态
577
+ * @nameEN Warning text active state
578
+ * @desc 警戒色的文本激活态
579
+ * @descEN The active state of the text in the warning color.
580
+ */
581
+ colorWarningTextActive: string;
582
+ }
583
+ interface ColorInfoMapToken {
584
+ /**
585
+ * @nameZH 信息色的浅色背景颜色
586
+ * @nameEN Light background color of information color
587
+ * @desc 信息色的浅色背景颜色。
588
+ * @descEN Light background color of information color.
589
+ */
590
+ colorInfoBg: string;
591
+ /**
592
+ * @nameZH 信息色的浅色背景色悬浮态
593
+ * @nameEN Hover state of light background color of information color
594
+ * @desc 信息色的浅色背景色悬浮态。
595
+ * @descEN Hover state of light background color of information color.
596
+ */
597
+ colorInfoBgHover: string;
598
+ /**
599
+ * @nameZH 信息色的描边色
600
+ * @nameEN Border color of information color
601
+ * @desc 信息色的描边色。
602
+ * @descEN Border color of information color.
603
+ */
604
+ colorInfoBorder: string;
605
+ /**
606
+ * @nameZH 信息色的描边色悬浮态
607
+ * @nameEN Hover state of border color of information color
608
+ * @desc 信息色的描边色悬浮态。
609
+ * @descEN Hover state of border color of information color.
610
+ */
611
+ colorInfoBorderHover: string;
612
+ /**
613
+ * @nameZH 信息色的深色悬浮态
614
+ * @nameEN Hover state of dark color of information color
615
+ * @desc 信息色的深色悬浮态。
616
+ * @descEN Hover state of dark color of information color.
617
+ */
618
+ colorInfoHover: string;
619
+ /**
620
+ * @nameZH 信息色
621
+ * @nameEN Information color
622
+ * @desc 信息色。
623
+ * @descEN Information color.
624
+ */
625
+ colorInfo: string;
626
+ /**
627
+ * @nameZH 信息色的深色激活态
628
+ * @nameEN Active state of dark color of information color
629
+ * @desc 信息色的深色激活态。
630
+ * @descEN Active state of dark color of information color.
631
+ */
632
+ colorInfoActive: string;
633
+ /**
634
+ * @nameZH 信息色的文本悬浮态
635
+ * @nameEN Hover state of text color of information color
636
+ * @desc 信息色的文本悬浮态。
637
+ * @descEN Hover state of text color of information color.
638
+ */
639
+ colorInfoTextHover: string;
640
+ /**
641
+ * @nameZH 信息色的文本默认态
642
+ * @nameEN Default state of text color of information color
643
+ * @desc 信息色的文本默认态。
644
+ * @descEN Default state of text color of information color.
645
+ */
646
+ colorInfoText: string;
647
+ /**
648
+ * @nameZH 信息色的文本激活态
649
+ * @nameEN Active state of text color of information color
650
+ * @desc 信息色的文本激活态。
651
+ * @descEN Active state of text color of information color.
652
+ */
653
+ colorInfoTextActive: string;
654
+ }
655
+ interface ColorErrorMapToken {
656
+ /**
657
+ * @nameZH 错误色的浅色背景颜色
658
+ * @nameEN Error background color
659
+ * @desc 错误色的浅色背景颜色
660
+ * @descEN The background color of the error state.
661
+ */
662
+ colorErrorBg: string;
663
+ /**
664
+ * @nameZH 错误色的浅色背景色悬浮态
665
+ * @nameEN Error background color hover state
666
+ * @desc 错误色的浅色背景色悬浮态
667
+ * @descEN The hover state background color of the error state.
668
+ */
669
+ colorErrorBgHover: string;
670
+ /**
671
+ * @nameZH 错误色的描边色
672
+ * @nameEN Error border color
673
+ * @desc 错误色的描边色
674
+ * @descEN The border color of the error state.
675
+ */
676
+ colorErrorBorder: string;
677
+ /**
678
+ * @nameZH 错误色的描边色悬浮态
679
+ * @nameEN Error border color hover state
680
+ * @desc 错误色的描边色悬浮态
681
+ * @descEN The hover state border color of the error state.
682
+ */
683
+ colorErrorBorderHover: string;
684
+ /**
685
+ * @nameZH 错误色的深色悬浮态
686
+ * @nameEN Error hover color
687
+ * @desc 错误色的深色悬浮态
688
+ * @descEN The hover state of the error color.
689
+ */
690
+ colorErrorHover: string;
691
+ /**
692
+ * @nameZH 错误色
693
+ * @nameEN Error color
694
+ * @desc 错误色
695
+ * @descEN The color of the error state.
696
+ */
697
+ colorError: string;
698
+ /**
699
+ * @nameZH 错误色的深色激活态
700
+ * @nameEN Error active color
701
+ * @desc 错误色的深色激活态
702
+ * @descEN The active state of the error color.
703
+ */
704
+ colorErrorActive: string;
705
+ /**
706
+ * @nameZH 错误色的文本悬浮态
707
+ * @nameEN Error text hover state
708
+ * @desc 错误色的文本悬浮态
709
+ * @descEN The hover state of the text in the error color.
710
+ */
711
+ colorErrorTextHover: string;
712
+ /**
713
+ * @nameZH 错误色的文本默认态
714
+ * @nameEN Error text default state
715
+ * @desc 错误色的文本默认态
716
+ * @descEN The default state of the text in the error color.
717
+ */
718
+ colorErrorText: string;
719
+ /**
720
+ * @nameZH 错误色的文本激活态
721
+ * @nameEN Error text active state
722
+ * @desc 错误色的文本激活态
723
+ * @descEN The active state of the text in the error color.
724
+ */
725
+ colorErrorTextActive: string;
726
+ }
727
+ interface ColorLinkMapToken {
728
+ /**
729
+ * @nameZH 超链接颜色
730
+ * @nameEN Hyperlink color
731
+ * @desc 控制超链接的颜色。
732
+ * @descEN Control the color of hyperlink.
733
+ */
734
+ colorLink: string;
735
+ /**
736
+ * @nameZH 超链接悬浮颜色
737
+ * @nameEN Hyperlink hover color
738
+ * @desc 控制超链接悬浮时的颜色。
739
+ * @descEN Control the color of hyperlink when hovering.
740
+ */
741
+ colorLinkHover: string;
742
+ /**
743
+ * @nameZH 超链接激活颜色
744
+ * @nameEN Hyperlink active color
745
+ * @desc 控制超链接被点击时的颜色。
746
+ * @descEN Control the color of hyperlink when clicked.
747
+ */
748
+ colorLinkActive: string;
749
+ }
750
+ interface ColorMapToken extends ColorNeutralMapToken, ColorPrimaryMapToken, ColorSuccessMapToken, ColorWarningMapToken, ColorErrorMapToken, ColorInfoMapToken, ColorLinkMapToken {
751
+ /**
752
+ * @nameZH 纯白色
753
+ * @desc 不随主题变化的纯白色
754
+ * @descEN Pure white color don't changed by theme
755
+ * @default #FFFFFF
756
+ */
757
+ colorWhite: string;
758
+ /**
759
+ * @nameZH 浮层的背景蒙层颜色
760
+ * @nameEN Background color of the mask
761
+ * @desc 浮层的背景蒙层颜色,用于遮罩浮层下面的内容,Modal、Drawer 等组件的蒙层使用的是该 token
762
+ * @descEN The background color of the mask, used to cover the content below the mask, Modal, Drawer and other components use this token
763
+ */
764
+ colorBgMask: string;
765
+ /**
766
+ * @nameZH 纯黑色
767
+ * @desc 不随主题变化的纯黑色
768
+ * @default #0000
769
+ */
770
+ gradientColors: string[];
771
+ }
772
+
773
+ interface FontMapToken {
774
+ /**
775
+ * @desc 小号字体大小
776
+ * @descEN Small font size
777
+ */
778
+ fontSizeSM: number;
779
+ /**
780
+ * @desc 标准字体大小
781
+ * @descEN Standard font size
782
+ */
783
+ fontSize: number;
784
+ /**
785
+ * @desc 大号字体大小
786
+ * @descEN Large font size
787
+ */
788
+ fontSizeLG: number;
789
+ /**
790
+ * @desc 超大号字体大小
791
+ * @descEN Super large font size
792
+ */
793
+ fontSizeXL: number;
794
+ /**
795
+ * @nameZH 一级标题字号
796
+ * @nameEN Font size of heading level 1
797
+ * @desc H1 标签所使用的字号
798
+ * @descEN Font size of h1 tag.
799
+ * @default 38
800
+ */
801
+ fontSizeHeading1: number;
802
+ /**
803
+ * @nameZH 二级标题字号
804
+ * @nameEN Font size of heading level 2
805
+ * @desc h2 标签所使用的字号
806
+ * @descEN Font size of h2 tag.
807
+ * @default 30
808
+ */
809
+ fontSizeHeading2: number;
810
+ /**
811
+ * @nameZH 三级标题字号
812
+ * @nameEN Font size of heading level 3
813
+ * @desc h3 标签使用的字号
814
+ * @descEN Font size of h3 tag.
815
+ * @default 24
816
+ */
817
+ fontSizeHeading3: number;
818
+ /**
819
+ * @nameZH 四级标题字号
820
+ * @nameEN Font size of heading level 4
821
+ * @desc h4 标签使用的字号
822
+ * @descEN Font size of h4 tag.
823
+ * @default 20
824
+ */
825
+ fontSizeHeading4: number;
826
+ /**
827
+ * @nameZH 五级标题字号
828
+ * @nameEN Font size of heading level 5
829
+ * @desc h5 标签使用的字号
830
+ * @descEN Font size of h5 tag.
831
+ * @default 16
832
+ */
833
+ fontSizeHeading5: number;
834
+ /**
835
+ * @desc 文本行高
836
+ * @descEN Line height of text.
837
+ */
838
+ lineHeight: number;
839
+ /**
840
+ * @desc 大型文本行高
841
+ * @descEN Line height of large text.
842
+ */
843
+ lineHeightLG: number;
844
+ /**
845
+ * @desc 小型文本行高
846
+ * @descEN Line height of small text.
847
+ */
848
+ lineHeightSM: number;
849
+ /**
850
+ * @nameZH 一级标题行高
851
+ * @nameEN Line height of heading level 1
852
+ * @desc H1 标签所使用的行高
853
+ * @descEN Line height of h1 tag.
854
+ * @default 1.4
855
+ */
856
+ lineHeightHeading1: number;
857
+ /**
858
+ * @nameZH 二级标题行高
859
+ * @nameEN Line height of heading level 2
860
+ * @desc h2 标签所使用的行高
861
+ * @descEN Line height of h2 tag.
862
+ * @default 1.35
863
+ */
864
+ lineHeightHeading2: number;
865
+ /**
866
+ * @nameZH 三级标题行高
867
+ * @nameEN Line height of heading level 3
868
+ * @desc h3 标签所使用的行高
869
+ * @descEN Line height of h3 tag.
870
+ * @default 1.3
871
+ */
872
+ lineHeightHeading3: number;
873
+ /**
874
+ * @nameZH 四级标题行高
875
+ * @nameEN Line height of heading level 4
876
+ * @desc h4 标签所使用的行高
877
+ * @descEN Line height of h4 tag.
878
+ * @default 1.25
879
+ */
880
+ lineHeightHeading4: number;
881
+ /**
882
+ * @nameZH 五级标题行高
883
+ * @nameEN Line height of heading level 5
884
+ * @desc h5 标签所使用的行高
885
+ * @descEN Line height of h5 tag.
886
+ * @default 1.2
887
+ */
888
+ lineHeightHeading5: number;
889
+ }
890
+
891
+ interface SizeMapToken {
892
+ /**
893
+ * @nameZH XXL
894
+ * @default 48
895
+ */
896
+ sizeXXL: number;
897
+ /**
898
+ * @nameZH XL
899
+ * @default 32
900
+ */
901
+ sizeXL: number;
902
+ /**
903
+ * @nameZH LG
904
+ * @default 24
905
+ */
906
+ sizeLG: number;
907
+ /**
908
+ * @nameZH MD
909
+ * @default 20
910
+ */
911
+ sizeMD: number;
912
+ /** Same as size by default, but could be larger in compact mode */
913
+ sizeMS: number;
914
+ /**
915
+ * @nameZH 默认
916
+ * @desc 默认尺寸
917
+ * @default 16
918
+ */
919
+ size: number;
920
+ /**
921
+ * @nameZH SM
922
+ * @default 12
923
+ */
924
+ sizeSM: number;
925
+ /**
926
+ * @nameZH XS
927
+ * @default 8
928
+ */
929
+ sizeXS: number;
930
+ /**
931
+ * @nameZH XXS
932
+ * @default 4
933
+ */
934
+ sizeXXS: number;
935
+ }
936
+ interface HeightMapToken {
937
+ /** Only Used for control inside component like Multiple Select inner selection item */
938
+ /**
939
+ * @nameZH 更小的组件高度
940
+ * @nameEN XS component height
941
+ * @desc 更小的组件高度
942
+ * @descEN XS component height
943
+ */
944
+ controlHeightXS: number;
945
+ /**
946
+ * @nameZH 较小的组件高度
947
+ * @nameEN SM component height
948
+ * @desc 较小的组件高度
949
+ * @descEN SM component height
950
+ */
951
+ controlHeightSM: number;
952
+ /**
953
+ * @nameZH 较高的组件高度
954
+ * @nameEN LG component height
955
+ * @desc 较高的组件高度
956
+ * @descEN LG component height
957
+ */
958
+ controlHeightLG: number;
959
+ }
960
+
961
+ interface StyleMapToken {
962
+ /**
963
+ * @nameZH 线宽
964
+ * @nameEN Line Width
965
+ * @desc 描边类组件的默认线宽,如 Button、Input、Select 等输入类控件。
966
+ * @descEN The default line width of the outline class components, such as Button, Input, Select, etc.
967
+ * @default 1
968
+ */
969
+ lineWidthBold: number;
970
+ /**
971
+ * @nameZH XS号圆角
972
+ * @nameEN XS Border Radius
973
+ * @desc XS号圆角,用于组件中的一些小圆角,如 Segmented 、Arrow 等一些内部圆角的组件样式中。
974
+ * @descEN XS size border radius, used in some small border radius components, such as Segmented, Arrow and other components with small border radius.
975
+ * @default 2
976
+ */
977
+ borderRadiusXS: number;
978
+ /**
979
+ * @nameZH SM号圆角
980
+ * @nameEN SM Border Radius
981
+ * @desc SM号圆角,用于组件小尺寸下的圆角,如 Button、Input、Select 等输入类控件在 small size 下的圆角
982
+ * @descEN SM size border radius, used in small size components, such as Button, Input, Select and other input components in small size
983
+ * @default 4
984
+ */
985
+ borderRadiusSM: number;
986
+ /**
987
+ * @nameZH LG号圆角
988
+ * @nameEN LG Border Radius
989
+ * @desc LG号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。
990
+ * @descEN LG size border radius, used in some large border radius components, such as Card, Modal and other components.
991
+ * @default 8
992
+ */
993
+ borderRadiusLG: number;
994
+ /**
995
+ * @nameZH XL号圆角
996
+ * @nameEN XL Border Radius
997
+ * @desc XL号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。
998
+ * @descEN XL size border radius, used in some large border radius components, such as Card, Modal and other components.
999
+ * @default 12
1000
+ */
1001
+ borderRadiusXL: number;
1002
+ /**
1003
+ * @nameZH XXL号圆角
1004
+ * @nameEN XXL Border Radius
1005
+ * @desc XXL号圆角,用于组件中的一些大圆角,如 Card、Modal 等一些组件样式。
1006
+ * @descEN XXL size border radius, used in some large border radius components, such as Card, Modal and other components.
1007
+ * @default 16
1008
+ */
1009
+ borderRadiusXXL: number;
1010
+ /**
1011
+ * @nameZH 外部圆角
1012
+ * @nameEN Outer Border Radius
1013
+ * @default 4
1014
+ * @desc 外部圆角
1015
+ * @descEN Outer border radius
1016
+ */
1017
+ borderRadiusOuter: number;
1018
+ }
1019
+
1020
+ interface OpacityMapToken {
1021
+ /**
1022
+ * @desc 图片透明度
1023
+ */
1024
+ opacityImage: number;
1025
+ opacity1: number;
1026
+ opacity2: number;
1027
+ }
1028
+
1029
+ interface CommonMapToken extends StyleMapToken, OpacityMapToken {
1030
+ /**
1031
+ * @desc 动效播放速度,快速。用于小型元素动画交互
1032
+ * @descEN Motion speed, fast speed. Used for small element animation interaction.
1033
+ */
1034
+ motionDurationFast: string;
1035
+ /**
1036
+ * @desc 动效播放速度,中速。用于中型元素动画交互
1037
+ * @descEN Motion speed, medium speed. Used for medium element animation interaction.
1038
+ */
1039
+ motionDurationMid: string;
1040
+ /**
1041
+ * @desc 动效播放速度,慢速。用于大型元素如面板动画交互
1042
+ * @descEN Motion speed, slow speed. Used for large element animation interaction.
1043
+ */
1044
+ motionDurationSlow: string;
1045
+ }
1046
+ interface MapToken extends SeedToken, LegacyColorPalettes, ColorPalettes, ColorMapToken, SizeMapToken, HeightMapToken, StyleMapToken, FontMapToken, OpacityMapToken, CommonMapToken {
1047
+ }
1048
+
1049
+ type TextDecorationType = 'none' | 'underline' | 'overline' | 'line-through' | 'blink';
1050
+ interface AliasToken extends MapToken {
1051
+ /**
1052
+ * @nameZH 内容区域背景色(悬停)
1053
+ * @nameEN Background color of content area (hover)
1054
+ * @desc 控制内容区域背景色在鼠标悬停时的样式。
1055
+ * @descEN Control the style of background color of content area when mouse hovers over it.
1056
+ */
1057
+ colorFillContentHover: string;
1058
+ /**
1059
+ * @nameZH 替代背景色
1060
+ * @nameEN Alternative background color
1061
+ * @desc 控制元素替代背景色。
1062
+ * @descEN Control the alternative background color of element.
1063
+ */
1064
+ colorFillAlter: string;
1065
+ /**
1066
+ * @nameZH 内容区域背景色
1067
+ * @nameEN Background color of content area
1068
+ * @desc 控制内容区域的背景色。
1069
+ * @descEN Control the background color of content area.
1070
+ */
1071
+ colorFillContent: string;
1072
+ /**
1073
+ * @nameZH 容器禁用态下的背景色
1074
+ * @nameEN Disabled container background color
1075
+ * @desc 控制容器在禁用状态下的背景色。
1076
+ * @descEN Control the background color of container in disabled state.
1077
+ */
1078
+ colorBgContainerDisabled: string;
1079
+ /**
1080
+ * @nameZH 文本悬停态背景色
1081
+ * @nameEN Text hover background color
1082
+ * @desc 控制文本在悬停状态下的背景色。
1083
+ * @descEN Control the background color of text in hover state.
1084
+ */
1085
+ colorBgTextHover: string;
1086
+ /**
1087
+ * @nameZH 文本激活态背景色
1088
+ * @nameEN Text active background color
1089
+ * @desc 控制文本在激活状态下的背景色。
1090
+ * @descEN Control the background color of text in active state.
1091
+ */
1092
+ colorBgTextActive: string;
1093
+ /**
1094
+ * @nameZH 背景边框颜色
1095
+ * @nameEN Background border color
1096
+ * @desc 控制元素背景边框的颜色。
1097
+ * @descEN Control the color of background border of element.
1098
+ */
1099
+ colorBorderBg: string;
1100
+ /**
1101
+ * @nameZH 分割线颜色
1102
+ * @nameEN Separator Color
1103
+ * @desc 用于作为分割线的颜色,此颜色和 colorBorderSecondary 的颜色一致,但是用的是透明色。
1104
+ * @descEN Used as the color of separator, this color is the same as colorBorderSecondary but with transparency.
1105
+ */
1106
+ colorSplit: string;
1107
+ /**
1108
+ * @nameZH 占位文本颜色
1109
+ * @nameEN Placeholder Text Color
1110
+ * @desc 控制占位文本的颜色。
1111
+ * @descEN Control the color of placeholder text.
1112
+ */
1113
+ colorTextPlaceholder: string;
1114
+ /**
1115
+ * @nameZH 禁用字体颜色
1116
+ * @nameEN Disabled Text Color
1117
+ * @desc 控制禁用状态下的字体颜色。
1118
+ * @descEN Control the color of text in disabled state.
1119
+ */
1120
+ colorTextDisabled: string;
1121
+ /**
1122
+ * @nameZH 标题字体颜色
1123
+ * @nameEN Heading Text Color
1124
+ * @desc 控制标题字体颜色。
1125
+ * @descEN Control the font color of heading.
1126
+ */
1127
+ colorTextHeading: string;
1128
+ /**
1129
+ * @nameZH 文本标签字体颜色
1130
+ * @nameEN Text label font color
1131
+ * @desc 控制文本标签字体颜色。
1132
+ * @descEN Control the font color of text label.
1133
+ */
1134
+ colorTextLabel: string;
1135
+ /**
1136
+ * @nameZH 文本描述字体颜色
1137
+ * @nameEN Text description font color
1138
+ * @desc 控制文本描述字体颜色。
1139
+ * @descEN Control the font color of text description.
1140
+ */
1141
+ colorTextDescription: string;
1142
+ /**
1143
+ * @nameZH 固定文本高亮颜色
1144
+ * @nameEN Fixed text highlight color
1145
+ * @desc 控制带背景色的文本,例如 Primary Button 组件中的文本高亮颜色。
1146
+ * @descEN Control the highlight color of text with background color, such as the text in Primary Button components.
1147
+ */
1148
+ colorTextLightSolid: string;
1149
+ /**
1150
+ /**
1151
+ * @nameZH 弱操作图标颜色
1152
+ * @nameEN Weak action icon color
1153
+ * @desc 控制弱操作图标的颜色,例如 allowClear 或 Alert 关闭按钮。
1154
+ * @descEN Weak action. Such as `allowClear` or Alert close button
1155
+ */
1156
+ colorIcon: string;
1157
+ /** */
1158
+ /**
1159
+ * @nameZH 弱操作图标悬浮态颜色
1160
+ * @nameEN Weak action icon hover color
1161
+ * @desc 控制弱操作图标在悬浮状态下的颜色,例如 allowClear 或 Alert 关闭按钮。
1162
+ * @descEN Weak action hover color. Such as `allowClear` or Alert close button
1163
+ */
1164
+ colorIconHover: string;
1165
+ /**
1166
+ * @nameZH 高亮颜色
1167
+ * @nameEN Highlight color
1168
+ * @desc 控制页面元素高亮时的颜色。
1169
+ * @descEN Control the color of page element when highlighted.
1170
+ */
1171
+ colorHighlight: string;
1172
+ /**
1173
+ * @nameZH 输入组件的 Outline 颜色
1174
+ * @nameEN Input component outline color
1175
+ * @desc 控制输入组件的外轮廓线颜色。
1176
+ * @descEN Control the outline color of input component.
1177
+ */
1178
+ controlOutline: string;
1179
+ /**
1180
+ * @nameZH 警告状态下的 Outline 颜色
1181
+ * @nameEN Warning outline color
1182
+ * @desc 控制输入组件警告状态下的外轮廓线颜色。
1183
+ * @descEN Control the outline color of input component in warning state.
1184
+ */
1185
+ colorWarningOutline: string;
1186
+ /**
1187
+ * @nameZH 错误状态下的 Outline 颜色
1188
+ * @nameEN Error outline color
1189
+ * @desc 控制输入组件错误状态下的外轮廓线颜色。
1190
+ * @descEN Control the outline color of input component in error state.
1191
+ */
1192
+ colorErrorOutline: string;
1193
+ /**
1194
+ * @nameZH 选择器、级联选择器等中的操作图标字体大小
1195
+ * @nameEN Operation icon font size in Select, Cascader, etc.
1196
+ * @desc 控制选择器、级联选择器等中的操作图标字体大小。正常情况下与 fontSizeSM 相同。
1197
+ * @descEN Control the font size of operation icon in Select, Cascader, etc. Normally same as fontSizeSM.
1198
+ */
1199
+ fontSizeIcon: number;
1200
+ /**
1201
+ * @nameZH 标题类组件(如 h1、h2、h3)或选中项的字体粗细
1202
+ * @nameEN Font weight for heading components (such as h1, h2, h3) or selected item
1203
+ * @desc 控制标题类组件(如 h1、h2、h3)或选中项的字体粗细。
1204
+ * @descEN Control the font weight of heading components (such as h1, h2, h3) or selected item.
1205
+ */
1206
+ fontWeightStrong: number;
1207
+ /**
1208
+ * @nameZH 输入组件的外轮廓线宽度
1209
+ * @nameEN Input component outline width
1210
+ * @desc 控制输入组件的外轮廓线宽度。
1211
+ * @descEN Control the outline width of input component.
1212
+ */
1213
+ controlOutlineWidth: number;
1214
+ /**
1215
+ * @nameZH 控制组件项在鼠标悬浮时的背景颜色
1216
+ * @nameEN Background color of control component item when hovering
1217
+ * @desc 控制组件项在鼠标悬浮时的背景颜色。
1218
+ * @descEN Control the background color of control component item when hovering.
1219
+ */
1220
+ controlItemBgHover: string;
1221
+ /**
1222
+ * @nameZH 控制组件项在激活状态下的背景颜色
1223
+ * @nameEN Background color of control component item when active
1224
+ * @desc 控制组件项在激活状态下的背景颜色。
1225
+ * @descEN Control the background color of control component item when active.
1226
+ */
1227
+ controlItemBgActive: string;
1228
+ /**
1229
+ * @nameZH 控制组件项在鼠标悬浮且激活状态下的背景颜色
1230
+ * @nameEN Background color of control component item when hovering and active
1231
+ * @desc 控制组件项在鼠标悬浮且激活状态下的背景颜色。
1232
+ * @descEN Control the background color of control component item when hovering and active.
1233
+ */
1234
+ controlItemBgActiveHover: string;
1235
+ /**
1236
+ * @nameZH 控制组件的交互大小
1237
+ * @nameEN Interactive size of control component
1238
+ * @desc 控制组件的交互大小。
1239
+ * @descEN Control the interactive size of control component.
1240
+ */
1241
+ controlInteractiveSize: number;
1242
+ /**
1243
+ * @nameZH 控制组件项在禁用状态下的激活背景颜色
1244
+ * @nameEN Background color of control component item when active and disabled
1245
+ * @desc 控制组件项在禁用状态下的激活背景颜色。
1246
+ * @descEN Control the background color of control component item when active and disabled.
1247
+ */
1248
+ controlItemBgActiveDisabled: string;
1249
+ /**
1250
+ * @nameZH 线条宽度(聚焦态)
1251
+ * @nameEN Line width(focus state)
1252
+ * @desc 控制线条的宽度,当组件处于聚焦态时。
1253
+ * @descEN Control the width of the line when the component is in focus state.
1254
+ */
1255
+ lineWidthFocus: number;
1256
+ /**
1257
+ * @nameZH 极小内间距
1258
+ * @nameEN Extra extra small padding
1259
+ * @desc 控制元素的极小内间距。
1260
+ * @descEN Control the extra extra small padding of the element.
1261
+ */
1262
+ paddingXXS: number;
1263
+ /**
1264
+ * @nameZH 特小内间距
1265
+ * @nameEN Extra small padding
1266
+ * @desc 控制元素的特小内间距。
1267
+ * @descEN Control the extra small padding of the element.
1268
+ */
1269
+ paddingXS: number;
1270
+ /**
1271
+ * @nameZH 小内间距
1272
+ * @nameEN Small padding
1273
+ * @desc 控制元素的小内间距。
1274
+ * @descEN Control the small padding of the element.
1275
+ */
1276
+ paddingSM: number;
1277
+ /**
1278
+ * @nameZH 内间距
1279
+ * @nameEN Padding
1280
+ * @desc 控制元素的内间距。
1281
+ * @descEN Control the padding of the element.
1282
+ */
1283
+ padding: number;
1284
+ /**
1285
+ * @nameZH 中等内间距
1286
+ * @nameEN Medium padding
1287
+ * @desc 控制元素的中等内间距。
1288
+ * @descEN Control the medium padding of the element.
1289
+ */
1290
+ paddingMD: number;
1291
+ /**
1292
+ * @nameZH 大内间距
1293
+ * @nameEN Large padding
1294
+ * @desc 控制元素的大内间距。
1295
+ * @descEN Control the large padding of the element.
1296
+ */
1297
+ paddingLG: number;
1298
+ /**
1299
+ * @nameZH 特大内间距
1300
+ * @nameEN Extra large padding
1301
+ * @desc 控制元素的特大内间距。
1302
+ * @descEN Control the extra large padding of the element.
1303
+ */
1304
+ paddingXL: number;
1305
+ /**
1306
+ * @nameZH 内容水平内间距(LG)
1307
+ * @nameEN Content horizontal padding (LG)
1308
+ * @desc 控制内容元素水平内间距,适用于大屏幕设备。
1309
+ * @descEN Control the horizontal padding of content element, suitable for large screen devices.
1310
+ */
1311
+ paddingContentHorizontalLG: number;
1312
+ /**
1313
+ * @nameZH 内容水平内间距
1314
+ * @nameEN Content horizontal padding
1315
+ * @desc 控制内容元素水平内间距。
1316
+ * @descEN Control the horizontal padding of content element.
1317
+ */
1318
+ paddingContentHorizontal: number;
1319
+ /**
1320
+ * @nameZH 内容水平内间距(SM)
1321
+ * @nameEN Content horizontal padding (SM)
1322
+ * @desc 控制内容元素水平内间距,适用于小屏幕设备。
1323
+ * @descEN Control the horizontal padding of content element, suitable for small screen devices.
1324
+ */
1325
+ paddingContentHorizontalSM: number;
1326
+ /**
1327
+ * @nameZH 内容垂直内间距(LG)
1328
+ * @nameEN Content vertical padding (LG)
1329
+ * @desc 控制内容元素垂直内间距,适用于大屏幕设备。
1330
+ * @descEN Control the vertical padding of content element, suitable for large screen devices.
1331
+ */
1332
+ paddingContentVerticalLG: number;
1333
+ /**
1334
+ * @nameZH 内容垂直内间距
1335
+ * @nameEN Content vertical padding
1336
+ * @desc 控制内容元素垂直内间距。
1337
+ * @descEN Control the vertical padding of content element.
1338
+ */
1339
+ paddingContentVertical: number;
1340
+ /**
1341
+ * @nameZH 内容垂直内间距(SM)
1342
+ * @nameEN Content vertical padding (SM)
1343
+ * @desc 控制内容元素垂直内间距,适用于小屏幕设备。
1344
+ * @descEN Control the vertical padding of content element, suitable for small screen devices.
1345
+ */
1346
+ paddingContentVerticalSM: number;
1347
+ /**
1348
+ * @nameZH 外边距 XXS
1349
+ * @nameEN Margin XXS
1350
+ * @desc 控制元素外边距,最小尺寸。
1351
+ * @descEN Control the margin of an element, with the smallest size.
1352
+ */
1353
+ marginXXS: number;
1354
+ /**
1355
+ * @nameZH 外边距 XS
1356
+ * @nameEN Margin XS
1357
+ * @desc 控制元素外边距,小尺寸。
1358
+ * @descEN Control the margin of an element, with a small size.
1359
+ */
1360
+ marginXS: number;
1361
+ /**
1362
+ * @nameZH 外边距 SM
1363
+ * @nameEN Margin SM
1364
+ * @desc 控制元素外边距,中小尺寸。
1365
+ * @descEN Control the margin of an element, with a medium-small size.
1366
+ */
1367
+ marginSM: number;
1368
+ /**
1369
+ * @nameZH 外边距
1370
+ * @nameEN Margin
1371
+ * @desc 控制元素外边距,中等尺寸。
1372
+ * @descEN Control the margin of an element, with a medium size.
1373
+ */
1374
+ margin: number;
1375
+ /**
1376
+ * @nameZH 外边距 MD
1377
+ * @nameEN Margin MD
1378
+ * @desc 控制元素外边距,中大尺寸。
1379
+ * @descEN Control the margin of an element, with a medium-large size.
1380
+ */
1381
+ marginMD: number;
1382
+ /**
1383
+ * @nameZH 外边距 LG
1384
+ * @nameEN Margin LG
1385
+ * @desc 控制元素外边距,大尺寸。
1386
+ * @descEN Control the margin of an element, with a large size.
1387
+ */
1388
+ marginLG: number;
1389
+ /**
1390
+ * @nameZH 外边距 XL
1391
+ * @nameEN Margin XL
1392
+ * @desc 控制元素外边距,超大尺寸。
1393
+ * @descEN Control the margin of an element, with an extra-large size.
1394
+ */
1395
+ marginXL: number;
1396
+ /**
1397
+ * @nameZH 外边距 XXL
1398
+ * @nameEN Margin XXL
1399
+ * @desc 控制元素外边距,最大尺寸。
1400
+ * @descEN Control the margin of an element, with the largest size.
1401
+ */
1402
+ marginXXL: number;
1403
+ /**
1404
+ * @nameZH 加载状态透明度
1405
+ * @nameEN Loading opacity
1406
+ * @desc 控制加载状态的透明度。
1407
+ * @descEN Control the opacity of the loading state.
1408
+ */
1409
+ opacityLoading: number;
1410
+ /**
1411
+ * @nameZH 一级阴影
1412
+ * @nameEN Box shadow
1413
+ * @desc 控制元素阴影样式。
1414
+ * @descEN Control the box shadow style of an element.
1415
+ */
1416
+ boxShadow: string;
1417
+ /**
1418
+ * @nameZH 二级阴影
1419
+ * @nameEN Secondary box shadow
1420
+ * @desc 控制元素二级阴影样式。
1421
+ * @descEN Control the secondary box shadow style of an element.
1422
+ */
1423
+ boxShadowSecondary: string;
1424
+ /**
1425
+ * @nameZH 三级阴影
1426
+ * @nameEN Tertiary box shadow
1427
+ * @desc 控制元素三级盒子阴影样式。
1428
+ * @descEN Control the tertiary box shadow style of an element.
1429
+ */
1430
+ boxShadowTertiary: string;
1431
+ /**
1432
+ * @nameZH 链接文本装饰
1433
+ * @nameEN Link text decoration
1434
+ * @desc 控制链接文本的装饰样式。
1435
+ * @descEN Control the text decoration style of a link.
1436
+ */
1437
+ linkDecoration: TextDecorationType;
1438
+ /**
1439
+ * @nameZH 链接鼠标悬浮时文本装饰
1440
+ * @nameEN Link text decoration on mouse hover
1441
+ * @desc 控制链接鼠标悬浮时文本的装饰样式。
1442
+ * @descEN Control the text decoration style of a link on mouse hover.
1443
+ */
1444
+ linkHoverDecoration: TextDecorationType;
1445
+ /**
1446
+ * @nameZH 链接聚焦时文本装饰
1447
+ * @nameEN Link text decoration on focus
1448
+ * @desc 控制链接聚焦时文本的装饰样式。
1449
+ * @descEN Control the text decoration style of a link on focus.
1450
+ */
1451
+ linkFocusDecoration: TextDecorationType;
1452
+ /**
1453
+ * @nameZH 控制水平内间距
1454
+ * @nameEN Control horizontal padding
1455
+ * @desc 控制元素水平内间距。
1456
+ * @descEN Control the horizontal padding of an element.
1457
+ */
1458
+ controlPaddingHorizontal: number;
1459
+ /**
1460
+ * @nameZH 控制中小尺寸水平内间距
1461
+ * @nameEN Control horizontal padding with a small-medium size
1462
+ * @desc 控制元素中小尺寸水平内间距。
1463
+ * @descEN Control the horizontal padding of an element with a small-medium size.
1464
+ */
1465
+ controlPaddingHorizontalSM: number;
1466
+ /**
1467
+ * @nameZH 屏幕宽度(像素) - 超小屏幕
1468
+ * @nameEN Screen width (pixels) - Extra small screens
1469
+ * @desc 控制超小屏幕的屏幕宽度。
1470
+ * @descEN Control the screen width of extra small screens.
1471
+ */
1472
+ screenXS: number;
1473
+ /**
1474
+ * @nameZH 屏幕宽度(像素) - 超小屏幕最小值
1475
+ * @nameEN Screen width (pixels) - Extra small screens minimum value
1476
+ * @desc 控制超小屏幕的最小宽度。
1477
+ * @descEN Control the minimum width of extra small screens.
1478
+ */
1479
+ screenXSMin: number;
1480
+ /**
1481
+ * @nameZH 屏幕宽度(像素) - 超小屏幕最大值
1482
+ * @nameEN Screen width (pixels) - Extra small screens maximum value
1483
+ * @desc 控制超小屏幕的最大宽度。
1484
+ * @descEN Control the maximum width of extra small screens.
1485
+ */
1486
+ screenXSMax: number;
1487
+ /**
1488
+ * @nameZH 屏幕宽度(像素) - 小屏幕
1489
+ * @nameEN Screen width (pixels) - Small screens
1490
+ * @desc 控制小屏幕的屏幕宽度。
1491
+ * @descEN Control the screen width of small screens.
1492
+ */
1493
+ screenSM: number;
1494
+ /**
1495
+ * @nameZH 屏幕宽度(像素) - 小屏幕最小值
1496
+ * @nameEN Screen width (pixels) - Small screens minimum value
1497
+ * @desc 控制小屏幕的最小宽度。
1498
+ * @descEN Control the minimum width of small screens.
1499
+ */
1500
+ screenSMMin: number;
1501
+ /**
1502
+ * @nameZH 屏幕宽度(像素) - 小屏幕最大值
1503
+ * @nameEN Screen width (pixels) - Small screens maximum value
1504
+ * @desc 控制小屏幕的最大宽度。
1505
+ * @descEN Control the maximum width of small screens.
1506
+ */
1507
+ screenSMMax: number;
1508
+ /**
1509
+ * @nameZH 屏幕宽度(像素) - 中等屏幕
1510
+ * @nameEN Screen width (pixels) - Medium screens
1511
+ * @desc 控制中等屏幕的屏幕宽度。
1512
+ * @descEN Control the screen width of medium screens.
1513
+ */
1514
+ screenMD: number;
1515
+ /**
1516
+ * @nameZH 屏幕宽度(像素) - 中等屏幕最小值
1517
+ * @nameEN Screen width (pixels) - Medium screens minimum value
1518
+ * @desc 控制中等屏幕的最小宽度。
1519
+ * @descEN Control the minimum width of medium screens.
1520
+ */
1521
+ screenMDMin: number;
1522
+ /**
1523
+ * @nameZH 屏幕宽度(像素) - 中等屏幕最大值
1524
+ * @nameEN Screen width (pixels) - Medium screens maximum value
1525
+ * @desc 控制中等屏幕的最大宽度。
1526
+ * @descEN Control the maximum width of medium screens.
1527
+ */
1528
+ screenMDMax: number;
1529
+ /**
1530
+ * @nameZH 屏幕宽度(像素) - 大屏幕
1531
+ * @nameEN Screen width (pixels) - Large screens
1532
+ * @desc 控制大屏幕的屏幕宽度。
1533
+ * @descEN Control the screen width of large screens.
1534
+ */
1535
+ screenLG: number;
1536
+ /**
1537
+ * @nameZH 屏幕宽度(像素) - 大屏幕最小值
1538
+ * @nameEN Screen width (pixels) - Large screens minimum value
1539
+ * @desc 控制大屏幕的最小宽度。
1540
+ * @descEN Control the minimum width of large screens.
1541
+ */
1542
+ screenLGMin: number;
1543
+ /**
1544
+ * @nameZH 屏幕宽度(像素) - 大屏幕最大值
1545
+ * @nameEN Screen width (pixels) - Large screens maximum value
1546
+ * @desc 控制大屏幕的最大宽度。
1547
+ * @descEN Control the maximum width of large screens.
1548
+ */
1549
+ screenLGMax: number;
1550
+ /**
1551
+ * @nameZH 屏幕宽度(像素) - 超大屏幕
1552
+ * @nameEN Screen width (pixels) - Extra large screens
1553
+ * @desc 控制超大屏幕的屏幕宽度。
1554
+ * @descEN Control the screen width of extra large screens.
1555
+ */
1556
+ screenXL: number;
1557
+ /**
1558
+ * @nameZH 屏幕宽度(像素) - 超大屏幕最小值
1559
+ * @nameEN Screen width (pixels) - Extra large screens minimum value
1560
+ * @desc 控制超大屏幕的最小宽度。
1561
+ * @descEN Control the minimum width of extra large screens.
1562
+ */
1563
+ screenXLMin: number;
1564
+ /**
1565
+ * @nameZH 屏幕宽度(像素) - 超大屏幕最大值
1566
+ * @nameEN Screen width (pixels) - Extra large screens maximum value
1567
+ * @desc 控制超大屏幕的最大宽度。
1568
+ * @descEN Control the maximum width of extra large screens.
1569
+ */
1570
+ screenXLMax: number;
1571
+ /**
1572
+ * @nameZH 屏幕宽度(像素) - 超超大屏幕
1573
+ * @nameEN Screen width (pixels) - Extra extra large screens
1574
+ * @desc 控制超超大屏幕的屏幕宽度。
1575
+ * @descEN Control the screen width of extra extra large screens.
1576
+ */
1577
+ screenXXL: number;
1578
+ /**
1579
+ * @nameZH 屏幕宽度(像素) - 超超大屏幕最小值
1580
+ * @nameEN Screen width (pixels) - Extra extra large screens minimum value
1581
+ * @desc 控制超超大屏幕的最小宽度。
1582
+ * @descEN Control the minimum width of extra extra large screens.
1583
+ */
1584
+ screenXXLMin: number;
1585
+ /**
1586
+ * @deprecated
1587
+ * Used for DefaultButton, Switch which has default outline
1588
+ * @desc 默认样式的 Outline 颜色
1589
+ * @descEN Default style outline color.
1590
+ */
1591
+ controlTmpOutline: string;
1592
+ /** @internal */
1593
+ boxShadowPopoverArrow: string;
1594
+ /** @internal */
1595
+ boxShadowCard: string;
1596
+ /** @internal */
1597
+ boxShadowDrawerRight: string;
1598
+ /** @internal */
1599
+ boxShadowDrawerLeft: string;
1600
+ /** @internal */
1601
+ boxShadowDrawerUp: string;
1602
+ /** @internal */
1603
+ boxShadowDrawerDown: string;
1604
+ /** @internal */
1605
+ boxShadowTabsOverflowLeft: string;
1606
+ /** @internal */
1607
+ boxShadowTabsOverflowRight: string;
1608
+ /** @internal */
1609
+ boxShadowTabsOverflowTop: string;
1610
+ /** @internal */
1611
+ boxShadowTabsOverflowBottom: string;
1612
+ }
1613
+
1614
+ type ThemeType = 'default' | 'dark' | 'compact' | 'meeting';
1615
+
1616
+ type SETTING_CONFIG_TYPE = {
1617
+ IP2_BASE_CONFIG?: BASE_CONFIG_TYPE;
1618
+ BASE_CONFIG?: BASE_CONFIG_TYPE;
1619
+ MAIN_CONFIG?: MAIN_CONFIG_TYPE;
1620
+ SYSMGMT_CONFIG?: SYSMGMT_CONFIG_TYPE;
1621
+ WATER_MARK_CONFIG?: WATER_MARK_CONFIG_TYPE;
1622
+ THEME?: THEME_TYPE;
1623
+ CUSTOM_CONFIG?: any;
1624
+ };
1625
+ type BASE_CONFIG_TYPE = {
1626
+ title?: {
1627
+ [name: string]: string;
1628
+ };
1629
+ slogan?: {
1630
+ [name: string]: string;
1631
+ };
1632
+ copyright?: string;
1633
+ };
1634
+ interface KeepAliveConfig {
1635
+ /** 是否启用 KeepAlive 功能 */
1636
+ enabled: boolean;
1637
+ /** 最大缓存页面数量(可选,用于未来扩展) */
1638
+ maxCacheSize?: number;
1639
+ /** 排除缓存的路径列表(可选,用于未来扩展) */
1640
+ exclude?: string[];
1641
+ /** 包含缓存的路径列表(可选,用于未来扩展) */
1642
+ include?: string[];
1643
+ }
1644
+ type LOGIN_CONFIG = {
1645
+ loginPathname?: string;
1646
+ noCheckPermissionsPath?: string[];
1647
+ sso?: boolean;
1648
+ ssoUrlSearchParams?: string[];
1649
+ ssoSuccessUrlkey?: string;
1650
+ ssoCheckTokenUrl?: string;
1651
+ ssoLoginUrl?: string;
1652
+ ssologinOutUrl?: string;
1653
+ loginOut?: boolean;
1654
+ loginType?: string[];
1655
+ };
1656
+ type MAIN_CONFIG_TYPE = {
1657
+ requestTimeout?: number;
1658
+ siderMenuCollapsed?: boolean;
1659
+ menuType?: 'side' | 'multi-level' | 'none';
1660
+ navType?: 'breadcrumb' | 'tabs' | 'none';
1661
+ menuHistory?: boolean;
1662
+ initialDashboardLayout?: any[];
1663
+ homePath?: string;
1664
+ loginConfig?: LOGIN_CONFIG;
1665
+ dashboard?: boolean;
1666
+ keepAlive?: KeepAliveConfig;
1667
+ functionsConfig?: {
1668
+ notification?: boolean;
1669
+ websocket?: boolean;
1670
+ locale?: boolean;
1671
+ tools?: boolean;
1672
+ transformTool?: boolean;
1673
+ ocrTool?: boolean;
1674
+ hotKeyTool?: boolean;
1675
+ fullScreenTool?: boolean;
1676
+ networkSpeedTool?: boolean;
1677
+ recordModeTool?: boolean;
1678
+ debuggerTool?: boolean;
1679
+ compactMode?: boolean;
1680
+ globalSearch?: boolean;
1681
+ meettingMode?: boolean;
1682
+ motionMode?: boolean;
1683
+ menuCollection?: boolean;
1684
+ version?: boolean;
1685
+ autoDetectVersion?: boolean;
1686
+ agentSuggest?: boolean;
1687
+ delegate?: boolean;
1688
+ uiEnabled?: boolean;
1689
+ tourEnabled?: boolean;
1690
+ userCardTypes?: {
1691
+ message?: boolean;
1692
+ phone?: boolean;
1693
+ email?: boolean;
1694
+ };
1695
+ };
1696
+ numberFormat?: string;
1697
+ timezone?: string;
1698
+ fileConfig?: {
1699
+ uploadFileSize?: number;
1700
+ tusClient?: boolean;
1701
+ tusFileSize?: number;
1702
+ };
1703
+ };
1704
+ type SYSMGMT_CONFIG_TYPE = {
1705
+ accountConfig: {
1706
+ genderCodeType: string;
1707
+ ediable?: boolean;
1708
+ updatePassword?: boolean;
1709
+ storageClear?: boolean;
1710
+ staffNumberFormat?: RegExp;
1711
+ };
1712
+ workflowConfig?: {
1713
+ onStartAutoSelectOwner?: boolean;
1714
+ onStartAutoSelectSkipStep?: boolean;
1715
+ onApproveAutoSelectOwner?: boolean;
1716
+ onApproveAutoSelectSkipStep?: boolean;
1717
+ showWorkingKeepTime?: boolean;
1718
+ todoUserTemplate?: 'multiple' | 'single';
1719
+ showActionOrder?: string[];
1720
+ showSkipTask?: boolean;
1721
+ showUndoTaskBtn?: boolean;
1722
+ showStopTaskBtn?: boolean;
1723
+ };
1724
+ microservicenodes?: {
1725
+ isShowJFR?: boolean;
1726
+ isShowCheck?: boolean;
1727
+ isShowJar?: boolean;
1728
+ isShowDruid?: boolean;
1729
+ };
1730
+ approveRouteMap?: {
1731
+ [name: string]: string;
1732
+ };
1733
+ };
1734
+ type WATER_MARK_CONFIG_TYPE = {
1735
+ fontSize?: number;
1736
+ lightColor?: string;
1737
+ darkColor?: string;
1738
+ alpha?: number;
1739
+ rotate?: number;
1740
+ text?: string;
1741
+ padding?: number;
1742
+ showTime?: boolean;
1743
+ status?: 'none' | 'guest' | 'company' | 'custom';
1744
+ };
1745
+ type THEME_TYPE = {
1746
+ themeType?: ThemeType;
1747
+ token?: AliasToken;
1748
+ components?: any;
1749
+ themeColor?: string;
1750
+ themeMode?: 'light' | 'dark' | 'auto';
1751
+ glassEffect?: boolean;
1752
+ glassBgImage?: string;
1753
+ gridConfig?: {
1754
+ bordered?: boolean;
1755
+ striped?: boolean;
1756
+ editTrigger?: 'click' | 'dblclick';
1757
+ viewMode?: 'single' | 'multiple';
1758
+ filterApplyMode?: 'manual' | 'auto';
1759
+ groupStickyRow?: boolean;
1760
+ enableClickSelection?: boolean;
1761
+ };
1762
+ };
1763
+
1764
+ interface Route {
1765
+ path: string;
1766
+ title: string;
1767
+ mpaKey?: string;
1768
+ parentPath?: string | string[];
1769
+ children?: Route[];
1770
+ [name: string]: any;
1771
+ }
1772
+ interface ConfigMFA {
1773
+ entry?: string;
1774
+ subEntry?: string;
1775
+ htmlTemplatePath?: string | {
1776
+ [name: string]: string;
1777
+ };
1778
+ port?: number;
1779
+ publicPath?: string[] | string;
1780
+ name?: string;
1781
+ alias?: {
1782
+ [name: string]: string;
1783
+ };
1784
+ base?: string;
1785
+ pages?: {
1786
+ name: string;
1787
+ entry?: string;
1788
+ path: string | string[];
1789
+ htmlTemplatePath?: string;
1790
+ publicPath?: string[] | string;
1791
+ port: number;
1792
+ base?: string;
1793
+ url?: string;
1794
+ }[];
1795
+ }
1796
+ type FrameworkType = 'react' | 'vue';
1797
+ interface GantCustomConfig {
1798
+ name?: string;
1799
+ base?: string;
1800
+ mfa?: ConfigMFA;
1801
+ library?: boolean;
1802
+ locales?: string[];
1803
+ packages?: {
1804
+ [name: string]: string;
1805
+ };
1806
+ htmlTemplatePath?: string;
1807
+ routes?: Route | Route[];
1808
+ outputPathDir?: string;
1809
+ publicPathDir?: string;
1810
+ microServiceMap?: any;
1811
+ customHistoryApiFallback?: boolean | connect_history_api_fallback.Options | undefined;
1812
+ define?: any;
1813
+ provide?: Record<string, string | string[]>;
1814
+ setting?: SETTING_CONFIG_TYPE;
1815
+ /** Specify target framework: 'react' or 'vue' */
1816
+ framework?: FrameworkType;
1817
+ compression?: boolean;
1818
+ /** 复制文件规则,构建后将 from 目录的内容复制到 to 目录 */
1819
+ copy?: {
1820
+ from: string;
1821
+ to: string;
1822
+ }[];
1823
+ terserOptions?: any;
1824
+ }
1825
+ interface GantUserConfig extends Configuration, GantCustomConfig {
1826
+ devServer?: Configuration$1;
1827
+ }
1828
+ declare enum Env {
1829
+ development = "development",
1830
+ production = "production",
1831
+ test = "test"
1832
+ }
1833
+ type GantTypes = 'build' | 'development' | 'analyzer';
1834
+
1835
+ export { Env };
1836
+ export type { BASE_CONFIG_TYPE, ConfigMFA, FrameworkType, GantCustomConfig, GantTypes, GantUserConfig, KeepAliveConfig, LOGIN_CONFIG, MAIN_CONFIG_TYPE, Route, SETTING_CONFIG_TYPE, SYSMGMT_CONFIG_TYPE, THEME_TYPE, WATER_MARK_CONFIG_TYPE };