@agentiffai/design 1.3.3 → 1.3.5
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 +13 -1
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +13 -1
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +110 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +110 -31
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +37 -13
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +3 -1
- package/dist/layout/index.d.ts +3 -1
- package/dist/layout/index.js +37 -13
- package/dist/layout/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1088,12 +1088,16 @@ var ContentWrapper = styled11__default.default.div`
|
|
|
1088
1088
|
align-items: center;
|
|
1089
1089
|
/* Fixed height for actual navbar content - keeps vertical centering */
|
|
1090
1090
|
height: 52px;
|
|
1091
|
-
padding
|
|
1091
|
+
/* Left padding aligns WorkflowStatusCard icon with NavVertical icons (center at 36px) */
|
|
1092
|
+
/* Icon is 36px with 6px card padding, so card edge at 12px, icon center at 12+6+18=36px */
|
|
1093
|
+
padding: 0 ${tokens.spacing.xs} 0 12px;
|
|
1094
|
+
gap: ${tokens.spacing.xs}; /* 4px gap between status card and action buttons */
|
|
1092
1095
|
max-width: 100%;
|
|
1093
1096
|
|
|
1094
|
-
/* Responsive padding */
|
|
1095
|
-
@media (
|
|
1096
|
-
|
|
1097
|
+
/* Responsive padding - adjust for mobile nav width (60px, center at 30px) */
|
|
1098
|
+
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
1099
|
+
/* Card edge at 6px, icon center at 6+6+18=30px to match 60px nav */
|
|
1100
|
+
padding: 0 ${tokens.spacing.xs} 0 6px;
|
|
1097
1101
|
}
|
|
1098
1102
|
`;
|
|
1099
1103
|
var UserStatusSlot = styled11__default.default.div`
|
|
@@ -1583,9 +1587,9 @@ var Container6 = styled11__default.default.button`
|
|
|
1583
1587
|
display: grid;
|
|
1584
1588
|
grid-template-columns: auto 1fr;
|
|
1585
1589
|
align-items: center;
|
|
1586
|
-
gap: ${tokens.spacing.
|
|
1590
|
+
gap: ${tokens.spacing.sm};
|
|
1587
1591
|
padding: 6px;
|
|
1588
|
-
margin:
|
|
1592
|
+
margin: 0; /* No margin - positioning handled by parent slot */
|
|
1589
1593
|
border-radius: ${tokens.borderRadius.md};
|
|
1590
1594
|
border: none;
|
|
1591
1595
|
background: ${tokens.colors.surface.subtle};
|
|
@@ -1595,19 +1599,27 @@ var Container6 = styled11__default.default.button`
|
|
|
1595
1599
|
cursor: ${(props) => props.$isDisabled ? "default" : "pointer"};
|
|
1596
1600
|
opacity: ${(props) => props.$isDisabled ? 0.7 : 1};
|
|
1597
1601
|
text-align: left;
|
|
1598
|
-
width:
|
|
1602
|
+
width: 100%; /* Fill available slot width */
|
|
1603
|
+
/* Remove mobile tap highlight that causes blue flash */
|
|
1604
|
+
-webkit-tap-highlight-color: transparent;
|
|
1599
1605
|
|
|
1600
1606
|
&:hover:not(:disabled) {
|
|
1601
1607
|
background-color: ${(props) => props.$isDisabled ? tokens.colors.surface.subtle : tokens.colors.surface.overlay};
|
|
1602
1608
|
}
|
|
1603
1609
|
|
|
1610
|
+
&:focus {
|
|
1611
|
+
outline: none;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1604
1614
|
&:focus-visible {
|
|
1605
|
-
outline:
|
|
1606
|
-
|
|
1615
|
+
outline: none;
|
|
1616
|
+
/* Subtle focus ring instead of bright color */
|
|
1617
|
+
box-shadow: inset 0 0 0 1px ${tokens.colors.border.default};
|
|
1607
1618
|
}
|
|
1608
1619
|
|
|
1609
1620
|
&:active:not(:disabled) {
|
|
1610
|
-
|
|
1621
|
+
/* Subtle press feedback - no color flash */
|
|
1622
|
+
opacity: 0.9;
|
|
1611
1623
|
}
|
|
1612
1624
|
`;
|
|
1613
1625
|
var IconWrapper2 = styled11__default.default.div`
|
|
@@ -1643,6 +1655,16 @@ var WorkflowStatus = styled11__default.default.span`
|
|
|
1643
1655
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
1644
1656
|
text-transform: capitalize;
|
|
1645
1657
|
`;
|
|
1658
|
+
var WorkflowSubtitle = styled11__default.default.span`
|
|
1659
|
+
color: ${tokens.colors.text.tertiary};
|
|
1660
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
1661
|
+
font-weight: ${tokens.typography.fontWeight.regular};
|
|
1662
|
+
line-height: ${tokens.typography.lineHeight.tight};
|
|
1663
|
+
opacity: 0.7;
|
|
1664
|
+
overflow: hidden;
|
|
1665
|
+
text-overflow: ellipsis;
|
|
1666
|
+
white-space: nowrap;
|
|
1667
|
+
`;
|
|
1646
1668
|
var StatusIndicatorOuter = styled11__default.default.span`
|
|
1647
1669
|
position: absolute;
|
|
1648
1670
|
bottom: -2px;
|
|
@@ -1666,6 +1688,7 @@ function WorkflowStatusCard({
|
|
|
1666
1688
|
workflowName,
|
|
1667
1689
|
status = "offline",
|
|
1668
1690
|
statusText,
|
|
1691
|
+
subtitle,
|
|
1669
1692
|
className,
|
|
1670
1693
|
onClick,
|
|
1671
1694
|
onPress,
|
|
@@ -1694,7 +1717,8 @@ function WorkflowStatusCard({
|
|
|
1694
1717
|
] }),
|
|
1695
1718
|
/* @__PURE__ */ jsxRuntime.jsxs(WorkflowInfo, { children: [
|
|
1696
1719
|
/* @__PURE__ */ jsxRuntime.jsx(WorkflowName, { children: workflowName }),
|
|
1697
|
-
/* @__PURE__ */ jsxRuntime.jsx(WorkflowStatus, { children: displayStatus })
|
|
1720
|
+
/* @__PURE__ */ jsxRuntime.jsx(WorkflowStatus, { children: displayStatus }),
|
|
1721
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx(WorkflowSubtitle, { children: subtitle })
|
|
1698
1722
|
] })
|
|
1699
1723
|
] });
|
|
1700
1724
|
}
|
|
@@ -2777,8 +2801,8 @@ function WorkflowGroupItem({
|
|
|
2777
2801
|
return /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: groupId, children: [
|
|
2778
2802
|
/* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", style: { paddingLeft: "8px" }, children: [
|
|
2779
2803
|
/* @__PURE__ */ jsxRuntime.jsxs(CategoryTitle, { children: [
|
|
2780
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: tokens.typography.fontSize.
|
|
2781
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: tokens.typography.fontSize.
|
|
2804
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: tokens.typography.fontSize.sm, fontWeight: 400 }, children: group.workflowName }),
|
|
2805
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: tokens.typography.fontSize.xs, color: tokens.colors.text.tertiary, marginLeft: "8px" }, children: [
|
|
2782
2806
|
"(",
|
|
2783
2807
|
group.runs.length,
|
|
2784
2808
|
")"
|
|
@@ -5921,6 +5945,11 @@ var MessageBubble = styled11__default.default.div`
|
|
|
5921
5945
|
/* Smooth transitions */
|
|
5922
5946
|
transition: all ${tokens.transitions.fast};
|
|
5923
5947
|
|
|
5948
|
+
/* Ensure long strings don't overflow */
|
|
5949
|
+
overflow: hidden;
|
|
5950
|
+
overflow-wrap: break-word;
|
|
5951
|
+
word-break: break-word;
|
|
5952
|
+
|
|
5924
5953
|
/* Username styling */
|
|
5925
5954
|
strong {
|
|
5926
5955
|
font-size: ${tokens.typography.fontSize.xs};
|
|
@@ -5934,6 +5963,8 @@ var MessageContent2 = styled11__default.default.p`
|
|
|
5934
5963
|
font-size: ${tokens.typography.fontSize.sm};
|
|
5935
5964
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
5936
5965
|
word-wrap: break-word;
|
|
5966
|
+
overflow-wrap: break-word;
|
|
5967
|
+
word-break: break-word;
|
|
5937
5968
|
white-space: pre-wrap;
|
|
5938
5969
|
`;
|
|
5939
5970
|
var MessageTime2 = styled11__default.default.time`
|
|
@@ -8156,7 +8187,7 @@ PostPreviewCard.displayName = "PostPreviewCard";
|
|
|
8156
8187
|
var fadeIn2 = styled11.keyframes`
|
|
8157
8188
|
from {
|
|
8158
8189
|
opacity: 0;
|
|
8159
|
-
transform:
|
|
8190
|
+
transform: translate(2px, 2px);
|
|
8160
8191
|
}
|
|
8161
8192
|
to {
|
|
8162
8193
|
opacity: 1;
|
|
@@ -8518,6 +8549,9 @@ var ContentContainer2 = styled11__default.default.div`
|
|
|
8518
8549
|
position: relative;
|
|
8519
8550
|
min-height: 200px;
|
|
8520
8551
|
overflow: hidden;
|
|
8552
|
+
/* Padding to prevent card borders/shadows from being clipped */
|
|
8553
|
+
padding: 0 ${tokens.spacing.xs};
|
|
8554
|
+
margin: 0 -${tokens.spacing.xs};
|
|
8521
8555
|
`;
|
|
8522
8556
|
var Slide = styled11__default.default.div`
|
|
8523
8557
|
position: ${({ $isActive }) => $isActive ? "relative" : "absolute"};
|
|
@@ -8660,7 +8694,7 @@ var Container14 = styled11__default.default.div`
|
|
|
8660
8694
|
flex-direction: column;
|
|
8661
8695
|
height: 100%;
|
|
8662
8696
|
width: 100%;
|
|
8663
|
-
padding:
|
|
8697
|
+
padding: 1.5rem ${tokens.spacing.md} 0 ${tokens.spacing.md};
|
|
8664
8698
|
box-sizing: border-box;
|
|
8665
8699
|
background: linear-gradient(
|
|
8666
8700
|
180deg,
|
|
@@ -8673,32 +8707,66 @@ var Header3 = styled11__default.default.div`
|
|
|
8673
8707
|
display: flex;
|
|
8674
8708
|
justify-content: space-between;
|
|
8675
8709
|
align-items: center;
|
|
8676
|
-
|
|
8677
|
-
padding
|
|
8678
|
-
|
|
8710
|
+
gap: ${tokens.spacing.sm};
|
|
8711
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
8712
|
+
position: relative;
|
|
8713
|
+
z-index: 1;
|
|
8714
|
+
background: ${tokens.colors.backdrop};
|
|
8715
|
+
|
|
8716
|
+
/* Gradient fade from solid to transparent (blends into content below) */
|
|
8717
|
+
&::after {
|
|
8718
|
+
content: '';
|
|
8719
|
+
position: absolute;
|
|
8720
|
+
left: 0;
|
|
8721
|
+
right: 0;
|
|
8722
|
+
top: 87%;
|
|
8723
|
+
height: 24px;
|
|
8724
|
+
background: linear-gradient(
|
|
8725
|
+
to bottom,
|
|
8726
|
+
${tokens.colors.backdrop} 100%,
|
|
8727
|
+
rgba(255, 255, 255, 0)
|
|
8728
|
+
);
|
|
8729
|
+
pointer-events: none;
|
|
8730
|
+
}
|
|
8679
8731
|
`;
|
|
8680
8732
|
var Title = styled11__default.default.h2`
|
|
8681
8733
|
margin: 0;
|
|
8682
|
-
font-size: ${tokens.typography.fontSize.
|
|
8734
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
8683
8735
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8684
8736
|
color: ${tokens.colors.text.primary};
|
|
8737
|
+
white-space: nowrap;
|
|
8738
|
+
overflow: hidden;
|
|
8739
|
+
text-overflow: ellipsis;
|
|
8740
|
+
min-width: 0;
|
|
8685
8741
|
`;
|
|
8686
8742
|
var ViewToggle = styled11__default.default.div`
|
|
8687
8743
|
display: flex;
|
|
8688
|
-
gap: ${tokens.spacing.
|
|
8744
|
+
gap: ${tokens.spacing.xs};
|
|
8745
|
+
flex-shrink: 0;
|
|
8689
8746
|
`;
|
|
8690
8747
|
var ToggleButton = styled11__default.default.button`
|
|
8691
|
-
padding: ${tokens.spacing.xs}
|
|
8748
|
+
padding: ${tokens.spacing.xs};
|
|
8749
|
+
width: 32px;
|
|
8750
|
+
height: 32px;
|
|
8751
|
+
display: flex;
|
|
8752
|
+
align-items: center;
|
|
8753
|
+
justify-content: center;
|
|
8692
8754
|
border: none;
|
|
8693
8755
|
border-radius: ${tokens.borderRadius.md};
|
|
8694
|
-
font-size: ${tokens.typography.fontSize.sm};
|
|
8695
|
-
font-weight: ${tokens.typography.fontWeight.medium};
|
|
8696
8756
|
cursor: pointer;
|
|
8697
8757
|
transition: all ${tokens.transitions.fast};
|
|
8698
8758
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}33` : tokens.colors.surface.overlay};
|
|
8699
8759
|
color: ${({ $active }) => $active ? tokens.colors.primary : tokens.colors.text.secondary};
|
|
8700
8760
|
border: 1px solid
|
|
8701
8761
|
${({ $active }) => $active ? tokens.colors.primary : tokens.colors.border.default};
|
|
8762
|
+
/* Remove mobile tap highlight */
|
|
8763
|
+
-webkit-tap-highlight-color: transparent;
|
|
8764
|
+
|
|
8765
|
+
svg {
|
|
8766
|
+
width: 18px;
|
|
8767
|
+
height: 18px;
|
|
8768
|
+
fill: currentColor;
|
|
8769
|
+
}
|
|
8702
8770
|
|
|
8703
8771
|
&:hover {
|
|
8704
8772
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}4D` : tokens.colors.surface.overlayHover};
|
|
@@ -8709,6 +8777,8 @@ var Content4 = styled11__default.default.div`
|
|
|
8709
8777
|
display: flex;
|
|
8710
8778
|
flex-direction: column;
|
|
8711
8779
|
overflow: auto;
|
|
8780
|
+
/* Extra top padding to account for header fade overlay */
|
|
8781
|
+
padding-top: ${tokens.spacing.md};
|
|
8712
8782
|
`;
|
|
8713
8783
|
var EmptyState3 = styled11__default.default.div`
|
|
8714
8784
|
display: flex;
|
|
@@ -8790,7 +8860,9 @@ var SocialMediaCanvas = ({
|
|
|
8790
8860
|
$active: viewMode === "carousel",
|
|
8791
8861
|
onClick: () => setViewMode("carousel"),
|
|
8792
8862
|
type: "button",
|
|
8793
|
-
|
|
8863
|
+
"aria-label": "Carousel view",
|
|
8864
|
+
title: "Carousel view",
|
|
8865
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2 6h4v12H2V6zm7 0h6v12H9V6zm9 0h4v12h-4V6z" }) })
|
|
8794
8866
|
}
|
|
8795
8867
|
),
|
|
8796
8868
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8799,7 +8871,9 @@ var SocialMediaCanvas = ({
|
|
|
8799
8871
|
$active: viewMode === "grid",
|
|
8800
8872
|
onClick: () => setViewMode("grid"),
|
|
8801
8873
|
type: "button",
|
|
8802
|
-
|
|
8874
|
+
"aria-label": "Grid view",
|
|
8875
|
+
title: "Grid view",
|
|
8876
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z" }) })
|
|
8803
8877
|
}
|
|
8804
8878
|
)
|
|
8805
8879
|
] })
|
|
@@ -8926,16 +9000,19 @@ function TokenUsageCard({
|
|
|
8926
9000
|
var Card2 = styled11__default.default.div`
|
|
8927
9001
|
display: flex;
|
|
8928
9002
|
flex-direction: column;
|
|
8929
|
-
|
|
8930
|
-
padding: ${tokens.spacing.md};
|
|
8931
|
-
background: ${tokens.colors.background.dark};
|
|
9003
|
+
background: ${tokens.colors.background.darker};
|
|
8932
9004
|
border-radius: ${tokens.borderRadius.xl};
|
|
8933
9005
|
border: 1px solid ${tokens.colors.border.default};
|
|
9006
|
+
overflow: hidden;
|
|
8934
9007
|
`;
|
|
8935
9008
|
var Header4 = styled11__default.default.div`
|
|
8936
9009
|
display: flex;
|
|
8937
9010
|
justify-content: space-between;
|
|
8938
9011
|
align-items: center;
|
|
9012
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9013
|
+
background: ${tokens.colors.background.darker};
|
|
9014
|
+
border-bottom: 1px solid ${tokens.colors.border.default};
|
|
9015
|
+
min-height: 48px;
|
|
8939
9016
|
`;
|
|
8940
9017
|
var Title2 = styled11__default.default.h3`
|
|
8941
9018
|
margin: 0;
|
|
@@ -8953,6 +9030,7 @@ var UsageSection = styled11__default.default.div`
|
|
|
8953
9030
|
display: flex;
|
|
8954
9031
|
flex-direction: column;
|
|
8955
9032
|
gap: ${tokens.spacing.sm};
|
|
9033
|
+
padding: ${tokens.spacing.md};
|
|
8956
9034
|
`;
|
|
8957
9035
|
var UsageStats = styled11__default.default.div`
|
|
8958
9036
|
display: flex;
|
|
@@ -8998,7 +9076,8 @@ var TransactionsSection = styled11__default.default.div`
|
|
|
8998
9076
|
display: flex;
|
|
8999
9077
|
flex-direction: column;
|
|
9000
9078
|
gap: ${tokens.spacing.sm};
|
|
9001
|
-
padding
|
|
9079
|
+
padding: ${tokens.spacing.md};
|
|
9080
|
+
padding-top: ${tokens.spacing.sm};
|
|
9002
9081
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
9003
9082
|
`;
|
|
9004
9083
|
var TransactionsHeader = styled11__default.default.h4`
|
|
@@ -9059,13 +9138,13 @@ var TransactionTokens = styled11__default.default.span`
|
|
|
9059
9138
|
`;
|
|
9060
9139
|
var EmptyState4 = styled11__default.default.div`
|
|
9061
9140
|
text-align: center;
|
|
9062
|
-
padding: ${tokens.spacing.lg};
|
|
9141
|
+
padding: ${tokens.spacing.lg} ${tokens.spacing.md};
|
|
9063
9142
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9064
9143
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9065
9144
|
color: ${tokens.colors.text.tertiary};
|
|
9066
9145
|
`;
|
|
9067
9146
|
var ViewAllButton = styled11__default.default.button`
|
|
9068
|
-
|
|
9147
|
+
margin: 0 ${tokens.spacing.md} ${tokens.spacing.md};
|
|
9069
9148
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9070
9149
|
background: transparent;
|
|
9071
9150
|
border: 1px solid ${tokens.colors.border.default};
|