@ant-design/agentic-ui 2.31.1 → 2.31.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.
|
@@ -328,8 +328,7 @@ var PlaceholderContent = function PlaceholderContent(param) {
|
|
|
328
328
|
tooltip: file.name
|
|
329
329
|
},
|
|
330
330
|
style: {
|
|
331
|
-
font: 'var(--font-text-h6-base)'
|
|
332
|
-
color: 'var(--color-gray-text-default)'
|
|
331
|
+
font: 'var(--font-text-h6-base)'
|
|
333
332
|
}
|
|
334
333
|
}, file.name)), (fileTypeProcessor.inferFileType(file).displayType || file.size || file.lastModified) && /*#__PURE__*/ React.createElement("div", {
|
|
335
334
|
className: classNames("".concat(filePrefixCls, "-item-details"), hashId)
|
|
@@ -85,7 +85,7 @@ var genStyle = function genStyle(token) {
|
|
|
85
85
|
})), // 展开收起图标
|
|
86
86
|
_define_property(_obj, "&-toggle-icon", {
|
|
87
87
|
fontSize: 'var(--font-size-sm)',
|
|
88
|
-
color:
|
|
88
|
+
color: token.colorTextTertiary || token.colorTextSecondary,
|
|
89
89
|
transition: 'transform 0.2s ease'
|
|
90
90
|
}), // 文件类型图标
|
|
91
91
|
_define_property(_obj, "&-type-icon", {
|
|
@@ -176,7 +176,7 @@ var genStyle = function genStyle(token) {
|
|
|
176
176
|
}), // 文件名
|
|
177
177
|
_define_property(_obj3, "&-name", {
|
|
178
178
|
fontSize: '13px',
|
|
179
|
-
color:
|
|
179
|
+
color: token.colorText,
|
|
180
180
|
fontWeight: 400,
|
|
181
181
|
lineHeight: 1.4,
|
|
182
182
|
wordBreak: 'break-all'
|
|
@@ -200,7 +200,7 @@ var genStyle = function genStyle(token) {
|
|
|
200
200
|
}), // 分割符
|
|
201
201
|
_define_property(_obj3, "&-separator", {
|
|
202
202
|
fontSize: 'var(--font-size-xs)',
|
|
203
|
-
color:
|
|
203
|
+
color: token.colorSplit,
|
|
204
204
|
margin: '0 4px'
|
|
205
205
|
}), _define_property(_obj3, "&-actions", (_obj1 = {
|
|
206
206
|
display: 'flex',
|
|
@@ -235,7 +235,7 @@ var genStyle = function genStyle(token) {
|
|
|
235
235
|
height: '100%',
|
|
236
236
|
marginLeft: '-12px',
|
|
237
237
|
marginRight: '-12px',
|
|
238
|
-
background:
|
|
238
|
+
background: token.colorBgContainer,
|
|
239
239
|
position: 'relative'
|
|
240
240
|
}, // 预览头部
|
|
241
241
|
_define_property(_obj5, "&-header", {
|
|
@@ -243,8 +243,8 @@ var genStyle = function genStyle(token) {
|
|
|
243
243
|
alignItems: 'center',
|
|
244
244
|
gap: '4px',
|
|
245
245
|
padding: '8px 12px',
|
|
246
|
-
borderBottom:
|
|
247
|
-
background:
|
|
246
|
+
borderBottom: "1px solid ".concat(token.colorBorderSecondary || token.colorBorder),
|
|
247
|
+
background: token.colorBgContainer,
|
|
248
248
|
flexShrink: 0,
|
|
249
249
|
position: 'sticky',
|
|
250
250
|
top: 0,
|
|
@@ -259,11 +259,11 @@ var genStyle = function genStyle(token) {
|
|
|
259
259
|
border: 'none',
|
|
260
260
|
background: 'none',
|
|
261
261
|
cursor: 'pointer',
|
|
262
|
-
color:
|
|
262
|
+
color: token.colorTextTertiary || token.colorTextSecondary,
|
|
263
263
|
transition: 'all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1)',
|
|
264
|
-
borderRadius:
|
|
264
|
+
borderRadius: token.borderRadiusSM || 4,
|
|
265
265
|
'&:hover': {
|
|
266
|
-
background:
|
|
266
|
+
background: token.colorFillTertiary || token.colorFillSecondary
|
|
267
267
|
}
|
|
268
268
|
}), // 返回图标
|
|
269
269
|
_define_property(_obj5, "&-back-icon", {
|
|
@@ -295,16 +295,16 @@ var genStyle = function genStyle(token) {
|
|
|
295
295
|
}), // 生成时间
|
|
296
296
|
_define_property(_obj5, "&-generate-time", {
|
|
297
297
|
fontSize: '12px',
|
|
298
|
-
color:
|
|
298
|
+
color: token.colorTextTertiary || token.colorTextSecondary
|
|
299
299
|
}), _define_property(_obj5, "&-actions", (_obj4 = {
|
|
300
300
|
display: 'flex',
|
|
301
301
|
alignItems: 'center',
|
|
302
302
|
gap: '8px'
|
|
303
303
|
}, // 保持预览头部操作按钮的图标颜色一致
|
|
304
304
|
_define_property(_obj4, "".concat(token.antCls, "-btn, ").concat(token.antCls, "-btn .anticon"), {
|
|
305
|
-
color:
|
|
305
|
+
color: token.colorTextTertiary || token.colorTextSecondary
|
|
306
306
|
}), _define_property(_obj4, "".concat(token.antCls, "-btn:hover, ").concat(token.antCls, "-btn:focus, ").concat(token.antCls, "-btn:active, ").concat(token.antCls, "-btn:hover .anticon, ").concat(token.antCls, "-btn:focus .anticon, ").concat(token.antCls, "-btn:active .anticon"), {
|
|
307
|
-
color:
|
|
307
|
+
color: token.colorTextTertiary || token.colorTextSecondary
|
|
308
308
|
}), _obj4)), // 预览内容区域
|
|
309
309
|
_define_property(_obj5, "&-content", {
|
|
310
310
|
flex: 1,
|
|
@@ -350,7 +350,7 @@ var genStyle = function genStyle(token) {
|
|
|
350
350
|
left: 0,
|
|
351
351
|
height: 48,
|
|
352
352
|
right: 0,
|
|
353
|
-
background:
|
|
353
|
+
background: "linear-gradient(to bottom, ".concat(token.colorBgContainer, ", transparent)"),
|
|
354
354
|
zIndex: 1,
|
|
355
355
|
pointerEvents: 'none'
|
|
356
356
|
},
|
|
@@ -361,7 +361,7 @@ var genStyle = function genStyle(token) {
|
|
|
361
361
|
left: 0,
|
|
362
362
|
height: 48,
|
|
363
363
|
right: 0,
|
|
364
|
-
background:
|
|
364
|
+
background: "linear-gradient(to top, ".concat(token.colorBgContainer, ", transparent)"),
|
|
365
365
|
zIndex: 1,
|
|
366
366
|
pointerEvents: 'none'
|
|
367
367
|
}
|
|
@@ -382,7 +382,7 @@ var genStyle = function genStyle(token) {
|
|
|
382
382
|
}), // 占位符内容
|
|
383
383
|
_define_property(_obj5, "&-placeholder-content", {
|
|
384
384
|
textAlign: 'center',
|
|
385
|
-
color:
|
|
385
|
+
color: token.colorTextTertiary || token.colorTextSecondary,
|
|
386
386
|
p: {
|
|
387
387
|
margin: '8px 0',
|
|
388
388
|
fontSize: '13px'
|
|
@@ -70,7 +70,7 @@ var genStyle = function genStyle(token) {
|
|
|
70
70
|
height: '100%',
|
|
71
71
|
minHeight: '240px',
|
|
72
72
|
border: 'none',
|
|
73
|
-
background:
|
|
73
|
+
background: token.colorBgContainer
|
|
74
74
|
}), _define_property(_obj1, "".concat(token.componentCls, "-overlay"), (_obj = {
|
|
75
75
|
position: 'absolute',
|
|
76
76
|
inset: 0,
|
|
@@ -79,10 +79,11 @@ var genStyle = function genStyle(token) {
|
|
|
79
79
|
justifyContent: 'center',
|
|
80
80
|
zIndex: 1
|
|
81
81
|
}, _define_property(_obj, "&--loading", {
|
|
82
|
-
|
|
82
|
+
// 与 antd 遮罩一致,随亮/暗主题变化
|
|
83
|
+
background: token.colorBgMask
|
|
83
84
|
}), _define_property(_obj, "&--error", {
|
|
84
|
-
background:
|
|
85
|
-
color:
|
|
85
|
+
background: token.colorErrorBg,
|
|
86
|
+
color: token.colorError
|
|
86
87
|
}), _obj)), _define_property(_obj1, "".concat(token.componentCls, "-empty"), {
|
|
87
88
|
display: 'flex',
|
|
88
89
|
alignItems: 'center',
|