flowcloudai-ui 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +378 -483
- package/dist/index.d.ts +96 -16
- package/dist/index.js +830 -340
- package/package.json +41 -42
- package/dist/index.cjs +0 -2837
- package/dist/index.d.cts +0 -602
package/dist/index.css
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/* src/components/Button/Button.css */
|
|
2
2
|
.fc-btn {
|
|
3
3
|
--btn-bg: transparent;
|
|
4
|
-
--btn-bg-hover: var(--fc-color-bg-secondary, #
|
|
4
|
+
--btn-bg-hover: var(--fc-color-bg-secondary, #c3c4c6);
|
|
5
5
|
--btn-bg-active: var(--fc-color-bg-tertiary, #e5e7eb);
|
|
6
6
|
--btn-color: var(--fc-color-text, #111827);
|
|
7
7
|
--btn-color-hover: var(--btn-color);
|
|
8
8
|
--btn-color-active: var(--fc-color-text-secondary, #6b7280);
|
|
9
9
|
--btn-border: transparent;
|
|
10
10
|
--btn-border-hover: transparent;
|
|
11
|
+
--btn-radius: var(--fc-radius-md, 8px);
|
|
11
12
|
display: inline-flex;
|
|
12
13
|
align-items: center;
|
|
13
14
|
justify-content: center;
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
font-size: var(--fc-font-size-md, 16px);
|
|
18
19
|
font-weight: var(--fc-font-weight-medium, 500);
|
|
19
20
|
line-height: var(--fc-line-height-tight, 1.25);
|
|
20
|
-
border-radius: var(--
|
|
21
|
+
border-radius: var(--btn-radius);
|
|
21
22
|
border: 1px solid var(--btn-border);
|
|
22
23
|
cursor: pointer;
|
|
23
24
|
text-decoration: none;
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
user-select: none;
|
|
26
27
|
background-color: var(--btn-bg);
|
|
27
28
|
color: var(--btn-color);
|
|
28
|
-
transition: all 0.
|
|
29
|
+
transition: all 0.1s ease;
|
|
29
30
|
}
|
|
30
31
|
.fc-btn:hover:not(:disabled):not(.is-disabled) {
|
|
31
32
|
background-color: var(--btn-bg-hover);
|
|
@@ -150,27 +151,45 @@
|
|
|
150
151
|
.fc-btn--xs {
|
|
151
152
|
padding: var(--fc-space-xs, 4px) var(--fc-space-sm, 8px);
|
|
152
153
|
font-size: var(--fc-font-size-xs, 12px);
|
|
153
|
-
|
|
154
|
+
--btn-radius: var(--fc-radius-sm, 4px);
|
|
154
155
|
}
|
|
155
156
|
.fc-btn--sm {
|
|
156
157
|
padding: var(--fc-space-sm, 8px) var(--fc-space-md, 12px);
|
|
157
158
|
font-size: var(--fc-font-size-sm, 14px);
|
|
158
|
-
|
|
159
|
+
--btn-radius: var(--fc-radius-sm, 4px);
|
|
159
160
|
}
|
|
160
161
|
.fc-btn--md {
|
|
161
162
|
padding: var(--fc-space-md, 12px) var(--fc-space-lg, 16px);
|
|
162
163
|
font-size: var(--fc-font-size-md, 16px);
|
|
163
|
-
|
|
164
|
+
--btn-radius: var(--fc-radius-md, 8px);
|
|
164
165
|
}
|
|
165
166
|
.fc-btn--lg {
|
|
166
167
|
padding: var(--fc-space-lg, 16px) var(--fc-space-xl, 20px);
|
|
167
168
|
font-size: var(--fc-font-size-lg, 18px);
|
|
168
|
-
|
|
169
|
+
--btn-radius: var(--fc-radius-lg, 12px);
|
|
169
170
|
}
|
|
170
171
|
.fc-btn--xl {
|
|
171
172
|
padding: var(--fc-space-xl, 20px) var(--fc-space-2xl, 24px);
|
|
172
173
|
font-size: var(--fc-font-size-xl, 20px);
|
|
173
|
-
|
|
174
|
+
--btn-radius: var(--fc-radius-lg, 12px);
|
|
175
|
+
}
|
|
176
|
+
.fc-btn--radius-none {
|
|
177
|
+
--btn-radius: 0px;
|
|
178
|
+
}
|
|
179
|
+
.fc-btn--radius-sm {
|
|
180
|
+
--btn-radius: var(--fc-radius-sm, 4px);
|
|
181
|
+
}
|
|
182
|
+
.fc-btn--radius-md {
|
|
183
|
+
--btn-radius: var(--fc-radius-md, 8px);
|
|
184
|
+
}
|
|
185
|
+
.fc-btn--radius-lg {
|
|
186
|
+
--btn-radius: var(--fc-radius-lg, 12px);
|
|
187
|
+
}
|
|
188
|
+
.fc-btn--radius-xl {
|
|
189
|
+
--btn-radius: var(--fc-radius-xl, 16px);
|
|
190
|
+
}
|
|
191
|
+
.fc-btn--radius-full {
|
|
192
|
+
--btn-radius: var(--fc-radius-full, 9999px);
|
|
174
193
|
}
|
|
175
194
|
.fc-btn--square,
|
|
176
195
|
.fc-btn--circle,
|
|
@@ -270,7 +289,7 @@
|
|
|
270
289
|
width: var(--track-w);
|
|
271
290
|
height: var(--track-h);
|
|
272
291
|
background-color: var(--check-track-bg, var(--fc-color-bg-tertiary));
|
|
273
|
-
border-radius: var(--fc-radius-full);
|
|
292
|
+
border-radius: var(--check-radius, var(--fc-radius-full));
|
|
274
293
|
transition: background-color var(--fc-transition);
|
|
275
294
|
}
|
|
276
295
|
.fc-check--checked .fc-check__track {
|
|
@@ -289,10 +308,28 @@
|
|
|
289
308
|
align-items: center;
|
|
290
309
|
justify-content: center;
|
|
291
310
|
background-color: var(--check-thumb-bg, var(--fc-color-bg-elevated));
|
|
292
|
-
border-radius: var(--fc-radius-full);
|
|
311
|
+
border-radius: var(--check-radius, var(--fc-radius-full));
|
|
293
312
|
box-shadow: var(--fc-shadow-sm);
|
|
294
313
|
transition: transform var(--fc-transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
295
314
|
}
|
|
315
|
+
.fc-check--radius-none {
|
|
316
|
+
--check-radius: 2px;
|
|
317
|
+
}
|
|
318
|
+
.fc-check--radius-sm {
|
|
319
|
+
--check-radius: var(--fc-radius-sm, 4px);
|
|
320
|
+
}
|
|
321
|
+
.fc-check--radius-md {
|
|
322
|
+
--check-radius: var(--fc-radius-md, 8px);
|
|
323
|
+
}
|
|
324
|
+
.fc-check--radius-lg {
|
|
325
|
+
--check-radius: var(--fc-radius-lg, 12px);
|
|
326
|
+
}
|
|
327
|
+
.fc-check--radius-xl {
|
|
328
|
+
--check-radius: var(--fc-radius-xl, 16px);
|
|
329
|
+
}
|
|
330
|
+
.fc-check--radius-full {
|
|
331
|
+
--check-radius: var(--fc-radius-full, 9999px);
|
|
332
|
+
}
|
|
296
333
|
.fc-check--checked .fc-check__thumb {
|
|
297
334
|
transform: translateX(calc(var(--track-w) - var(--track-h)));
|
|
298
335
|
}
|
|
@@ -403,7 +440,8 @@
|
|
|
403
440
|
-ms-overflow-style: none;
|
|
404
441
|
}
|
|
405
442
|
.fc-roll--thumb-hide::-webkit-scrollbar {
|
|
406
|
-
|
|
443
|
+
width: 0;
|
|
444
|
+
height: 0;
|
|
407
445
|
}
|
|
408
446
|
.fc-roll--thumb-auto:hover {
|
|
409
447
|
--roll-thumb: var(--roll-thumb-hover);
|
|
@@ -465,7 +503,12 @@
|
|
|
465
503
|
.fc-sidebar__menu {
|
|
466
504
|
flex: 1;
|
|
467
505
|
overflow-y: auto;
|
|
506
|
+
min-height: 0;
|
|
507
|
+
padding: var(--fc-space-sm, 8px) 0;
|
|
508
|
+
}
|
|
509
|
+
.fc-sidebar__footer {
|
|
468
510
|
padding: var(--fc-space-sm, 8px) 0;
|
|
511
|
+
border-top: 1px solid var(--fc-color-border);
|
|
469
512
|
}
|
|
470
513
|
.fc-sidebar__item {
|
|
471
514
|
display: flex;
|
|
@@ -553,7 +596,7 @@
|
|
|
553
596
|
flex: 1;
|
|
554
597
|
background: var(--fc-color-bg);
|
|
555
598
|
border: 1px solid var(--fc-color-border);
|
|
556
|
-
border-radius: var(--fc-radius-md);
|
|
599
|
+
border-radius: var(--input-radius, var(--fc-radius-md));
|
|
557
600
|
transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
|
|
558
601
|
}
|
|
559
602
|
.fc-input__field {
|
|
@@ -691,13 +734,31 @@
|
|
|
691
734
|
align-items: center;
|
|
692
735
|
}
|
|
693
736
|
.fc-input__addon--before {
|
|
694
|
-
border-radius: var(--fc-radius-md) 0 0 var(--fc-radius-md);
|
|
737
|
+
border-radius: var(--input-radius, var(--fc-radius-md)) 0 0 var(--input-radius, var(--fc-radius-md));
|
|
695
738
|
border-right: none;
|
|
696
739
|
}
|
|
697
740
|
.fc-input__addon--after {
|
|
698
|
-
border-radius: 0 var(--fc-radius-md) var(--fc-radius-md) 0;
|
|
741
|
+
border-radius: 0 var(--input-radius, var(--fc-radius-md)) var(--input-radius, var(--fc-radius-md)) 0;
|
|
699
742
|
border-left: none;
|
|
700
743
|
}
|
|
744
|
+
.fc-input--radius-none {
|
|
745
|
+
--input-radius: 0px;
|
|
746
|
+
}
|
|
747
|
+
.fc-input--radius-sm {
|
|
748
|
+
--input-radius: var(--fc-radius-sm, 4px);
|
|
749
|
+
}
|
|
750
|
+
.fc-input--radius-md {
|
|
751
|
+
--input-radius: var(--fc-radius-md, 8px);
|
|
752
|
+
}
|
|
753
|
+
.fc-input--radius-lg {
|
|
754
|
+
--input-radius: var(--fc-radius-lg, 12px);
|
|
755
|
+
}
|
|
756
|
+
.fc-input--radius-xl {
|
|
757
|
+
--input-radius: var(--fc-radius-xl, 16px);
|
|
758
|
+
}
|
|
759
|
+
.fc-input--radius-full {
|
|
760
|
+
--input-radius: var(--fc-radius-full, 9999px);
|
|
761
|
+
}
|
|
701
762
|
.fc-input--addon-before .fc-input__wrapper {
|
|
702
763
|
border-top-left-radius: 0;
|
|
703
764
|
border-bottom-left-radius: 0;
|
|
@@ -890,7 +951,7 @@
|
|
|
890
951
|
padding: var(--fc-space-md) var(--fc-space-lg);
|
|
891
952
|
background: var(--select-trigger-bg);
|
|
892
953
|
border: 1px solid var(--select-trigger-border);
|
|
893
|
-
border-radius: var(--fc-radius-md);
|
|
954
|
+
border-radius: var(--select-radius, var(--fc-radius-md));
|
|
894
955
|
cursor: pointer;
|
|
895
956
|
transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
|
|
896
957
|
}
|
|
@@ -924,11 +985,29 @@
|
|
|
924
985
|
margin-top: var(--fc-space-xs);
|
|
925
986
|
background: var(--fc-color-bg-elevated);
|
|
926
987
|
border: 1px solid var(--fc-color-border);
|
|
927
|
-
border-radius: var(--fc-radius-md);
|
|
988
|
+
border-radius: var(--select-radius, var(--fc-radius-md));
|
|
928
989
|
box-shadow: var(--fc-shadow-lg);
|
|
929
990
|
z-index: var(--fc-z-dropdown);
|
|
930
991
|
overflow: hidden;
|
|
931
992
|
}
|
|
993
|
+
.fc-select--radius-none {
|
|
994
|
+
--select-radius: 0px;
|
|
995
|
+
}
|
|
996
|
+
.fc-select--radius-sm {
|
|
997
|
+
--select-radius: var(--fc-radius-sm, 4px);
|
|
998
|
+
}
|
|
999
|
+
.fc-select--radius-md {
|
|
1000
|
+
--select-radius: var(--fc-radius-md, 8px);
|
|
1001
|
+
}
|
|
1002
|
+
.fc-select--radius-lg {
|
|
1003
|
+
--select-radius: var(--fc-radius-lg, 12px);
|
|
1004
|
+
}
|
|
1005
|
+
.fc-select--radius-xl {
|
|
1006
|
+
--select-radius: var(--fc-radius-xl, 16px);
|
|
1007
|
+
}
|
|
1008
|
+
.fc-select--radius-full {
|
|
1009
|
+
--select-radius: var(--fc-radius-full, 9999px);
|
|
1010
|
+
}
|
|
932
1011
|
.fc-select__search {
|
|
933
1012
|
padding: var(--fc-space-sm);
|
|
934
1013
|
border-bottom: 1px solid var(--fc-color-border-light);
|
|
@@ -1285,208 +1364,31 @@
|
|
|
1285
1364
|
|
|
1286
1365
|
/* src/components/Avatar/Avatar.css */
|
|
1287
1366
|
.ui-avatar {
|
|
1288
|
-
--avatar-bg: var(--fc-color-primary, #6366f1);
|
|
1289
|
-
--avatar-color: var(--fc-color-text-on-primary, #ffffff);
|
|
1290
|
-
--avatar-empty-bg: var(--fc-color-bg-secondary, #f3f4f6);
|
|
1291
|
-
--avatar-empty-color: var(--fc-color-text-tertiary, #9ca3af);
|
|
1292
|
-
--avatar-border: var(--fc-color-bg, #ffffff);
|
|
1293
|
-
--avatar-shadow: var(--fc-shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
|
|
1294
|
-
--avatar-hover-filter: brightness(0.95);
|
|
1295
|
-
--avatar-active-filter: brightness(0.9);
|
|
1296
|
-
--avatar-focus-ring: 0 0 0 2px var(--fc-color-bg, #fff), 0 0 0 4px var(--fc-color-primary, #6366f1);
|
|
1297
1367
|
display: inline-flex;
|
|
1298
1368
|
align-items: center;
|
|
1299
1369
|
justify-content: center;
|
|
1300
1370
|
flex-shrink: 0;
|
|
1301
|
-
background-color:
|
|
1302
|
-
color:
|
|
1303
|
-
font-weight: 600;
|
|
1304
|
-
line-height: 1;
|
|
1305
|
-
user-select: none;
|
|
1371
|
+
background-color: #e5e7eb;
|
|
1372
|
+
color: #6b7280;
|
|
1306
1373
|
overflow: hidden;
|
|
1307
|
-
position: relative;
|
|
1308
|
-
transition:
|
|
1309
|
-
transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
1310
|
-
filter 0.2s cubic-bezier(0.4, 0, 0.2, 1),
|
|
1311
|
-
box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
1312
1374
|
}
|
|
1313
1375
|
.ui-avatar-img {
|
|
1314
1376
|
width: 100%;
|
|
1315
1377
|
height: 100%;
|
|
1316
1378
|
object-fit: cover;
|
|
1317
1379
|
}
|
|
1318
|
-
.ui-avatar-text,
|
|
1319
1380
|
.ui-avatar-placeholder {
|
|
1320
1381
|
display: flex;
|
|
1321
1382
|
align-items: center;
|
|
1322
1383
|
justify-content: center;
|
|
1323
1384
|
width: 100%;
|
|
1324
1385
|
height: 100%;
|
|
1325
|
-
text-transform: uppercase;
|
|
1326
|
-
}
|
|
1327
|
-
.ui-avatar-placeholder svg {
|
|
1328
|
-
color: var(--avatar-empty-color);
|
|
1329
|
-
}
|
|
1330
|
-
.ui-avatar-xs,
|
|
1331
|
-
.ui-avatar-sm,
|
|
1332
|
-
.ui-avatar-md,
|
|
1333
|
-
.ui-avatar-lg,
|
|
1334
|
-
.ui-avatar-xl {
|
|
1335
|
-
width: var(--avatar-size);
|
|
1336
|
-
height: var(--avatar-size);
|
|
1337
|
-
font-size: var(--avatar-font-size);
|
|
1338
|
-
}
|
|
1339
|
-
.ui-avatar-xs {
|
|
1340
|
-
--avatar-size: 20px;
|
|
1341
|
-
--avatar-font-size: 10px;
|
|
1342
|
-
}
|
|
1343
|
-
.ui-avatar-sm {
|
|
1344
|
-
--avatar-size: 28px;
|
|
1345
|
-
--avatar-font-size: 12px;
|
|
1346
|
-
}
|
|
1347
|
-
.ui-avatar-md {
|
|
1348
|
-
--avatar-size: 40px;
|
|
1349
|
-
--avatar-font-size: 16px;
|
|
1350
|
-
}
|
|
1351
|
-
.ui-avatar-lg {
|
|
1352
|
-
--avatar-size: 56px;
|
|
1353
|
-
--avatar-font-size: 20px;
|
|
1354
|
-
}
|
|
1355
|
-
.ui-avatar-xl {
|
|
1356
|
-
--avatar-size: 72px;
|
|
1357
|
-
--avatar-font-size: 28px;
|
|
1358
1386
|
}
|
|
1359
1387
|
.ui-avatar-circle {
|
|
1360
1388
|
border-radius: 50%;
|
|
1361
1389
|
}
|
|
1362
1390
|
.ui-avatar-square {
|
|
1363
|
-
border-radius:
|
|
1364
|
-
}
|
|
1365
|
-
.ui-avatar-square.ui-avatar-xs {
|
|
1366
|
-
border-radius: var(--fc-radius-sm, 4px);
|
|
1367
|
-
}
|
|
1368
|
-
.ui-avatar-square.ui-avatar-sm,
|
|
1369
|
-
.ui-avatar-square.ui-avatar-md {
|
|
1370
|
-
border-radius: var(--fc-radius-md, 6px);
|
|
1371
|
-
}
|
|
1372
|
-
.ui-avatar-square.ui-avatar-lg,
|
|
1373
|
-
.ui-avatar-square.ui-avatar-xl {
|
|
1374
|
-
border-radius: var(--fc-radius-lg, 10px);
|
|
1375
|
-
}
|
|
1376
|
-
.ui-avatar-bordered {
|
|
1377
|
-
border: 2px solid var(--avatar-border);
|
|
1378
|
-
box-shadow: var(--avatar-shadow);
|
|
1379
|
-
}
|
|
1380
|
-
.ui-avatar-clickable {
|
|
1381
|
-
cursor: pointer;
|
|
1382
|
-
}
|
|
1383
|
-
.ui-avatar-clickable:hover:not(:disabled),
|
|
1384
|
-
.ui-avatar-clickable:active:not(:disabled) {
|
|
1385
|
-
filter: var(--avatar-hover-filter);
|
|
1386
|
-
}
|
|
1387
|
-
.ui-avatar-clickable:hover:not(:disabled) {
|
|
1388
|
-
transform: translateY(-1px);
|
|
1389
|
-
box-shadow: var(--fc-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
|
|
1390
|
-
}
|
|
1391
|
-
.ui-avatar-clickable:active:not(:disabled) {
|
|
1392
|
-
transform: scale(0.95);
|
|
1393
|
-
filter: var(--avatar-active-filter);
|
|
1394
|
-
}
|
|
1395
|
-
.ui-avatar-clickable:focus-visible {
|
|
1396
|
-
outline: none;
|
|
1397
|
-
box-shadow: var(--avatar-focus-ring);
|
|
1398
|
-
}
|
|
1399
|
-
.ui-avatar-empty {
|
|
1400
|
-
background-color: var(--avatar-empty-bg);
|
|
1401
|
-
color: var(--avatar-empty-color);
|
|
1402
|
-
}
|
|
1403
|
-
.ui-avatar-loading {
|
|
1404
|
-
overflow: hidden;
|
|
1405
|
-
}
|
|
1406
|
-
.ui-avatar-loading::after {
|
|
1407
|
-
content: "";
|
|
1408
|
-
position: absolute;
|
|
1409
|
-
top: 0;
|
|
1410
|
-
left: 0;
|
|
1411
|
-
width: 100%;
|
|
1412
|
-
height: 100%;
|
|
1413
|
-
background:
|
|
1414
|
-
linear-gradient(
|
|
1415
|
-
90deg,
|
|
1416
|
-
transparent,
|
|
1417
|
-
rgba(255, 255, 255, 0.3),
|
|
1418
|
-
transparent);
|
|
1419
|
-
animation: avatar-shimmer 1.5s ease-in-out infinite;
|
|
1420
|
-
will-change: transform;
|
|
1421
|
-
}
|
|
1422
|
-
@keyframes avatar-shimmer {
|
|
1423
|
-
0% {
|
|
1424
|
-
transform: translateX(-100%);
|
|
1425
|
-
}
|
|
1426
|
-
100% {
|
|
1427
|
-
transform: translateX(100%);
|
|
1428
|
-
}
|
|
1429
|
-
}
|
|
1430
|
-
.ui-avatar--primary,
|
|
1431
|
-
.ui-avatar--success,
|
|
1432
|
-
.ui-avatar--warning,
|
|
1433
|
-
.ui-avatar--danger {
|
|
1434
|
-
--avatar-color: var(--fc-color-text-on-primary, #ffffff);
|
|
1435
|
-
}
|
|
1436
|
-
.ui-avatar--primary {
|
|
1437
|
-
--avatar-bg: var(--fc-color-primary);
|
|
1438
|
-
}
|
|
1439
|
-
.ui-avatar--secondary {
|
|
1440
|
-
--avatar-bg: var(--fc-color-bg-secondary);
|
|
1441
|
-
--avatar-color: var(--fc-color-text-secondary);
|
|
1442
|
-
}
|
|
1443
|
-
.ui-avatar--success {
|
|
1444
|
-
--avatar-bg: var(--fc-color-success);
|
|
1445
|
-
}
|
|
1446
|
-
.ui-avatar--warning {
|
|
1447
|
-
--avatar-bg: var(--fc-color-warning);
|
|
1448
|
-
}
|
|
1449
|
-
.ui-avatar--danger {
|
|
1450
|
-
--avatar-bg: var(--fc-color-danger);
|
|
1451
|
-
}
|
|
1452
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1453
|
-
.ui-avatar {
|
|
1454
|
-
transition: none;
|
|
1455
|
-
}
|
|
1456
|
-
.ui-avatar-loading::after {
|
|
1457
|
-
animation: none;
|
|
1458
|
-
opacity: 0.5;
|
|
1459
|
-
}
|
|
1460
|
-
.ui-avatar-clickable:hover:not(:disabled) {
|
|
1461
|
-
transform: none;
|
|
1462
|
-
}
|
|
1463
|
-
.ui-avatar-clickable:active:not(:disabled) {
|
|
1464
|
-
transform: none;
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
@media (prefers-contrast: more) {
|
|
1468
|
-
.ui-avatar-bordered {
|
|
1469
|
-
border-width: 3px;
|
|
1470
|
-
}
|
|
1471
|
-
.ui-avatar-empty {
|
|
1472
|
-
outline: 1px solid currentColor;
|
|
1473
|
-
}
|
|
1474
|
-
.ui-avatar-clickable:focus-visible {
|
|
1475
|
-
outline: 2px solid currentColor;
|
|
1476
|
-
}
|
|
1477
|
-
}
|
|
1478
|
-
@media (prefers-contrast: less) {
|
|
1479
|
-
.ui-avatar-bordered {
|
|
1480
|
-
border-color: color-mix(in srgb, var(--avatar-border), transparent 30%);
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
.avatar-group .ui-avatar {
|
|
1484
|
-
transition: none;
|
|
1485
|
-
}
|
|
1486
|
-
@media (hover: hover) {
|
|
1487
|
-
.ui-avatar-clickable:hover:not(:disabled) {
|
|
1488
|
-
transform: translateY(-1px);
|
|
1489
|
-
}
|
|
1391
|
+
border-radius: 8px;
|
|
1490
1392
|
}
|
|
1491
1393
|
|
|
1492
1394
|
/* src/components/ListGroup/ListGroup.css */
|
|
@@ -1986,15 +1888,31 @@
|
|
|
1986
1888
|
--tab-bar-radius-tl: var(--fc-radius-full, 9999px);
|
|
1987
1889
|
--tab-bar-radius-tr: var(--fc-radius-full, 9999px);
|
|
1988
1890
|
}
|
|
1891
|
+
.fc-tab-bar__nav-outer {
|
|
1892
|
+
display: flex;
|
|
1893
|
+
align-items: stretch;
|
|
1894
|
+
}
|
|
1895
|
+
.fc-tab-bar__nav-outer--scroll {
|
|
1896
|
+
overflow: hidden;
|
|
1897
|
+
}
|
|
1989
1898
|
.fc-tab-bar__nav {
|
|
1899
|
+
flex: 1;
|
|
1900
|
+
min-width: 0;
|
|
1901
|
+
display: flex;
|
|
1902
|
+
align-items: stretch;
|
|
1903
|
+
position: relative;
|
|
1904
|
+
z-index: 0;
|
|
1905
|
+
}
|
|
1906
|
+
.fc-tab-bar__nav--scroll {
|
|
1907
|
+
overflow: hidden;
|
|
1990
1908
|
flex-shrink: 0;
|
|
1991
|
-
overflow-x: auto;
|
|
1992
|
-
overflow-y: hidden;
|
|
1993
1909
|
}
|
|
1994
1910
|
.fc-tab-bar__nav-wrap {
|
|
1995
1911
|
display: flex;
|
|
1996
1912
|
gap: 0;
|
|
1997
1913
|
align-items: stretch;
|
|
1914
|
+
max-width: 100%;
|
|
1915
|
+
box-sizing: border-box;
|
|
1998
1916
|
}
|
|
1999
1917
|
.fc-tab-bar__tab {
|
|
2000
1918
|
position: relative;
|
|
@@ -2012,6 +1930,9 @@
|
|
|
2012
1930
|
user-select: none;
|
|
2013
1931
|
border-radius: var(--tab-item-radius-tl) var(--tab-item-radius-tr) var(--tab-item-radius-br) var(--tab-item-radius-bl);
|
|
2014
1932
|
}
|
|
1933
|
+
.fc-tab-bar__nav--scroll .fc-tab-bar__tab {
|
|
1934
|
+
justify-content: space-between;
|
|
1935
|
+
}
|
|
2015
1936
|
.fc-tab-bar__tab:hover:not(.fc-tab-bar__tab--disabled):not(.fc-tab-bar__tab--dragging) {
|
|
2016
1937
|
color: var(--tab-hover-color);
|
|
2017
1938
|
background-color: var(--tab-hover-bg);
|
|
@@ -2038,7 +1959,7 @@
|
|
|
2038
1959
|
.fc-tab-bar--floating {
|
|
2039
1960
|
border-bottom: none;
|
|
2040
1961
|
}
|
|
2041
|
-
.fc-tab-bar--floating .fc-tab-bar__nav {
|
|
1962
|
+
.fc-tab-bar--floating .fc-tab-bar__nav-outer {
|
|
2042
1963
|
padding: var(--fc-space-xs, 6px) var(--fc-space-sm, 8px);
|
|
2043
1964
|
}
|
|
2044
1965
|
.fc-tab-bar--floating .fc-tab-bar__nav-wrap {
|
|
@@ -2096,11 +2017,39 @@
|
|
|
2096
2017
|
--tab-item-radius-br: var(--fc-radius-full, 9999px);
|
|
2097
2018
|
--tab-item-radius-bl: var(--fc-radius-full, 9999px);
|
|
2098
2019
|
}
|
|
2099
|
-
.fc-tab-bar__tab
|
|
2100
|
-
|
|
2020
|
+
.fc-tab-bar__tab,
|
|
2021
|
+
.fc-tab-bar__tab-close,
|
|
2022
|
+
.fc-tab-bar__add-btn {
|
|
2023
|
+
-webkit-app-region: no-drag;
|
|
2101
2024
|
}
|
|
2102
|
-
.fc-tab-
|
|
2103
|
-
|
|
2025
|
+
.fc-tab-bar--shrink .fc-tab-bar__tab {
|
|
2026
|
+
overflow: hidden;
|
|
2027
|
+
min-width: 0;
|
|
2028
|
+
}
|
|
2029
|
+
.fc-tab-bar--shrink .fc-tab-bar__tab[data-compact=true] {
|
|
2030
|
+
padding-left: var(--fc-space-xs, 6px);
|
|
2031
|
+
padding-right: var(--fc-space-xs, 6px);
|
|
2032
|
+
}
|
|
2033
|
+
.fc-tab-bar--shrink .fc-tab-bar__tab-label {
|
|
2034
|
+
flex: 1;
|
|
2035
|
+
min-width: 0;
|
|
2036
|
+
overflow: hidden;
|
|
2037
|
+
white-space: nowrap;
|
|
2038
|
+
-webkit-mask-image:
|
|
2039
|
+
linear-gradient(
|
|
2040
|
+
to right,
|
|
2041
|
+
black 0%,
|
|
2042
|
+
black calc(100% - 20px),
|
|
2043
|
+
transparent 100%);
|
|
2044
|
+
mask-image:
|
|
2045
|
+
linear-gradient(
|
|
2046
|
+
to right,
|
|
2047
|
+
black 0%,
|
|
2048
|
+
black calc(100% - 20px),
|
|
2049
|
+
transparent 100%);
|
|
2050
|
+
}
|
|
2051
|
+
.fc-tab-bar__tab--draggable {
|
|
2052
|
+
cursor: default;
|
|
2104
2053
|
}
|
|
2105
2054
|
.fc-tab-bar__tab--dragging {
|
|
2106
2055
|
opacity: 0.4;
|
|
@@ -2116,6 +2065,7 @@
|
|
|
2116
2065
|
color: var(--fc-color-text-tertiary);
|
|
2117
2066
|
border-radius: var(--fc-radius-sm, 4px);
|
|
2118
2067
|
transition: all var(--fc-transition, 150ms ease);
|
|
2068
|
+
flex-shrink: 0;
|
|
2119
2069
|
}
|
|
2120
2070
|
.fc-tab-bar__tab-close:hover {
|
|
2121
2071
|
color: var(--fc-color-text);
|
|
@@ -2129,6 +2079,7 @@
|
|
|
2129
2079
|
margin: 0 var(--fc-space-sm, 8px);
|
|
2130
2080
|
font-size: 20px;
|
|
2131
2081
|
font-weight: bold;
|
|
2082
|
+
user-select: none;
|
|
2132
2083
|
color: var(--fc-color-text-secondary);
|
|
2133
2084
|
cursor: pointer;
|
|
2134
2085
|
transition: all var(--fc-transition, 150ms ease);
|
|
@@ -2283,6 +2234,24 @@
|
|
|
2283
2234
|
fill: currentColor;
|
|
2284
2235
|
stroke: currentColor;
|
|
2285
2236
|
}
|
|
2237
|
+
.fc-md-wrap ::selection {
|
|
2238
|
+
background-color: rgba(55, 138, 221, 0.25) !important;
|
|
2239
|
+
color: inherit !important;
|
|
2240
|
+
}
|
|
2241
|
+
.fc-md-split-btn {
|
|
2242
|
+
border-radius: var(--fc-radius-md, 8px) !important;
|
|
2243
|
+
}
|
|
2244
|
+
.fc-md-split-btn--active {
|
|
2245
|
+
background: var(--fc-color-primary-bg, rgba(99,102,241,0.15)) !important;
|
|
2246
|
+
color: var(--fc-color-primary, #6366f1) !important;
|
|
2247
|
+
}
|
|
2248
|
+
.fc-md-split-btn--active:hover {
|
|
2249
|
+
background: var(--fc-color-primary-bg, rgba(99,102,241,0.22)) !important;
|
|
2250
|
+
}
|
|
2251
|
+
.fc-md-split-icon {
|
|
2252
|
+
font-size: 15px;
|
|
2253
|
+
line-height: 1;
|
|
2254
|
+
}
|
|
2286
2255
|
.fc-md-ai-btn {
|
|
2287
2256
|
font-size: 11px;
|
|
2288
2257
|
font-weight: 600;
|
|
@@ -2409,196 +2378,149 @@
|
|
|
2409
2378
|
}
|
|
2410
2379
|
|
|
2411
2380
|
/* src/components/SmartMessage/SmartMessage.css */
|
|
2412
|
-
.smart-message {
|
|
2381
|
+
.fc-smart-message {
|
|
2413
2382
|
display: flex;
|
|
2414
|
-
|
|
2383
|
+
align-items: flex-start;
|
|
2384
|
+
gap: 8px;
|
|
2385
|
+
max-width: 100%;
|
|
2415
2386
|
animation: fadeIn 0.3s ease;
|
|
2416
2387
|
}
|
|
2417
|
-
.smart-message
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
.smart-message-user .message-header {
|
|
2421
|
-
justify-content: flex-end;
|
|
2388
|
+
.fc-smart-message--user {
|
|
2389
|
+
flex-direction: row-reverse;
|
|
2390
|
+
align-self: flex-end;
|
|
2422
2391
|
}
|
|
2423
|
-
.
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
135deg,
|
|
2427
|
-
#667eea 0%,
|
|
2428
|
-
#764ba2 100%);
|
|
2429
|
-
color: #ffffff;
|
|
2430
|
-
border-bottom-right-radius: 4px;
|
|
2392
|
+
.fc-smart-message--assistant {
|
|
2393
|
+
flex-direction: row;
|
|
2394
|
+
align-self: flex-start;
|
|
2431
2395
|
}
|
|
2432
|
-
.smart-message
|
|
2433
|
-
|
|
2396
|
+
.fc-smart-message--system {
|
|
2397
|
+
align-self: center;
|
|
2398
|
+
justify-content: center;
|
|
2399
|
+
max-width: 90%;
|
|
2400
|
+
margin: 0 auto;
|
|
2434
2401
|
}
|
|
2435
|
-
.
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
border-bottom-left-radius: 4px;
|
|
2402
|
+
.fc-smart-message--tool {
|
|
2403
|
+
align-self: flex-start;
|
|
2404
|
+
max-width: 90%;
|
|
2439
2405
|
}
|
|
2440
|
-
.smart-message-content {
|
|
2441
|
-
max-width: 70%;
|
|
2442
|
-
padding: 10px 14px;
|
|
2443
|
-
border-radius: 12px;
|
|
2406
|
+
.fc-smart-message-content-wrapper {
|
|
2444
2407
|
position: relative;
|
|
2445
|
-
|
|
2408
|
+
background: var(--fc-color-bg-secondary, #f0f0f0);
|
|
2409
|
+
border-radius: 12px;
|
|
2410
|
+
padding: 8px 12px;
|
|
2411
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
2412
|
+
width: auto;
|
|
2413
|
+
max-width: 100%;
|
|
2414
|
+
word-wrap: break-word;
|
|
2446
2415
|
}
|
|
2447
|
-
.smart-message-content
|
|
2448
|
-
|
|
2416
|
+
.fc-smart-message--user .fc-smart-message-content-wrapper {
|
|
2417
|
+
background: var(--fc-color-primary, #667eea);
|
|
2418
|
+
color: white;
|
|
2449
2419
|
}
|
|
2450
|
-
.message-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
margin-bottom: 6px;
|
|
2454
|
-
font-size: 12px;
|
|
2455
|
-
}
|
|
2456
|
-
.message-sender {
|
|
2457
|
-
font-weight: 600;
|
|
2458
|
-
font-size: 13px;
|
|
2420
|
+
.fc-smart-message--assistant .fc-smart-message-content-wrapper {
|
|
2421
|
+
background: var(--fc-color-bg-secondary, #f0f0f0);
|
|
2422
|
+
color: var(--fc-color-text, #333);
|
|
2459
2423
|
}
|
|
2460
|
-
.message-
|
|
2461
|
-
|
|
2462
|
-
|
|
2424
|
+
.fc-smart-message--system .fc-smart-message-content-wrapper {
|
|
2425
|
+
background: var(--fc-color-bg-tertiary, #f0f0f0);
|
|
2426
|
+
color: var(--fc-color-text-tertiary, #999);
|
|
2427
|
+
text-align: center;
|
|
2428
|
+
font-size: 12px;
|
|
2429
|
+
border-radius: 16px;
|
|
2430
|
+
padding: 6px 16px;
|
|
2431
|
+
display: inline-block;
|
|
2432
|
+
width: auto;
|
|
2463
2433
|
}
|
|
2464
|
-
.message-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2434
|
+
.fc-smart-message--tool .fc-smart-message-content-wrapper {
|
|
2435
|
+
background: var(--fc-color-bg-tertiary, #e8e8e8);
|
|
2436
|
+
color: var(--fc-color-text-secondary, #666);
|
|
2437
|
+
font-family: monospace;
|
|
2438
|
+
font-size: 12px;
|
|
2469
2439
|
}
|
|
2470
|
-
.
|
|
2471
|
-
|
|
2472
|
-
right: 8px;
|
|
2473
|
-
bottom: 8px;
|
|
2474
|
-
display: inline-flex;
|
|
2440
|
+
.fc-smart-message-tool-info {
|
|
2441
|
+
display: flex;
|
|
2475
2442
|
align-items: center;
|
|
2476
2443
|
gap: 4px;
|
|
2477
|
-
|
|
2478
|
-
border: none;
|
|
2479
|
-
border-radius: 6px;
|
|
2444
|
+
margin-bottom: 8px;
|
|
2480
2445
|
font-size: 12px;
|
|
2481
|
-
cursor: pointer;
|
|
2482
|
-
background: rgba(0, 0, 0, 0.05);
|
|
2483
|
-
backdrop-filter: blur(4px);
|
|
2484
|
-
opacity: 0;
|
|
2485
|
-
transition: all 0.2s ease;
|
|
2486
|
-
}
|
|
2487
|
-
.smart-message-content:hover .copy-btn {
|
|
2488
|
-
opacity: 0.7;
|
|
2489
|
-
}
|
|
2490
|
-
.smart-message-user .copy-btn {
|
|
2491
|
-
color: rgba(255, 255, 255, 0.9);
|
|
2492
|
-
background: rgba(255, 255, 255, 0.15);
|
|
2493
|
-
}
|
|
2494
|
-
.smart-message-assistant .copy-btn {
|
|
2495
2446
|
color: var(--fc-color-text-secondary, #666);
|
|
2447
|
+
border-bottom: 1px solid var(--fc-color-border, #ddd);
|
|
2448
|
+
padding-bottom: 4px;
|
|
2496
2449
|
}
|
|
2497
|
-
.
|
|
2498
|
-
|
|
2499
|
-
transform: translateY(-2px);
|
|
2500
|
-
background: rgba(102, 126, 234, 0.2);
|
|
2501
|
-
}
|
|
2502
|
-
.copy-btn.copied {
|
|
2503
|
-
opacity: 1 !important;
|
|
2504
|
-
background: #52c41a !important;
|
|
2505
|
-
color: #ffffff !important;
|
|
2450
|
+
.fc-smart-message-tool-icon {
|
|
2451
|
+
font-size: 12px;
|
|
2506
2452
|
}
|
|
2507
|
-
.message-
|
|
2508
|
-
font-
|
|
2509
|
-
|
|
2510
|
-
display: inline-block;
|
|
2453
|
+
.fc-smart-message-tool-name {
|
|
2454
|
+
font-family: monospace;
|
|
2455
|
+
font-weight: 500;
|
|
2511
2456
|
}
|
|
2512
|
-
.message-
|
|
2513
|
-
|
|
2457
|
+
.fc-smart-message-content {
|
|
2458
|
+
word-wrap: break-word;
|
|
2459
|
+
word-break: break-word;
|
|
2460
|
+
white-space: pre-wrap;
|
|
2514
2461
|
}
|
|
2515
|
-
.message-
|
|
2516
|
-
|
|
2462
|
+
.fc-smart-message-text {
|
|
2463
|
+
line-height: 1.5;
|
|
2517
2464
|
}
|
|
2518
|
-
.smart-message-system {
|
|
2519
|
-
|
|
2465
|
+
.fc-smart-message-system-text {
|
|
2466
|
+
font-style: italic;
|
|
2467
|
+
opacity: 0.7;
|
|
2520
2468
|
}
|
|
2521
|
-
.
|
|
2522
|
-
display: flex;
|
|
2523
|
-
align-items: center;
|
|
2524
|
-
justify-content: center;
|
|
2525
|
-
gap: 8px;
|
|
2526
|
-
padding: 6px 12px;
|
|
2469
|
+
.fc-smart-message-tool-result {
|
|
2527
2470
|
background: rgba(0, 0, 0, 0.05);
|
|
2528
|
-
|
|
2529
|
-
|
|
2471
|
+
padding: 8px;
|
|
2472
|
+
border-radius: 6px;
|
|
2530
2473
|
font-size: 12px;
|
|
2474
|
+
font-family: monospace;
|
|
2475
|
+
overflow-x: auto;
|
|
2476
|
+
margin: 0;
|
|
2531
2477
|
}
|
|
2532
|
-
.
|
|
2478
|
+
.fc-smart-message-footer {
|
|
2533
2479
|
display: flex;
|
|
2534
2480
|
align-items: center;
|
|
2535
|
-
|
|
2481
|
+
gap: 8px;
|
|
2482
|
+
margin-top: 4px;
|
|
2483
|
+
font-size: 10px;
|
|
2484
|
+
opacity: 0.7;
|
|
2536
2485
|
}
|
|
2537
|
-
.
|
|
2538
|
-
|
|
2486
|
+
.fc-smart-message-time {
|
|
2487
|
+
font-size: 10px;
|
|
2539
2488
|
}
|
|
2540
|
-
.
|
|
2489
|
+
.fc-smart-message-status {
|
|
2541
2490
|
font-size: 10px;
|
|
2542
|
-
color: #bbb;
|
|
2543
2491
|
}
|
|
2544
|
-
.smart-message-
|
|
2545
|
-
|
|
2492
|
+
.fc-smart-message-status.sending {
|
|
2493
|
+
animation: pulse 1s infinite;
|
|
2546
2494
|
}
|
|
2547
|
-
.
|
|
2548
|
-
|
|
2549
|
-
background: #f5f5f5;
|
|
2550
|
-
border-left: 3px solid #667eea;
|
|
2551
|
-
border-radius: 8px;
|
|
2552
|
-
overflow: hidden;
|
|
2553
|
-
font-size: 13px;
|
|
2495
|
+
.fc-smart-message-status.error {
|
|
2496
|
+
color: #f5222d;
|
|
2554
2497
|
}
|
|
2555
|
-
.
|
|
2556
|
-
|
|
2557
|
-
align-items: center;
|
|
2558
|
-
gap: 8px;
|
|
2559
|
-
padding: 8px 12px;
|
|
2560
|
-
background: #e8e8e8;
|
|
2561
|
-
border-bottom: 1px solid #ddd;
|
|
2498
|
+
.fc-smart-message-status.sent {
|
|
2499
|
+
color: #52c41a;
|
|
2562
2500
|
}
|
|
2563
|
-
.
|
|
2501
|
+
.fc-smart-message-copy-btn {
|
|
2502
|
+
background: transparent;
|
|
2503
|
+
border: none;
|
|
2504
|
+
cursor: pointer;
|
|
2505
|
+
padding: 4px;
|
|
2506
|
+
border-radius: 6px;
|
|
2507
|
+
color: var(--fc-color-text-secondary, #666);
|
|
2508
|
+
transition: all 0.2s ease;
|
|
2564
2509
|
display: flex;
|
|
2565
2510
|
align-items: center;
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
.tool-message-name {
|
|
2569
|
-
font-weight: 600;
|
|
2570
|
-
font-size: 12px;
|
|
2571
|
-
color: #333;
|
|
2572
|
-
}
|
|
2573
|
-
.tool-message-content {
|
|
2574
|
-
padding: 12px;
|
|
2575
|
-
}
|
|
2576
|
-
.tool-message-params,
|
|
2577
|
-
.tool-message-result {
|
|
2578
|
-
margin-bottom: 8px;
|
|
2511
|
+
justify-content: center;
|
|
2512
|
+
opacity: 0;
|
|
2579
2513
|
}
|
|
2580
|
-
.
|
|
2581
|
-
.
|
|
2582
|
-
display: block;
|
|
2583
|
-
font-size: 11px;
|
|
2584
|
-
color: #666;
|
|
2585
|
-
margin-bottom: 4px;
|
|
2514
|
+
.fc-smart-message:hover .fc-smart-message-copy-btn {
|
|
2515
|
+
opacity: 0.6;
|
|
2586
2516
|
}
|
|
2587
|
-
.
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
background: #fff;
|
|
2592
|
-
border-radius: 4px;
|
|
2593
|
-
font-size: 12px;
|
|
2594
|
-
overflow-x: auto;
|
|
2595
|
-
font-family: "Courier New", monospace;
|
|
2517
|
+
.fc-smart-message-copy-btn:hover {
|
|
2518
|
+
opacity: 1 !important;
|
|
2519
|
+
background: rgba(0, 0, 0, 0.05);
|
|
2520
|
+
transform: scale(1.05);
|
|
2596
2521
|
}
|
|
2597
|
-
.
|
|
2598
|
-
|
|
2599
|
-
font-size: 10px;
|
|
2600
|
-
color: #999;
|
|
2601
|
-
text-align: right;
|
|
2522
|
+
.fc-smart-message-copy-btn:active {
|
|
2523
|
+
transform: scale(0.95);
|
|
2602
2524
|
}
|
|
2603
2525
|
@keyframes fadeIn {
|
|
2604
2526
|
from {
|
|
@@ -2610,15 +2532,30 @@
|
|
|
2610
2532
|
transform: translateY(0);
|
|
2611
2533
|
}
|
|
2612
2534
|
}
|
|
2535
|
+
@keyframes pulse {
|
|
2536
|
+
0%, 100% {
|
|
2537
|
+
opacity: 1;
|
|
2538
|
+
}
|
|
2539
|
+
50% {
|
|
2540
|
+
opacity: 0.5;
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2613
2543
|
@media (max-width: 768px) {
|
|
2614
|
-
.smart-message
|
|
2615
|
-
max-width:
|
|
2544
|
+
.fc-smart-message {
|
|
2545
|
+
max-width: 100%;
|
|
2546
|
+
}
|
|
2547
|
+
.fc-smart-message--system {
|
|
2548
|
+
max-width: 95%;
|
|
2616
2549
|
}
|
|
2617
|
-
.
|
|
2618
|
-
|
|
2550
|
+
.fc-smart-message-content-wrapper {
|
|
2551
|
+
padding: 6px 10px;
|
|
2552
|
+
max-width: 100%;
|
|
2619
2553
|
}
|
|
2620
|
-
.message-
|
|
2621
|
-
padding
|
|
2554
|
+
.fc-smart-message--system .fc-smart-message-content-wrapper {
|
|
2555
|
+
padding: 4px 12px;
|
|
2556
|
+
}
|
|
2557
|
+
.fc-smart-message-copy-btn {
|
|
2558
|
+
padding: 2px;
|
|
2622
2559
|
}
|
|
2623
2560
|
}
|
|
2624
2561
|
|
|
@@ -2874,7 +2811,11 @@
|
|
|
2874
2811
|
gap: 8px;
|
|
2875
2812
|
padding: 12px 16px;
|
|
2876
2813
|
margin-bottom: 16px;
|
|
2877
|
-
background:
|
|
2814
|
+
background:
|
|
2815
|
+
linear-gradient(
|
|
2816
|
+
135deg,
|
|
2817
|
+
#667eea 0%,
|
|
2818
|
+
#764ba2 100%);
|
|
2878
2819
|
border: none;
|
|
2879
2820
|
border-radius: 12px;
|
|
2880
2821
|
font-size: 14px;
|
|
@@ -2965,52 +2906,6 @@
|
|
|
2965
2906
|
color: #f5222d;
|
|
2966
2907
|
transform: scale(1.1);
|
|
2967
2908
|
}
|
|
2968
|
-
.delete-confirm {
|
|
2969
|
-
display: flex;
|
|
2970
|
-
gap: 8px;
|
|
2971
|
-
animation: fadeIn 0.2s ease;
|
|
2972
|
-
}
|
|
2973
|
-
.confirm-delete,
|
|
2974
|
-
.cancel-delete {
|
|
2975
|
-
padding: 4px;
|
|
2976
|
-
width: 28px;
|
|
2977
|
-
height: 28px;
|
|
2978
|
-
border: none;
|
|
2979
|
-
border-radius: 8px;
|
|
2980
|
-
cursor: pointer;
|
|
2981
|
-
transition: all 0.2s;
|
|
2982
|
-
display: flex;
|
|
2983
|
-
align-items: center;
|
|
2984
|
-
justify-content: center;
|
|
2985
|
-
}
|
|
2986
|
-
.confirm-delete {
|
|
2987
|
-
background:
|
|
2988
|
-
linear-gradient(
|
|
2989
|
-
135deg,
|
|
2990
|
-
#52c41a 0%,
|
|
2991
|
-
#73d13d 100%);
|
|
2992
|
-
}
|
|
2993
|
-
.confirm-delete:hover {
|
|
2994
|
-
transform: scale(1.1);
|
|
2995
|
-
box-shadow: 0 2px 8px rgba(82, 196, 26, 0.4);
|
|
2996
|
-
}
|
|
2997
|
-
.cancel-delete {
|
|
2998
|
-
background:
|
|
2999
|
-
linear-gradient(
|
|
3000
|
-
135deg,
|
|
3001
|
-
#f5222d 0%,
|
|
3002
|
-
#ff4d4f 100%);
|
|
3003
|
-
}
|
|
3004
|
-
.cancel-delete:hover {
|
|
3005
|
-
transform: scale(1.1);
|
|
3006
|
-
box-shadow: 0 2px 8px rgba(245, 34, 45, 0.4);
|
|
3007
|
-
}
|
|
3008
|
-
.confirm-delete svg,
|
|
3009
|
-
.cancel-delete svg {
|
|
3010
|
-
stroke: white;
|
|
3011
|
-
width: 14px;
|
|
3012
|
-
height: 14px;
|
|
3013
|
-
}
|
|
3014
2909
|
.empty-history {
|
|
3015
2910
|
text-align: center;
|
|
3016
2911
|
padding: 40px 20px;
|
|
@@ -3025,6 +2920,55 @@
|
|
|
3025
2920
|
display: inline-flex;
|
|
3026
2921
|
background: transparent;
|
|
3027
2922
|
}
|
|
2923
|
+
.message-wrapper {
|
|
2924
|
+
display: flex;
|
|
2925
|
+
flex-direction: column;
|
|
2926
|
+
position: relative;
|
|
2927
|
+
}
|
|
2928
|
+
.message-wrapper--user {
|
|
2929
|
+
align-self: flex-end;
|
|
2930
|
+
}
|
|
2931
|
+
.message-wrapper--assistant {
|
|
2932
|
+
align-self: flex-start;
|
|
2933
|
+
}
|
|
2934
|
+
.message-copy-wrapper {
|
|
2935
|
+
display: flex;
|
|
2936
|
+
margin-top: 4px;
|
|
2937
|
+
}
|
|
2938
|
+
.message-copy-wrapper--assistant {
|
|
2939
|
+
justify-content: flex-end;
|
|
2940
|
+
padding-right: 8px;
|
|
2941
|
+
}
|
|
2942
|
+
.message-copy-wrapper--user {
|
|
2943
|
+
justify-content: flex-start;
|
|
2944
|
+
padding-left: 8px;
|
|
2945
|
+
}
|
|
2946
|
+
.message-copy-btn {
|
|
2947
|
+
display: inline-flex;
|
|
2948
|
+
align-items: center;
|
|
2949
|
+
justify-content: center;
|
|
2950
|
+
padding: 6px;
|
|
2951
|
+
background: transparent;
|
|
2952
|
+
border: none;
|
|
2953
|
+
border-radius: 8px;
|
|
2954
|
+
color: var(--fc-color-text-secondary, #666);
|
|
2955
|
+
cursor: pointer;
|
|
2956
|
+
transition: all 0.2s ease;
|
|
2957
|
+
}
|
|
2958
|
+
.message-copy-btn svg {
|
|
2959
|
+
width: 14px;
|
|
2960
|
+
height: 14px;
|
|
2961
|
+
display: block;
|
|
2962
|
+
}
|
|
2963
|
+
.message-copy-btn:hover {
|
|
2964
|
+
background: rgba(0, 0, 0, 0.08);
|
|
2965
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
2966
|
+
transform: translateY(-1px);
|
|
2967
|
+
color: var(--fc-color-text, #333);
|
|
2968
|
+
}
|
|
2969
|
+
.message-copy-btn:active {
|
|
2970
|
+
transform: translateY(0);
|
|
2971
|
+
}
|
|
3028
2972
|
@media (max-width: 768px) {
|
|
3029
2973
|
.chat-header {
|
|
3030
2974
|
padding: 12px 16px;
|
|
@@ -3047,6 +2991,13 @@
|
|
|
3047
2991
|
width: 16px;
|
|
3048
2992
|
height: 16px;
|
|
3049
2993
|
}
|
|
2994
|
+
.message-copy-btn {
|
|
2995
|
+
padding: 4px;
|
|
2996
|
+
}
|
|
2997
|
+
.message-copy-btn svg {
|
|
2998
|
+
width: 12px;
|
|
2999
|
+
height: 12px;
|
|
3000
|
+
}
|
|
3050
3001
|
}
|
|
3051
3002
|
@media (prefers-reduced-motion: reduce) {
|
|
3052
3003
|
* {
|
|
@@ -3054,6 +3005,16 @@
|
|
|
3054
3005
|
transition: none !important;
|
|
3055
3006
|
}
|
|
3056
3007
|
}
|
|
3008
|
+
.system-message-container {
|
|
3009
|
+
display: flex;
|
|
3010
|
+
justify-content: center;
|
|
3011
|
+
width: 100%;
|
|
3012
|
+
}
|
|
3013
|
+
.tool-message-container {
|
|
3014
|
+
display: flex;
|
|
3015
|
+
justify-content: flex-start;
|
|
3016
|
+
width: 100%;
|
|
3017
|
+
}
|
|
3057
3018
|
|
|
3058
3019
|
/* src/style/index.css */
|
|
3059
3020
|
:root {
|
|
@@ -3067,15 +3028,15 @@
|
|
|
3067
3028
|
--fc-blue-700: #0C447C;
|
|
3068
3029
|
--fc-blue-800: #072D54;
|
|
3069
3030
|
--fc-blue-900: #031A33;
|
|
3070
|
-
--fc-gray-50: #
|
|
3071
|
-
--fc-gray-100: #
|
|
3072
|
-
--fc-gray-150: #
|
|
3073
|
-
--fc-gray-200: #
|
|
3074
|
-
--fc-gray-400: #
|
|
3075
|
-
--fc-gray-600: #
|
|
3031
|
+
--fc-gray-50: #FAFAFA;
|
|
3032
|
+
--fc-gray-100: #F5F5F5;
|
|
3033
|
+
--fc-gray-150: #E0E0E0;
|
|
3034
|
+
--fc-gray-200: #D0D0D0;
|
|
3035
|
+
--fc-gray-400: #B3B3B3;
|
|
3036
|
+
--fc-gray-600: #5F5F5F;
|
|
3076
3037
|
--fc-gray-700: #3D3D3A;
|
|
3077
|
-
--fc-gray-800: #
|
|
3078
|
-
--fc-gray-900: #
|
|
3038
|
+
--fc-gray-800: #2C2C2C;
|
|
3039
|
+
--fc-gray-900: #1A1A1A;
|
|
3079
3040
|
--fc-red-50: #FDEDED;
|
|
3080
3041
|
--fc-red-100: #FAD0D0;
|
|
3081
3042
|
--fc-red-500: #E24B4A;
|
|
@@ -3105,8 +3066,8 @@
|
|
|
3105
3066
|
--fc-color-primary-active: var(--fc-blue-700);
|
|
3106
3067
|
--fc-color-primary-subtle: var(--fc-blue-50);
|
|
3107
3068
|
--fc-color-bg: #FFFFFF;
|
|
3108
|
-
--fc-color-bg-secondary: var(--fc-gray-
|
|
3109
|
-
--fc-color-bg-tertiary: var(--fc-gray-
|
|
3069
|
+
--fc-color-bg-secondary: var(--fc-gray-100);
|
|
3070
|
+
--fc-color-bg-tertiary: var(--fc-gray-200);
|
|
3110
3071
|
--fc-color-bg-elevated: #FFFFFF;
|
|
3111
3072
|
--fc-color-bg-overlay: rgba(0, 0, 0, 0.4);
|
|
3112
3073
|
--fc-color-text: var(--fc-gray-900);
|
|
@@ -3246,7 +3207,7 @@ body {
|
|
|
3246
3207
|
--fc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4);
|
|
3247
3208
|
}
|
|
3248
3209
|
body {
|
|
3249
|
-
font-family: var(--fc-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
|
|
3210
|
+
font-family: var(--fc-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif), serif;
|
|
3250
3211
|
background-color: var(--fc-color-bg, #FFFFFF);
|
|
3251
3212
|
color: var(--fc-color-text, #1A1A19);
|
|
3252
3213
|
margin: 0;
|
|
@@ -3288,78 +3249,12 @@ body {
|
|
|
3288
3249
|
}
|
|
3289
3250
|
::selection {
|
|
3290
3251
|
background-color: var(--fc-color-primary-subtle, #EBF4FD);
|
|
3291
|
-
color: var(--fc-color-primary, #378ADD);
|
|
3292
3252
|
}
|
|
3293
3253
|
[data-theme=dark] ::selection {
|
|
3294
3254
|
background-color: rgba(55, 138, 221, 0.3);
|
|
3295
|
-
color: var(--fc-color-primary, #5DA4E8);
|
|
3296
3255
|
}
|
|
3297
3256
|
:focus-visible {
|
|
3298
3257
|
outline: 2px solid var(--fc-color-border-focus, #378ADD);
|
|
3299
3258
|
outline-offset: 2px;
|
|
3300
3259
|
border-radius: var(--fc-radius-sm, 4px);
|
|
3301
3260
|
}
|
|
3302
|
-
.theme-light {
|
|
3303
|
-
--fc-color-bg: #FFFFFF !important;
|
|
3304
|
-
--fc-color-bg-secondary: var(--fc-gray-50) !important;
|
|
3305
|
-
--fc-color-bg-tertiary: var(--fc-gray-100) !important;
|
|
3306
|
-
--fc-color-text: var(--fc-gray-900) !important;
|
|
3307
|
-
--fc-color-text-secondary: var(--fc-gray-600) !important;
|
|
3308
|
-
--fc-color-border: var(--fc-gray-200) !important;
|
|
3309
|
-
--fc-color-border-light: var(--fc-gray-150) !important;
|
|
3310
|
-
}
|
|
3311
|
-
.theme-dark {
|
|
3312
|
-
--fc-color-primary: var(--fc-blue-300) !important;
|
|
3313
|
-
--fc-color-primary-hover: var(--fc-blue-200) !important;
|
|
3314
|
-
--fc-color-primary-active: var(--fc-blue-100) !important;
|
|
3315
|
-
--fc-color-primary-subtle: rgba(55, 138, 221, 0.12) !important;
|
|
3316
|
-
--fc-color-bg: #0F0F0F !important;
|
|
3317
|
-
--fc-color-bg-secondary: #1A1A1A !important;
|
|
3318
|
-
--fc-color-bg-tertiary: #222222 !important;
|
|
3319
|
-
--fc-color-bg-elevated: #282828 !important;
|
|
3320
|
-
--fc-color-bg-overlay: rgba(0, 0, 0, 0.6) !important;
|
|
3321
|
-
--fc-color-text: #E8E8E6 !important;
|
|
3322
|
-
--fc-color-text-secondary: #9C9A92 !important;
|
|
3323
|
-
--fc-color-text-tertiary: #636158 !important;
|
|
3324
|
-
--fc-color-text-disabled: #4A4845 !important;
|
|
3325
|
-
--fc-color-text-on-primary: #FFFFFF !important;
|
|
3326
|
-
--fc-color-border: #333330 !important;
|
|
3327
|
-
--fc-color-border-light: #2A2A28 !important;
|
|
3328
|
-
--fc-color-border-hover: #555550 !important;
|
|
3329
|
-
--fc-color-border-focus: var(--fc-blue-400) !important;
|
|
3330
|
-
--fc-color-danger: #F06060 !important;
|
|
3331
|
-
--fc-color-danger-hover: #F58080 !important;
|
|
3332
|
-
--fc-color-danger-bg: rgba(226, 75, 74, 0.12) !important;
|
|
3333
|
-
--fc-color-danger-border: rgba(226, 75, 74, 0.25) !important;
|
|
3334
|
-
--fc-color-success: #7EBB38 !important;
|
|
3335
|
-
--fc-color-success-hover: #9FD058 !important;
|
|
3336
|
-
--fc-color-success-bg: rgba(99, 153, 34, 0.12) !important;
|
|
3337
|
-
--fc-color-success-border: rgba(99, 153, 34, 0.25) !important;
|
|
3338
|
-
--fc-color-warning: #F0A030 !important;
|
|
3339
|
-
--fc-color-warning-hover: #F5BC60 !important;
|
|
3340
|
-
--fc-color-warning-bg: rgba(214, 128, 0, 0.12) !important;
|
|
3341
|
-
--fc-color-warning-border: rgba(214, 128, 0, 0.25) !important;
|
|
3342
|
-
--fc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
3343
|
-
--fc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3) !important;
|
|
3344
|
-
--fc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
|
|
3345
|
-
--fc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.4) !important;
|
|
3346
|
-
}
|
|
3347
|
-
.theme-dark .fc-list-group {
|
|
3348
|
-
background-color: var(--fc-color-bg, #0F0F0F) !important;
|
|
3349
|
-
}
|
|
3350
|
-
.theme-dark .fc-list-group-item {
|
|
3351
|
-
background-color: var(--fc-color-bg, #0F0F0F) !important;
|
|
3352
|
-
color: var(--fc-color-text, #E8E8E6) !important;
|
|
3353
|
-
border-bottom-color: var(--fc-color-border-light, #2A2A28) !important;
|
|
3354
|
-
}
|
|
3355
|
-
.theme-dark .fc-list-group--bordered {
|
|
3356
|
-
border-color: var(--fc-color-border, #333330) !important;
|
|
3357
|
-
}
|
|
3358
|
-
.theme-dark .fc-list-group-item:hover:not(.fc-list-group-item--disabled) {
|
|
3359
|
-
background-color: var(--fc-color-bg-secondary, #1A1A1A) !important;
|
|
3360
|
-
}
|
|
3361
|
-
.theme-dark .fc-list-group-item--active {
|
|
3362
|
-
background-color: var(--fc-color-primary-subtle, rgba(55, 138, 221, 0.12)) !important;
|
|
3363
|
-
color: var(--fc-color-primary, #5DA4E8) !important;
|
|
3364
|
-
border-left-color: var(--fc-color-primary, #5DA4E8) !important;
|
|
3365
|
-
}
|