@agentiffai/design 1.3.4 → 1.3.6
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/copilotkit/index.cjs +109 -6
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +109 -6
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +98 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +98 -11
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +50 -2
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.js +50 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/theme/index.cjs +35 -0
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.js +35 -0
- package/dist/theme/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -617,7 +617,6 @@ var ChatInput = ({
|
|
|
617
617
|
if (inputRef.current) {
|
|
618
618
|
inputRef.current.style.height = "auto";
|
|
619
619
|
}
|
|
620
|
-
inputRef.current?.focus();
|
|
621
620
|
}
|
|
622
621
|
};
|
|
623
622
|
const handleSuggestionClick = (suggestionText) => {
|
|
@@ -1164,6 +1163,30 @@ var Container3 = styled11__default.default.nav`
|
|
|
1164
1163
|
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
1165
1164
|
width: 60px; /* Match MainPane left offset on mobile */
|
|
1166
1165
|
}
|
|
1166
|
+
|
|
1167
|
+
/* Mobile landscape: allow content to overflow and scroll with thin scrollbar */
|
|
1168
|
+
@media (orientation: landscape) and (max-height: 500px) {
|
|
1169
|
+
width: 60px;
|
|
1170
|
+
overflow-y: auto;
|
|
1171
|
+
overflow-x: hidden;
|
|
1172
|
+
scrollbar-width: thin; /* Firefox - show thin scrollbar */
|
|
1173
|
+
|
|
1174
|
+
/* Show thin scrollbar for Chrome, Safari */
|
|
1175
|
+
&::-webkit-scrollbar {
|
|
1176
|
+
display: block;
|
|
1177
|
+
width: 3px;
|
|
1178
|
+
height: 3px;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
&::-webkit-scrollbar-track {
|
|
1182
|
+
background: transparent;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
&::-webkit-scrollbar-thumb {
|
|
1186
|
+
background: ${tokens.colors.border.default};
|
|
1187
|
+
border-radius: 2px;
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1167
1190
|
`;
|
|
1168
1191
|
var TopSection = styled11__default.default.div`
|
|
1169
1192
|
display: flex;
|
|
@@ -1194,6 +1217,7 @@ var BackButton = styled11__default.default.button`
|
|
|
1194
1217
|
align-items: center;
|
|
1195
1218
|
justify-content: center;
|
|
1196
1219
|
transition: all ${tokens.transitions.normal};
|
|
1220
|
+
-webkit-tap-highlight-color: transparent;
|
|
1197
1221
|
|
|
1198
1222
|
&:hover {
|
|
1199
1223
|
background-color: ${tokens.colors.primary};
|
|
@@ -1201,6 +1225,7 @@ var BackButton = styled11__default.default.button`
|
|
|
1201
1225
|
|
|
1202
1226
|
&:active {
|
|
1203
1227
|
transform: translate(-50%, -50%) scale(0.95);
|
|
1228
|
+
opacity: 0.8;
|
|
1204
1229
|
}
|
|
1205
1230
|
|
|
1206
1231
|
&:focus {
|
|
@@ -1251,6 +1276,12 @@ var FolderGroupsSlot = styled11__default.default.div`
|
|
|
1251
1276
|
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
1252
1277
|
padding: 0 6px ${tokens.spacing.md} 96px; /* Reduce horizontal padding on mobile */
|
|
1253
1278
|
}
|
|
1279
|
+
|
|
1280
|
+
/* Mobile landscape: remove extra padding since BottomSection flows with content */
|
|
1281
|
+
@media (orientation: landscape) and (max-height: 500px) {
|
|
1282
|
+
padding-bottom: ${tokens.spacing.md};
|
|
1283
|
+
flex: 0 0 auto; /* Don't flex-grow, allow natural height */
|
|
1284
|
+
}
|
|
1254
1285
|
`;
|
|
1255
1286
|
var BottomSection = styled11__default.default.div`
|
|
1256
1287
|
position: absolute;
|
|
@@ -1267,11 +1298,19 @@ var BottomSection = styled11__default.default.div`
|
|
|
1267
1298
|
@media (prefers-color-scheme: dark) {
|
|
1268
1299
|
background-color: ${tokens.colors.background.darkest};
|
|
1269
1300
|
}
|
|
1301
|
+
|
|
1302
|
+
/* Mobile landscape: make bottom section flow with content instead of fixed */
|
|
1303
|
+
@media (orientation: landscape) and (max-height: 500px) {
|
|
1304
|
+
position: relative;
|
|
1305
|
+
bottom: auto;
|
|
1306
|
+
margin-top: auto; /* Push to bottom of flex container */
|
|
1307
|
+
flex-shrink: 0;
|
|
1308
|
+
}
|
|
1270
1309
|
`;
|
|
1271
1310
|
var BottomButton = styled11__default.default.button`
|
|
1272
1311
|
width: 40px;
|
|
1273
1312
|
height: 40px;
|
|
1274
|
-
border-radius:
|
|
1313
|
+
border-radius: ${tokens.borderRadius.full};
|
|
1275
1314
|
border: none;
|
|
1276
1315
|
background-color: transparent;
|
|
1277
1316
|
color: white;
|
|
@@ -1280,6 +1319,7 @@ var BottomButton = styled11__default.default.button`
|
|
|
1280
1319
|
align-items: center;
|
|
1281
1320
|
justify-content: center;
|
|
1282
1321
|
transition: all ${tokens.transitions.normal};
|
|
1322
|
+
-webkit-tap-highlight-color: transparent;
|
|
1283
1323
|
|
|
1284
1324
|
&:hover {
|
|
1285
1325
|
opacity: 0.7;
|
|
@@ -1287,6 +1327,7 @@ var BottomButton = styled11__default.default.button`
|
|
|
1287
1327
|
|
|
1288
1328
|
&:active {
|
|
1289
1329
|
transform: scale(0.95);
|
|
1330
|
+
opacity: 0.8;
|
|
1290
1331
|
}
|
|
1291
1332
|
|
|
1292
1333
|
&:focus {
|
|
@@ -1296,6 +1337,7 @@ var BottomButton = styled11__default.default.button`
|
|
|
1296
1337
|
&:focus-visible {
|
|
1297
1338
|
outline: 2px solid ${tokens.colors.border.focus};
|
|
1298
1339
|
outline-offset: 2px;
|
|
1340
|
+
border-radius: ${tokens.borderRadius.full};
|
|
1299
1341
|
}
|
|
1300
1342
|
`;
|
|
1301
1343
|
function NavVertical({
|
|
@@ -1371,6 +1413,7 @@ var BackgroundPane = styled11__default.default.div`
|
|
|
1371
1413
|
bottom: 52px; /* Height of horizontal nav */
|
|
1372
1414
|
background-color: transparent;
|
|
1373
1415
|
overflow: auto;
|
|
1416
|
+
scrollbar-gutter: stable; /* Reserve space for scrollbar to prevent layout shift */
|
|
1374
1417
|
z-index: ${tokens.zIndex.base}; /* Lower than MainPane */
|
|
1375
1418
|
|
|
1376
1419
|
/* Custom scrollbar styling */
|
|
@@ -1409,6 +1452,7 @@ var MainPane = styled11__default.default.main`
|
|
|
1409
1452
|
bottom: 52px; /* Height of horizontal nav */
|
|
1410
1453
|
background-color: ${tokens.colors.surface.overlay};
|
|
1411
1454
|
overflow: auto;
|
|
1455
|
+
scrollbar-gutter: stable; /* Reserve space for scrollbar to prevent layout shift */
|
|
1412
1456
|
z-index: ${tokens.zIndex.base + 1}; /* Higher than BackgroundPane */
|
|
1413
1457
|
|
|
1414
1458
|
/* Custom scrollbar styling */
|
|
@@ -1485,7 +1529,7 @@ var ActionButton = styled11__default.default.button`
|
|
|
1485
1529
|
height: ${({ $size = 32 }) => $size}px;
|
|
1486
1530
|
min-width: ${({ $size = 32 }) => $size}px;
|
|
1487
1531
|
min-height: ${({ $size = 32 }) => $size}px;
|
|
1488
|
-
border-radius: ${({ $isPrimary }) => $isPrimary ? tokens.borderRadius.full : tokens.borderRadius.
|
|
1532
|
+
border-radius: ${({ $isPrimary }) => $isPrimary ? tokens.borderRadius.full : tokens.borderRadius.md};
|
|
1489
1533
|
border: none;
|
|
1490
1534
|
background-color: ${({ $isPrimary }) => $isPrimary ? tokens.colors.primary : "transparent"};
|
|
1491
1535
|
color: ${({ $isPrimary }) => $isPrimary ? tokens.colors.text.primary : tokens.colors.text.secondary};
|
|
@@ -1495,6 +1539,7 @@ var ActionButton = styled11__default.default.button`
|
|
|
1495
1539
|
justify-content: center;
|
|
1496
1540
|
transition: all ${tokens.transitions.fast};
|
|
1497
1541
|
font-size: ${tokens.typography.fontSize.base};
|
|
1542
|
+
-webkit-tap-highlight-color: transparent;
|
|
1498
1543
|
|
|
1499
1544
|
&:hover {
|
|
1500
1545
|
background-color: ${({ $isPrimary }) => $isPrimary ? tokens.colors.secondary : tokens.colors.surface.overlayHover};
|
|
@@ -1503,6 +1548,7 @@ var ActionButton = styled11__default.default.button`
|
|
|
1503
1548
|
|
|
1504
1549
|
&:active {
|
|
1505
1550
|
transform: scale(0.95);
|
|
1551
|
+
opacity: 0.8;
|
|
1506
1552
|
}
|
|
1507
1553
|
|
|
1508
1554
|
${({ $isActive, $isPrimary }) => $isActive && !$isPrimary && styled11.css`
|
|
@@ -2161,6 +2207,7 @@ var TabPanelWrapper = styled11__default.default.div`
|
|
|
2161
2207
|
padding: ${tokens.spacing.lg};
|
|
2162
2208
|
overflow-y: auto;
|
|
2163
2209
|
overflow-x: hidden; // Prevent horizontal overflow
|
|
2210
|
+
scrollbar-gutter: stable; // Always reserve space for scrollbar to prevent width jump
|
|
2164
2211
|
background-color: ${tokens.colors.surface.overlay};
|
|
2165
2212
|
min-height: 0; // Enable proper flex shrinking and scrolling
|
|
2166
2213
|
|
|
@@ -3754,6 +3801,7 @@ var StyledUserMessage = styled11__default.default.button`
|
|
|
3754
3801
|
user-select: none;
|
|
3755
3802
|
white-space: pre-wrap;
|
|
3756
3803
|
word-wrap: break-word;
|
|
3804
|
+
word-break: break-word;
|
|
3757
3805
|
position: relative;
|
|
3758
3806
|
text-align: left;
|
|
3759
3807
|
|
|
@@ -3927,12 +3975,23 @@ var darkTheme = {
|
|
|
3927
3975
|
breakpoints: tokens.breakpoints
|
|
3928
3976
|
};
|
|
3929
3977
|
var GlobalStyle = styled11.createGlobalStyle`
|
|
3978
|
+
/* Universal tap highlight removal - nuclear option for Android WebKit */
|
|
3979
|
+
* {
|
|
3980
|
+
-webkit-tap-highlight-color: transparent !important;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3930
3983
|
*,
|
|
3931
3984
|
*::before,
|
|
3932
3985
|
*::after {
|
|
3933
3986
|
box-sizing: border-box;
|
|
3934
3987
|
}
|
|
3935
3988
|
|
|
3989
|
+
html {
|
|
3990
|
+
/* Ensure tap highlight is disabled at root level */
|
|
3991
|
+
-webkit-tap-highlight-color: transparent;
|
|
3992
|
+
-webkit-touch-callout: none;
|
|
3993
|
+
}
|
|
3994
|
+
|
|
3936
3995
|
body {
|
|
3937
3996
|
margin: 0;
|
|
3938
3997
|
padding: 0;
|
|
@@ -3941,10 +4000,34 @@ var GlobalStyle = styled11.createGlobalStyle`
|
|
|
3941
4000
|
background-color: ${({ theme }) => theme.colors.surface};
|
|
3942
4001
|
-webkit-font-smoothing: antialiased;
|
|
3943
4002
|
-moz-osx-font-smoothing: grayscale;
|
|
4003
|
+
/* Disable tap highlight on body as well */
|
|
4004
|
+
-webkit-tap-highlight-color: transparent;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
/* Remove mobile tap highlight for ALL interactive elements */
|
|
4008
|
+
a,
|
|
4009
|
+
button,
|
|
4010
|
+
input,
|
|
4011
|
+
select,
|
|
4012
|
+
textarea,
|
|
4013
|
+
label,
|
|
4014
|
+
[role="button"],
|
|
4015
|
+
[role="link"],
|
|
4016
|
+
[role="tab"],
|
|
4017
|
+
[role="menuitem"],
|
|
4018
|
+
[role="option"],
|
|
4019
|
+
[tabindex]:not([tabindex="-1"]),
|
|
4020
|
+
[onclick] {
|
|
4021
|
+
-webkit-tap-highlight-color: transparent !important;
|
|
4022
|
+
-webkit-touch-callout: none;
|
|
4023
|
+
touch-action: manipulation;
|
|
3944
4024
|
}
|
|
3945
4025
|
|
|
3946
4026
|
button {
|
|
3947
4027
|
font-family: inherit;
|
|
4028
|
+
/* Prevent text selection flash on tap */
|
|
4029
|
+
user-select: none;
|
|
4030
|
+
-webkit-user-select: none;
|
|
3948
4031
|
}
|
|
3949
4032
|
`;
|
|
3950
4033
|
|
|
@@ -5349,7 +5432,7 @@ var Input2 = ({
|
|
|
5349
5432
|
] }) });
|
|
5350
5433
|
};
|
|
5351
5434
|
var Container12 = styled11__default.default.div`
|
|
5352
|
-
font-family: ${(props) => props
|
|
5435
|
+
font-family: ${(props) => props.$variant === "code" ? tokens.typography.fontFamily.monospace : tokens.typography.fontFamily.primary};
|
|
5353
5436
|
white-space: pre-wrap;
|
|
5354
5437
|
word-break: break-word;
|
|
5355
5438
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
@@ -5402,7 +5485,7 @@ var StreamingTextBase = ({
|
|
|
5402
5485
|
wasStreamingRef.current = isStreaming;
|
|
5403
5486
|
}, [content, isStreaming, onStreamComplete]);
|
|
5404
5487
|
const showCursor = isStreaming && cursor;
|
|
5405
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Container12, { variant, className, children: [
|
|
5488
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Container12, { $variant: variant, className, children: [
|
|
5406
5489
|
displayedText,
|
|
5407
5490
|
showCursor && /* @__PURE__ */ jsxRuntime.jsx(Cursor, {})
|
|
5408
5491
|
] });
|
|
@@ -8187,7 +8270,7 @@ PostPreviewCard.displayName = "PostPreviewCard";
|
|
|
8187
8270
|
var fadeIn2 = styled11.keyframes`
|
|
8188
8271
|
from {
|
|
8189
8272
|
opacity: 0;
|
|
8190
|
-
transform:
|
|
8273
|
+
transform: translate(2px, 2px);
|
|
8191
8274
|
}
|
|
8192
8275
|
to {
|
|
8193
8276
|
opacity: 1;
|
|
@@ -8549,6 +8632,9 @@ var ContentContainer2 = styled11__default.default.div`
|
|
|
8549
8632
|
position: relative;
|
|
8550
8633
|
min-height: 200px;
|
|
8551
8634
|
overflow: hidden;
|
|
8635
|
+
/* Padding to prevent card borders/shadows from being clipped */
|
|
8636
|
+
padding: 0 ${tokens.spacing.xs};
|
|
8637
|
+
margin: 0 -${tokens.spacing.xs};
|
|
8552
8638
|
`;
|
|
8553
8639
|
var Slide = styled11__default.default.div`
|
|
8554
8640
|
position: ${({ $isActive }) => $isActive ? "relative" : "absolute"};
|
|
@@ -8691,7 +8777,7 @@ var Container14 = styled11__default.default.div`
|
|
|
8691
8777
|
flex-direction: column;
|
|
8692
8778
|
height: 100%;
|
|
8693
8779
|
width: 100%;
|
|
8694
|
-
padding:
|
|
8780
|
+
padding: 0;
|
|
8695
8781
|
box-sizing: border-box;
|
|
8696
8782
|
background: linear-gradient(
|
|
8697
8783
|
180deg,
|
|
@@ -8716,12 +8802,12 @@ var Header3 = styled11__default.default.div`
|
|
|
8716
8802
|
position: absolute;
|
|
8717
8803
|
left: 0;
|
|
8718
8804
|
right: 0;
|
|
8719
|
-
top:
|
|
8720
|
-
height:
|
|
8805
|
+
top: 100%;
|
|
8806
|
+
height: 16px;
|
|
8721
8807
|
background: linear-gradient(
|
|
8722
8808
|
to bottom,
|
|
8723
8809
|
${tokens.colors.backdrop} 0%,
|
|
8724
|
-
|
|
8810
|
+
transparent 100%
|
|
8725
8811
|
);
|
|
8726
8812
|
pointer-events: none;
|
|
8727
8813
|
}
|
|
@@ -8773,7 +8859,8 @@ var Content4 = styled11__default.default.div`
|
|
|
8773
8859
|
flex: 1;
|
|
8774
8860
|
display: flex;
|
|
8775
8861
|
flex-direction: column;
|
|
8776
|
-
overflow:
|
|
8862
|
+
overflow-x: hidden;
|
|
8863
|
+
overflow-y: auto;
|
|
8777
8864
|
/* Extra top padding to account for header fade overlay */
|
|
8778
8865
|
padding-top: ${tokens.spacing.md};
|
|
8779
8866
|
`;
|