@hef2024/llmasaservice-ui 0.22.9 → 0.22.10

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.
@@ -272,3 +272,5 @@ For questions or issues:
272
272
 
273
273
  The controlled collapse state feature is now fully implemented, documented, and tested. It follows React best practices, maintains backward compatibility, and provides a flexible solution for persisting panel state across page navigations.
274
274
 
275
+
276
+
package/dist/index.css CHANGED
@@ -997,12 +997,12 @@ button[data-pending=true]::after {
997
997
  --ai-panel-collapsed-width: 48px;
998
998
  --ai-panel-border-radius: 0;
999
999
  --ai-panel-transition: 0.2s ease;
1000
- --ai-sidebar-bg: #f8f9fa;
1000
+ --ai-sidebar-bg: #ffffff;
1001
1001
  --ai-sidebar-border: #e5e7eb;
1002
- --ai-sidebar-text: #374151;
1002
+ --ai-sidebar-text: #111827;
1003
1003
  --ai-sidebar-text-muted: #6b7280;
1004
- --ai-sidebar-hover: #f3f4f6;
1005
- --ai-sidebar-active: #e5e7eb;
1004
+ --ai-sidebar-hover: #f9fafb;
1005
+ --ai-sidebar-active: #f3f4f6;
1006
1006
  --ai-header-bg: #ffffff;
1007
1007
  --ai-header-border: #e5e7eb;
1008
1008
  --ai-header-height: 52px;
@@ -1011,13 +1011,13 @@ button[data-pending=true]::after {
1011
1011
  --ai-agent-selector-bg: #ffffff;
1012
1012
  --ai-agent-selector-border: #e5e7eb;
1013
1013
  --ai-conversation-bg: transparent;
1014
- --ai-conversation-hover: rgba(0, 0, 0, 0.04);
1015
- --ai-conversation-active: rgba(0, 0, 0, 0.08);
1014
+ --ai-conversation-hover: rgba(0, 0, 0, 0.03);
1015
+ --ai-conversation-active: rgba(0, 0, 0, 0.05);
1016
1016
  --ai-conversation-title-color: #1f2937;
1017
1017
  --ai-conversation-preview-color: #6b7280;
1018
1018
  --ai-conversation-meta-color: #9ca3af;
1019
- --ai-group-label-color: #9ca3af;
1020
- --ai-group-label-size: 0.75rem;
1019
+ --ai-group-label-color: #6b7280;
1020
+ --ai-group-label-size: 0.6875rem;
1021
1021
  --ai-button-primary-bg: #3b82f6;
1022
1022
  --ai-button-primary-text: #ffffff;
1023
1023
  --ai-button-primary-hover: #2563eb;
@@ -1025,18 +1025,18 @@ button[data-pending=true]::after {
1025
1025
  --ai-button-secondary-text: #374151;
1026
1026
  --ai-button-secondary-border: #d1d5db;
1027
1027
  --ai-button-secondary-hover: #e5e7eb;
1028
- --ai-button-ghost-hover: rgba(0, 0, 0, 0.06);
1028
+ --ai-button-ghost-hover: #f3f4f6;
1029
1029
  --ai-button-destructive-bg: #ef4444;
1030
1030
  --ai-button-destructive-text: #ffffff;
1031
1031
  --ai-button-destructive-hover: #dc2626;
1032
- --ai-button-radius: 6px;
1032
+ --ai-button-radius: 4px;
1033
1033
  --ai-input-bg: #ffffff;
1034
1034
  --ai-input-border: #d1d5db;
1035
1035
  --ai-input-text: #1f2937;
1036
1036
  --ai-input-placeholder: #9ca3af;
1037
1037
  --ai-input-focus-border: #3b82f6;
1038
1038
  --ai-input-focus-ring: rgba(59, 130, 246, 0.2);
1039
- --ai-input-radius: 6px;
1039
+ --ai-input-radius: 4px;
1040
1040
  --ai-select-bg: #ffffff;
1041
1041
  --ai-select-border: #d1d5db;
1042
1042
  --ai-select-text: #1f2937;
@@ -1067,21 +1067,21 @@ button[data-pending=true]::after {
1067
1067
  --ai-chat-bg: #ffffff;
1068
1068
  }
1069
1069
  .dark-theme {
1070
- --ai-sidebar-bg: #1f2937;
1071
- --ai-sidebar-border: #374151;
1070
+ --ai-sidebar-bg: #111827;
1071
+ --ai-sidebar-border: #1f2937;
1072
1072
  --ai-sidebar-text: #f3f4f6;
1073
1073
  --ai-sidebar-text-muted: #9ca3af;
1074
- --ai-sidebar-hover: #374151;
1075
- --ai-sidebar-active: #4b5563;
1076
- --ai-header-bg: #111827;
1077
- --ai-header-border: #374151;
1074
+ --ai-sidebar-hover: #1f2937;
1075
+ --ai-sidebar-active: #374151;
1076
+ --ai-header-bg: #0d1117;
1077
+ --ai-header-border: #1f2937;
1078
1078
  --ai-agent-badge-bg: #1e3a5f;
1079
1079
  --ai-agent-badge-text: #60a5fa;
1080
1080
  --ai-agent-selector-bg: #1f2937;
1081
1081
  --ai-agent-selector-border: #374151;
1082
- --ai-conversation-hover: rgba(255, 255, 255, 0.04);
1082
+ --ai-conversation-hover: rgba(255, 255, 255, 0.05);
1083
1083
  --ai-conversation-active: rgba(255, 255, 255, 0.08);
1084
- --ai-conversation-title-color: #f3f4f6;
1084
+ --ai-conversation-title-color: #e5e7eb;
1085
1085
  --ai-conversation-preview-color: #9ca3af;
1086
1086
  --ai-conversation-meta-color: #6b7280;
1087
1087
  --ai-group-label-color: #6b7280;
@@ -1092,7 +1092,7 @@ button[data-pending=true]::after {
1092
1092
  --ai-button-secondary-text: #f3f4f6;
1093
1093
  --ai-button-secondary-border: #4b5563;
1094
1094
  --ai-button-secondary-hover: #4b5563;
1095
- --ai-button-ghost-hover: rgba(255, 255, 255, 0.08);
1095
+ --ai-button-ghost-hover: #1f2937;
1096
1096
  --ai-input-bg: #1f2937;
1097
1097
  --ai-input-border: #374151;
1098
1098
  --ai-input-text: #f3f4f6;
@@ -1286,7 +1286,7 @@ button[data-pending=true]::after {
1286
1286
  .ai-agent-panel__conversations {
1287
1287
  flex: 1;
1288
1288
  overflow-y: auto;
1289
- padding: 8px;
1289
+ padding: 8px 0;
1290
1290
  }
1291
1291
  .ai-agent-panel__empty {
1292
1292
  display: flex;
@@ -1312,15 +1312,15 @@ button[data-pending=true]::after {
1312
1312
  opacity: 0.7;
1313
1313
  }
1314
1314
  .ai-agent-panel__group {
1315
- margin-bottom: 16px;
1315
+ margin-bottom: 24px;
1316
1316
  }
1317
1317
  .ai-agent-panel__group-label {
1318
1318
  font-size: var(--ai-group-label-size);
1319
- font-weight: 600;
1319
+ font-weight: 400;
1320
1320
  color: var(--ai-group-label-color);
1321
1321
  text-transform: uppercase;
1322
- letter-spacing: 0.05em;
1323
- padding: 8px 8px 4px;
1322
+ letter-spacing: 0.1em;
1323
+ padding: 8px 12px 4px;
1324
1324
  }
1325
1325
  .ai-agent-panel__group-label--clickable {
1326
1326
  display: flex;
@@ -1328,10 +1328,10 @@ button[data-pending=true]::after {
1328
1328
  justify-content: space-between;
1329
1329
  cursor: pointer;
1330
1330
  user-select: none;
1331
- transition: color 0.15s;
1331
+ transition: opacity 0.15s;
1332
1332
  }
1333
1333
  .ai-agent-panel__group-label--clickable:hover {
1334
- color: var(--ai-sidebar-text);
1334
+ opacity: 0.7;
1335
1335
  }
1336
1336
  .ai-agent-panel__group-chevron {
1337
1337
  font-size: 8px;
@@ -1344,10 +1344,11 @@ button[data-pending=true]::after {
1344
1344
  .ai-agent-panel__conversation {
1345
1345
  display: flex;
1346
1346
  align-items: flex-start;
1347
- padding: 4px 8px;
1348
- border-radius: 6px;
1347
+ padding: 6px 12px;
1348
+ margin: 0;
1349
+ border-radius: 0;
1349
1350
  cursor: pointer;
1350
- transition: background-color 0.15s;
1351
+ transition: background-color 0.1s ease;
1351
1352
  gap: 8px;
1352
1353
  }
1353
1354
  .ai-agent-panel__conversation:hover {
@@ -1362,12 +1363,12 @@ button[data-pending=true]::after {
1362
1363
  }
1363
1364
  .ai-agent-panel__conversation-title {
1364
1365
  font-weight: 400;
1365
- font-size: 11px;
1366
- color: var(--ai-conversation-preview-color);
1366
+ font-size: 13px;
1367
+ color: var(--ai-conversation-title-color);
1367
1368
  white-space: nowrap;
1368
1369
  overflow: hidden;
1369
1370
  text-overflow: ellipsis;
1370
- margin-bottom: 2px;
1371
+ line-height: 1.5;
1371
1372
  }
1372
1373
  .ai-agent-panel__conversation-preview {
1373
1374
  font-size: 11px;
@@ -1908,22 +1909,25 @@ button[data-pending=true]::after {
1908
1909
  }
1909
1910
  }
1910
1911
  .ai-agent-panel__group--active {
1911
- background-color: var(--ai-conversation-active);
1912
- border-radius: 6px;
1913
- margin-bottom: 8px;
1914
- padding: 4px;
1912
+ margin-bottom: 24px;
1915
1913
  }
1916
1914
  .ai-agent-panel__group--active .ai-agent-panel__group-label {
1917
- color: var(--ai-button-primary-bg);
1918
- font-weight: 600;
1915
+ color: var(--ai-group-label-color);
1916
+ font-weight: 400;
1917
+ padding: 8px 12px 4px;
1919
1918
  }
1920
1919
  .ai-agent-panel__conversation--active-item {
1921
1920
  display: flex;
1922
1921
  align-items: center;
1923
1922
  justify-content: space-between;
1924
- background-color: var(--ai-sidebar-bg);
1925
- border-radius: 4px;
1926
- margin: 2px 0;
1923
+ background-color: transparent;
1924
+ padding: 6px 12px;
1925
+ margin: 0;
1926
+ transition: background-color 0.1s ease;
1927
+ cursor: pointer;
1928
+ }
1929
+ .ai-agent-panel__conversation--active-item:hover {
1930
+ background-color: var(--ai-conversation-hover);
1927
1931
  }
1928
1932
  .ai-agent-panel__conversation--active-item .ai-agent-panel__conversation-content {
1929
1933
  flex: 1;
@@ -1935,8 +1939,7 @@ button[data-pending=true]::after {
1935
1939
  gap: 6px;
1936
1940
  }
1937
1941
  .ai-agent-panel__conversation--current {
1938
- background-color: var(--ai-conversation-active) !important;
1939
- border-left: 2px solid var(--ai-button-primary-bg);
1942
+ background-color: rgba(59, 130, 246, 0.08) !important;
1940
1943
  }
1941
1944
  .ai-agent-panel__conversation--in-active {
1942
1945
  opacity: 0.7;
@@ -1972,8 +1975,9 @@ button[data-pending=true]::after {
1972
1975
  }
1973
1976
  .ai-agent-panel__active-badge {
1974
1977
  color: var(--ai-button-primary-bg);
1975
- font-size: 8px;
1976
- margin-right: 2px;
1978
+ font-size: 7px;
1979
+ margin-right: 4px;
1980
+ opacity: 0.8;
1977
1981
  }
1978
1982
  .ai-agent-panel__loading-dot {
1979
1983
  display: inline-block;
@@ -1996,7 +2000,7 @@ button[data-pending=true]::after {
1996
2000
  .ai-agent-panel__group-divider {
1997
2001
  height: 1px;
1998
2002
  background-color: var(--ai-sidebar-border);
1999
- margin: 12px 8px;
2003
+ margin: 20px 0;
2000
2004
  }
2001
2005
  .ai-agent-panel__chat-wrapper {
2002
2006
  position: absolute;
@@ -145,3 +145,5 @@ For complete documentation, see:
145
145
  - [Examples](../examples/controlled-collapse-example.tsx)
146
146
  - [Demo App](../examples/demo-app/src/App.tsx)
147
147
 
148
+
149
+
@@ -649,3 +649,5 @@ const handleCollapsedChange = (isCollapsed: boolean) => {
649
649
  - [Examples](../examples/controlled-collapse-example.tsx)
650
650
  - [Demo App](../examples/demo-app/src/App.tsx)
651
651
 
652
+
653
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hef2024/llmasaservice-ui",
3
- "version": "0.22.9",
3
+ "version": "0.22.10",
4
4
  "description": "Prebuilt UI components for LLMAsAService.io",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -17,12 +17,12 @@
17
17
  --ai-panel-transition: 0.2s ease;
18
18
 
19
19
  /* Sidebar Colors */
20
- --ai-sidebar-bg: #f8f9fa;
20
+ --ai-sidebar-bg: #ffffff;
21
21
  --ai-sidebar-border: #e5e7eb;
22
- --ai-sidebar-text: #374151;
22
+ --ai-sidebar-text: #111827;
23
23
  --ai-sidebar-text-muted: #6b7280;
24
- --ai-sidebar-hover: #f3f4f6;
25
- --ai-sidebar-active: #e5e7eb;
24
+ --ai-sidebar-hover: #f9fafb;
25
+ --ai-sidebar-active: #f3f4f6;
26
26
 
27
27
  /* Header */
28
28
  --ai-header-bg: #ffffff;
@@ -37,15 +37,15 @@
37
37
 
38
38
  /* Conversation List */
39
39
  --ai-conversation-bg: transparent;
40
- --ai-conversation-hover: rgba(0, 0, 0, 0.04);
41
- --ai-conversation-active: rgba(0, 0, 0, 0.08);
40
+ --ai-conversation-hover: rgba(0, 0, 0, 0.03);
41
+ --ai-conversation-active: rgba(0, 0, 0, 0.05);
42
42
  --ai-conversation-title-color: #1f2937;
43
43
  --ai-conversation-preview-color: #6b7280;
44
44
  --ai-conversation-meta-color: #9ca3af;
45
45
 
46
46
  /* Group Labels */
47
- --ai-group-label-color: #9ca3af;
48
- --ai-group-label-size: 0.75rem;
47
+ --ai-group-label-color: #6b7280;
48
+ --ai-group-label-size: 0.6875rem;
49
49
 
50
50
  /* Buttons */
51
51
  --ai-button-primary-bg: #3b82f6;
@@ -55,11 +55,11 @@
55
55
  --ai-button-secondary-text: #374151;
56
56
  --ai-button-secondary-border: #d1d5db;
57
57
  --ai-button-secondary-hover: #e5e7eb;
58
- --ai-button-ghost-hover: rgba(0, 0, 0, 0.06);
58
+ --ai-button-ghost-hover: #f3f4f6;
59
59
  --ai-button-destructive-bg: #ef4444;
60
60
  --ai-button-destructive-text: #ffffff;
61
61
  --ai-button-destructive-hover: #dc2626;
62
- --ai-button-radius: 6px;
62
+ --ai-button-radius: 4px;
63
63
 
64
64
  /* Input */
65
65
  --ai-input-bg: #ffffff;
@@ -68,7 +68,7 @@
68
68
  --ai-input-placeholder: #9ca3af;
69
69
  --ai-input-focus-border: #3b82f6;
70
70
  --ai-input-focus-ring: rgba(59, 130, 246, 0.2);
71
- --ai-input-radius: 6px;
71
+ --ai-input-radius: 4px;
72
72
 
73
73
  /* Select */
74
74
  --ai-select-bg: #ffffff;
@@ -119,24 +119,24 @@
119
119
  CSS Variables - Dark Theme
120
120
  -------------------------------------------------------- */
121
121
  .dark-theme {
122
- --ai-sidebar-bg: #1f2937;
123
- --ai-sidebar-border: #374151;
122
+ --ai-sidebar-bg: #111827;
123
+ --ai-sidebar-border: #1f2937;
124
124
  --ai-sidebar-text: #f3f4f6;
125
125
  --ai-sidebar-text-muted: #9ca3af;
126
- --ai-sidebar-hover: #374151;
127
- --ai-sidebar-active: #4b5563;
126
+ --ai-sidebar-hover: #1f2937;
127
+ --ai-sidebar-active: #374151;
128
128
 
129
- --ai-header-bg: #111827;
130
- --ai-header-border: #374151;
129
+ --ai-header-bg: #0d1117;
130
+ --ai-header-border: #1f2937;
131
131
 
132
132
  --ai-agent-badge-bg: #1e3a5f;
133
133
  --ai-agent-badge-text: #60a5fa;
134
134
  --ai-agent-selector-bg: #1f2937;
135
135
  --ai-agent-selector-border: #374151;
136
136
 
137
- --ai-conversation-hover: rgba(255, 255, 255, 0.04);
137
+ --ai-conversation-hover: rgba(255, 255, 255, 0.05);
138
138
  --ai-conversation-active: rgba(255, 255, 255, 0.08);
139
- --ai-conversation-title-color: #f3f4f6;
139
+ --ai-conversation-title-color: #e5e7eb;
140
140
  --ai-conversation-preview-color: #9ca3af;
141
141
  --ai-conversation-meta-color: #6b7280;
142
142
 
@@ -149,7 +149,7 @@
149
149
  --ai-button-secondary-text: #f3f4f6;
150
150
  --ai-button-secondary-border: #4b5563;
151
151
  --ai-button-secondary-hover: #4b5563;
152
- --ai-button-ghost-hover: rgba(255, 255, 255, 0.08);
152
+ --ai-button-ghost-hover: #1f2937;
153
153
 
154
154
  --ai-input-bg: #1f2937;
155
155
  --ai-input-border: #374151;
@@ -395,7 +395,7 @@
395
395
  .ai-agent-panel__conversations {
396
396
  flex: 1;
397
397
  overflow-y: auto;
398
- padding: 8px;
398
+ padding: 8px 0;
399
399
  }
400
400
 
401
401
  .ai-agent-panel__empty {
@@ -427,16 +427,16 @@
427
427
 
428
428
  /* Groups */
429
429
  .ai-agent-panel__group {
430
- margin-bottom: 16px;
430
+ margin-bottom: 24px;
431
431
  }
432
432
 
433
433
  .ai-agent-panel__group-label {
434
434
  font-size: var(--ai-group-label-size);
435
- font-weight: 600;
435
+ font-weight: 400;
436
436
  color: var(--ai-group-label-color);
437
437
  text-transform: uppercase;
438
- letter-spacing: 0.05em;
439
- padding: 8px 8px 4px;
438
+ letter-spacing: 0.1em;
439
+ padding: 8px 12px 4px;
440
440
  }
441
441
 
442
442
  .ai-agent-panel__group-label--clickable {
@@ -445,11 +445,11 @@
445
445
  justify-content: space-between;
446
446
  cursor: pointer;
447
447
  user-select: none;
448
- transition: color 0.15s;
448
+ transition: opacity 0.15s;
449
449
  }
450
450
 
451
451
  .ai-agent-panel__group-label--clickable:hover {
452
- color: var(--ai-sidebar-text);
452
+ opacity: 0.7;
453
453
  }
454
454
 
455
455
  .ai-agent-panel__group-chevron {
@@ -466,10 +466,11 @@
466
466
  .ai-agent-panel__conversation {
467
467
  display: flex;
468
468
  align-items: flex-start;
469
- padding: 4px 8px;
470
- border-radius: 6px;
469
+ padding: 6px 12px;
470
+ margin: 0;
471
+ border-radius: 0;
471
472
  cursor: pointer;
472
- transition: background-color 0.15s;
473
+ transition: background-color 0.1s ease;
473
474
  gap: 8px;
474
475
  }
475
476
 
@@ -488,12 +489,12 @@
488
489
 
489
490
  .ai-agent-panel__conversation-title {
490
491
  font-weight: 400;
491
- font-size: 11px;
492
- color: var(--ai-conversation-preview-color);
492
+ font-size: 13px;
493
+ color: var(--ai-conversation-title-color);
493
494
  white-space: nowrap;
494
495
  overflow: hidden;
495
496
  text-overflow: ellipsis;
496
- margin-bottom: 2px;
497
+ line-height: 1.5;
497
498
  }
498
499
 
499
500
  .ai-agent-panel__conversation-preview {
@@ -1169,24 +1170,28 @@
1169
1170
  -------------------------------------------------------- */
1170
1171
 
1171
1172
  .ai-agent-panel__group--active {
1172
- background-color: var(--ai-conversation-active);
1173
- border-radius: 6px;
1174
- margin-bottom: 8px;
1175
- padding: 4px;
1173
+ margin-bottom: 24px;
1176
1174
  }
1177
1175
 
1178
1176
  .ai-agent-panel__group--active .ai-agent-panel__group-label {
1179
- color: var(--ai-button-primary-bg);
1180
- font-weight: 600;
1177
+ color: var(--ai-group-label-color);
1178
+ font-weight: 400;
1179
+ padding: 8px 12px 4px;
1181
1180
  }
1182
1181
 
1183
1182
  .ai-agent-panel__conversation--active-item {
1184
1183
  display: flex;
1185
1184
  align-items: center;
1186
1185
  justify-content: space-between;
1187
- background-color: var(--ai-sidebar-bg);
1188
- border-radius: 4px;
1189
- margin: 2px 0;
1186
+ background-color: transparent;
1187
+ padding: 6px 12px;
1188
+ margin: 0;
1189
+ transition: background-color 0.1s ease;
1190
+ cursor: pointer;
1191
+ }
1192
+
1193
+ .ai-agent-panel__conversation--active-item:hover {
1194
+ background-color: var(--ai-conversation-hover);
1190
1195
  }
1191
1196
 
1192
1197
  .ai-agent-panel__conversation--active-item .ai-agent-panel__conversation-content {
@@ -1201,8 +1206,7 @@
1201
1206
  }
1202
1207
 
1203
1208
  .ai-agent-panel__conversation--current {
1204
- background-color: var(--ai-conversation-active) !important;
1205
- border-left: 2px solid var(--ai-button-primary-bg);
1209
+ background-color: rgba(59, 130, 246, 0.08) !important;
1206
1210
  }
1207
1211
 
1208
1212
  .ai-agent-panel__conversation--in-active {
@@ -1243,8 +1247,9 @@
1243
1247
  /* Active badge for conversations in history */
1244
1248
  .ai-agent-panel__active-badge {
1245
1249
  color: var(--ai-button-primary-bg);
1246
- font-size: 8px;
1247
- margin-right: 2px;
1250
+ font-size: 7px;
1251
+ margin-right: 4px;
1252
+ opacity: 0.8;
1248
1253
  }
1249
1254
 
1250
1255
  /* Loading dot indicator */
@@ -1272,7 +1277,7 @@
1272
1277
  .ai-agent-panel__group-divider {
1273
1278
  height: 1px;
1274
1279
  background-color: var(--ai-sidebar-border);
1275
- margin: 12px 8px;
1280
+ margin: 20px 0;
1276
1281
  }
1277
1282
 
1278
1283
  /* Chat wrapper for multi-conversation support */