@agentiffai/design 1.3.3 → 1.3.4
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 +7 -0
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +7 -0
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +106 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +106 -30
- 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.js
CHANGED
|
@@ -1082,12 +1082,16 @@ var ContentWrapper = styled11.div`
|
|
|
1082
1082
|
align-items: center;
|
|
1083
1083
|
/* Fixed height for actual navbar content - keeps vertical centering */
|
|
1084
1084
|
height: 52px;
|
|
1085
|
-
padding
|
|
1085
|
+
/* Left padding aligns WorkflowStatusCard icon with NavVertical icons (center at 36px) */
|
|
1086
|
+
/* Icon is 36px with 6px card padding, so card edge at 12px, icon center at 12+6+18=36px */
|
|
1087
|
+
padding: 0 ${tokens.spacing.xs} 0 12px;
|
|
1088
|
+
gap: ${tokens.spacing.xs}; /* 4px gap between status card and action buttons */
|
|
1086
1089
|
max-width: 100%;
|
|
1087
1090
|
|
|
1088
|
-
/* Responsive padding */
|
|
1089
|
-
@media (
|
|
1090
|
-
|
|
1091
|
+
/* Responsive padding - adjust for mobile nav width (60px, center at 30px) */
|
|
1092
|
+
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
1093
|
+
/* Card edge at 6px, icon center at 6+6+18=30px to match 60px nav */
|
|
1094
|
+
padding: 0 ${tokens.spacing.xs} 0 6px;
|
|
1091
1095
|
}
|
|
1092
1096
|
`;
|
|
1093
1097
|
var UserStatusSlot = styled11.div`
|
|
@@ -1577,9 +1581,9 @@ var Container6 = styled11.button`
|
|
|
1577
1581
|
display: grid;
|
|
1578
1582
|
grid-template-columns: auto 1fr;
|
|
1579
1583
|
align-items: center;
|
|
1580
|
-
gap: ${tokens.spacing.
|
|
1584
|
+
gap: ${tokens.spacing.sm};
|
|
1581
1585
|
padding: 6px;
|
|
1582
|
-
margin:
|
|
1586
|
+
margin: 0; /* No margin - positioning handled by parent slot */
|
|
1583
1587
|
border-radius: ${tokens.borderRadius.md};
|
|
1584
1588
|
border: none;
|
|
1585
1589
|
background: ${tokens.colors.surface.subtle};
|
|
@@ -1589,19 +1593,27 @@ var Container6 = styled11.button`
|
|
|
1589
1593
|
cursor: ${(props) => props.$isDisabled ? "default" : "pointer"};
|
|
1590
1594
|
opacity: ${(props) => props.$isDisabled ? 0.7 : 1};
|
|
1591
1595
|
text-align: left;
|
|
1592
|
-
width:
|
|
1596
|
+
width: 100%; /* Fill available slot width */
|
|
1597
|
+
/* Remove mobile tap highlight that causes blue flash */
|
|
1598
|
+
-webkit-tap-highlight-color: transparent;
|
|
1593
1599
|
|
|
1594
1600
|
&:hover:not(:disabled) {
|
|
1595
1601
|
background-color: ${(props) => props.$isDisabled ? tokens.colors.surface.subtle : tokens.colors.surface.overlay};
|
|
1596
1602
|
}
|
|
1597
1603
|
|
|
1604
|
+
&:focus {
|
|
1605
|
+
outline: none;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1598
1608
|
&:focus-visible {
|
|
1599
|
-
outline:
|
|
1600
|
-
|
|
1609
|
+
outline: none;
|
|
1610
|
+
/* Subtle focus ring instead of bright color */
|
|
1611
|
+
box-shadow: inset 0 0 0 1px ${tokens.colors.border.default};
|
|
1601
1612
|
}
|
|
1602
1613
|
|
|
1603
1614
|
&:active:not(:disabled) {
|
|
1604
|
-
|
|
1615
|
+
/* Subtle press feedback - no color flash */
|
|
1616
|
+
opacity: 0.9;
|
|
1605
1617
|
}
|
|
1606
1618
|
`;
|
|
1607
1619
|
var IconWrapper2 = styled11.div`
|
|
@@ -1637,6 +1649,16 @@ var WorkflowStatus = styled11.span`
|
|
|
1637
1649
|
line-height: ${tokens.typography.lineHeight.tight};
|
|
1638
1650
|
text-transform: capitalize;
|
|
1639
1651
|
`;
|
|
1652
|
+
var WorkflowSubtitle = styled11.span`
|
|
1653
|
+
color: ${tokens.colors.text.tertiary};
|
|
1654
|
+
font-size: ${tokens.typography.fontSize.xs};
|
|
1655
|
+
font-weight: ${tokens.typography.fontWeight.regular};
|
|
1656
|
+
line-height: ${tokens.typography.lineHeight.tight};
|
|
1657
|
+
opacity: 0.7;
|
|
1658
|
+
overflow: hidden;
|
|
1659
|
+
text-overflow: ellipsis;
|
|
1660
|
+
white-space: nowrap;
|
|
1661
|
+
`;
|
|
1640
1662
|
var StatusIndicatorOuter = styled11.span`
|
|
1641
1663
|
position: absolute;
|
|
1642
1664
|
bottom: -2px;
|
|
@@ -1660,6 +1682,7 @@ function WorkflowStatusCard({
|
|
|
1660
1682
|
workflowName,
|
|
1661
1683
|
status = "offline",
|
|
1662
1684
|
statusText,
|
|
1685
|
+
subtitle,
|
|
1663
1686
|
className,
|
|
1664
1687
|
onClick,
|
|
1665
1688
|
onPress,
|
|
@@ -1688,7 +1711,8 @@ function WorkflowStatusCard({
|
|
|
1688
1711
|
] }),
|
|
1689
1712
|
/* @__PURE__ */ jsxs(WorkflowInfo, { children: [
|
|
1690
1713
|
/* @__PURE__ */ jsx(WorkflowName, { children: workflowName }),
|
|
1691
|
-
/* @__PURE__ */ jsx(WorkflowStatus, { children: displayStatus })
|
|
1714
|
+
/* @__PURE__ */ jsx(WorkflowStatus, { children: displayStatus }),
|
|
1715
|
+
subtitle && /* @__PURE__ */ jsx(WorkflowSubtitle, { children: subtitle })
|
|
1692
1716
|
] })
|
|
1693
1717
|
] });
|
|
1694
1718
|
}
|
|
@@ -2771,8 +2795,8 @@ function WorkflowGroupItem({
|
|
|
2771
2795
|
return /* @__PURE__ */ jsxs(CategoryDisclosure, { id: groupId, children: [
|
|
2772
2796
|
/* @__PURE__ */ jsx(Heading, { level: 4, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", style: { paddingLeft: "8px" }, children: [
|
|
2773
2797
|
/* @__PURE__ */ jsxs(CategoryTitle, { children: [
|
|
2774
|
-
/* @__PURE__ */ jsx("span", { style: { fontSize: tokens.typography.fontSize.
|
|
2775
|
-
/* @__PURE__ */ jsxs("span", { style: { fontSize: tokens.typography.fontSize.
|
|
2798
|
+
/* @__PURE__ */ jsx("span", { style: { fontSize: tokens.typography.fontSize.sm, fontWeight: 400 }, children: group.workflowName }),
|
|
2799
|
+
/* @__PURE__ */ jsxs("span", { style: { fontSize: tokens.typography.fontSize.xs, color: tokens.colors.text.tertiary, marginLeft: "8px" }, children: [
|
|
2776
2800
|
"(",
|
|
2777
2801
|
group.runs.length,
|
|
2778
2802
|
")"
|
|
@@ -5915,6 +5939,11 @@ var MessageBubble = styled11.div`
|
|
|
5915
5939
|
/* Smooth transitions */
|
|
5916
5940
|
transition: all ${tokens.transitions.fast};
|
|
5917
5941
|
|
|
5942
|
+
/* Ensure long strings don't overflow */
|
|
5943
|
+
overflow: hidden;
|
|
5944
|
+
overflow-wrap: break-word;
|
|
5945
|
+
word-break: break-word;
|
|
5946
|
+
|
|
5918
5947
|
/* Username styling */
|
|
5919
5948
|
strong {
|
|
5920
5949
|
font-size: ${tokens.typography.fontSize.xs};
|
|
@@ -5928,6 +5957,8 @@ var MessageContent2 = styled11.p`
|
|
|
5928
5957
|
font-size: ${tokens.typography.fontSize.sm};
|
|
5929
5958
|
line-height: ${tokens.typography.lineHeight.normal};
|
|
5930
5959
|
word-wrap: break-word;
|
|
5960
|
+
overflow-wrap: break-word;
|
|
5961
|
+
word-break: break-word;
|
|
5931
5962
|
white-space: pre-wrap;
|
|
5932
5963
|
`;
|
|
5933
5964
|
var MessageTime2 = styled11.time`
|
|
@@ -8150,7 +8181,7 @@ PostPreviewCard.displayName = "PostPreviewCard";
|
|
|
8150
8181
|
var fadeIn2 = keyframes`
|
|
8151
8182
|
from {
|
|
8152
8183
|
opacity: 0;
|
|
8153
|
-
transform: translateY(4px);
|
|
8184
|
+
transform: translateY(-4px);
|
|
8154
8185
|
}
|
|
8155
8186
|
to {
|
|
8156
8187
|
opacity: 1;
|
|
@@ -8667,32 +8698,66 @@ var Header3 = styled11.div`
|
|
|
8667
8698
|
display: flex;
|
|
8668
8699
|
justify-content: space-between;
|
|
8669
8700
|
align-items: center;
|
|
8670
|
-
|
|
8671
|
-
padding
|
|
8672
|
-
|
|
8701
|
+
gap: ${tokens.spacing.sm};
|
|
8702
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
8703
|
+
position: relative;
|
|
8704
|
+
z-index: 1;
|
|
8705
|
+
background: ${tokens.colors.backdrop};
|
|
8706
|
+
|
|
8707
|
+
/* Gradient fade from solid to transparent (blends into content below) */
|
|
8708
|
+
&::after {
|
|
8709
|
+
content: '';
|
|
8710
|
+
position: absolute;
|
|
8711
|
+
left: 0;
|
|
8712
|
+
right: 0;
|
|
8713
|
+
top: 87%;
|
|
8714
|
+
height: 24px;
|
|
8715
|
+
background: linear-gradient(
|
|
8716
|
+
to bottom,
|
|
8717
|
+
${tokens.colors.backdrop} 0%,
|
|
8718
|
+
${tokens.colors.backdrop}00 100%
|
|
8719
|
+
);
|
|
8720
|
+
pointer-events: none;
|
|
8721
|
+
}
|
|
8673
8722
|
`;
|
|
8674
8723
|
var Title = styled11.h2`
|
|
8675
8724
|
margin: 0;
|
|
8676
|
-
font-size: ${tokens.typography.fontSize.
|
|
8725
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
8677
8726
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8678
8727
|
color: ${tokens.colors.text.primary};
|
|
8728
|
+
white-space: nowrap;
|
|
8729
|
+
overflow: hidden;
|
|
8730
|
+
text-overflow: ellipsis;
|
|
8731
|
+
min-width: 0;
|
|
8679
8732
|
`;
|
|
8680
8733
|
var ViewToggle = styled11.div`
|
|
8681
8734
|
display: flex;
|
|
8682
|
-
gap: ${tokens.spacing.
|
|
8735
|
+
gap: ${tokens.spacing.xs};
|
|
8736
|
+
flex-shrink: 0;
|
|
8683
8737
|
`;
|
|
8684
8738
|
var ToggleButton = styled11.button`
|
|
8685
|
-
padding: ${tokens.spacing.xs}
|
|
8739
|
+
padding: ${tokens.spacing.xs};
|
|
8740
|
+
width: 32px;
|
|
8741
|
+
height: 32px;
|
|
8742
|
+
display: flex;
|
|
8743
|
+
align-items: center;
|
|
8744
|
+
justify-content: center;
|
|
8686
8745
|
border: none;
|
|
8687
8746
|
border-radius: ${tokens.borderRadius.md};
|
|
8688
|
-
font-size: ${tokens.typography.fontSize.sm};
|
|
8689
|
-
font-weight: ${tokens.typography.fontWeight.medium};
|
|
8690
8747
|
cursor: pointer;
|
|
8691
8748
|
transition: all ${tokens.transitions.fast};
|
|
8692
8749
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}33` : tokens.colors.surface.overlay};
|
|
8693
8750
|
color: ${({ $active }) => $active ? tokens.colors.primary : tokens.colors.text.secondary};
|
|
8694
8751
|
border: 1px solid
|
|
8695
8752
|
${({ $active }) => $active ? tokens.colors.primary : tokens.colors.border.default};
|
|
8753
|
+
/* Remove mobile tap highlight */
|
|
8754
|
+
-webkit-tap-highlight-color: transparent;
|
|
8755
|
+
|
|
8756
|
+
svg {
|
|
8757
|
+
width: 18px;
|
|
8758
|
+
height: 18px;
|
|
8759
|
+
fill: currentColor;
|
|
8760
|
+
}
|
|
8696
8761
|
|
|
8697
8762
|
&:hover {
|
|
8698
8763
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}4D` : tokens.colors.surface.overlayHover};
|
|
@@ -8703,6 +8768,8 @@ var Content4 = styled11.div`
|
|
|
8703
8768
|
display: flex;
|
|
8704
8769
|
flex-direction: column;
|
|
8705
8770
|
overflow: auto;
|
|
8771
|
+
/* Extra top padding to account for header fade overlay */
|
|
8772
|
+
padding-top: ${tokens.spacing.md};
|
|
8706
8773
|
`;
|
|
8707
8774
|
var EmptyState3 = styled11.div`
|
|
8708
8775
|
display: flex;
|
|
@@ -8784,7 +8851,9 @@ var SocialMediaCanvas = ({
|
|
|
8784
8851
|
$active: viewMode === "carousel",
|
|
8785
8852
|
onClick: () => setViewMode("carousel"),
|
|
8786
8853
|
type: "button",
|
|
8787
|
-
|
|
8854
|
+
"aria-label": "Carousel view",
|
|
8855
|
+
title: "Carousel view",
|
|
8856
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M2 6h4v12H2V6zm7 0h6v12H9V6zm9 0h4v12h-4V6z" }) })
|
|
8788
8857
|
}
|
|
8789
8858
|
),
|
|
8790
8859
|
/* @__PURE__ */ jsx(
|
|
@@ -8793,7 +8862,9 @@ var SocialMediaCanvas = ({
|
|
|
8793
8862
|
$active: viewMode === "grid",
|
|
8794
8863
|
onClick: () => setViewMode("grid"),
|
|
8795
8864
|
type: "button",
|
|
8796
|
-
|
|
8865
|
+
"aria-label": "Grid view",
|
|
8866
|
+
title: "Grid view",
|
|
8867
|
+
children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3 3h8v8H3V3zm10 0h8v8h-8V3zM3 13h8v8H3v-8zm10 0h8v8h-8v-8z" }) })
|
|
8797
8868
|
}
|
|
8798
8869
|
)
|
|
8799
8870
|
] })
|
|
@@ -8920,16 +8991,19 @@ function TokenUsageCard({
|
|
|
8920
8991
|
var Card2 = styled11.div`
|
|
8921
8992
|
display: flex;
|
|
8922
8993
|
flex-direction: column;
|
|
8923
|
-
|
|
8924
|
-
padding: ${tokens.spacing.md};
|
|
8925
|
-
background: ${tokens.colors.background.dark};
|
|
8994
|
+
background: ${tokens.colors.background.darker};
|
|
8926
8995
|
border-radius: ${tokens.borderRadius.xl};
|
|
8927
8996
|
border: 1px solid ${tokens.colors.border.default};
|
|
8997
|
+
overflow: hidden;
|
|
8928
8998
|
`;
|
|
8929
8999
|
var Header4 = styled11.div`
|
|
8930
9000
|
display: flex;
|
|
8931
9001
|
justify-content: space-between;
|
|
8932
9002
|
align-items: center;
|
|
9003
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9004
|
+
background: ${tokens.colors.background.darker};
|
|
9005
|
+
border-bottom: 1px solid ${tokens.colors.border.default};
|
|
9006
|
+
min-height: 48px;
|
|
8933
9007
|
`;
|
|
8934
9008
|
var Title2 = styled11.h3`
|
|
8935
9009
|
margin: 0;
|
|
@@ -8947,6 +9021,7 @@ var UsageSection = styled11.div`
|
|
|
8947
9021
|
display: flex;
|
|
8948
9022
|
flex-direction: column;
|
|
8949
9023
|
gap: ${tokens.spacing.sm};
|
|
9024
|
+
padding: ${tokens.spacing.md};
|
|
8950
9025
|
`;
|
|
8951
9026
|
var UsageStats = styled11.div`
|
|
8952
9027
|
display: flex;
|
|
@@ -8992,7 +9067,8 @@ var TransactionsSection = styled11.div`
|
|
|
8992
9067
|
display: flex;
|
|
8993
9068
|
flex-direction: column;
|
|
8994
9069
|
gap: ${tokens.spacing.sm};
|
|
8995
|
-
padding
|
|
9070
|
+
padding: ${tokens.spacing.md};
|
|
9071
|
+
padding-top: ${tokens.spacing.sm};
|
|
8996
9072
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
8997
9073
|
`;
|
|
8998
9074
|
var TransactionsHeader = styled11.h4`
|
|
@@ -9053,13 +9129,13 @@ var TransactionTokens = styled11.span`
|
|
|
9053
9129
|
`;
|
|
9054
9130
|
var EmptyState4 = styled11.div`
|
|
9055
9131
|
text-align: center;
|
|
9056
|
-
padding: ${tokens.spacing.lg};
|
|
9132
|
+
padding: ${tokens.spacing.lg} ${tokens.spacing.md};
|
|
9057
9133
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9058
9134
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9059
9135
|
color: ${tokens.colors.text.tertiary};
|
|
9060
9136
|
`;
|
|
9061
9137
|
var ViewAllButton = styled11.button`
|
|
9062
|
-
|
|
9138
|
+
margin: 0 ${tokens.spacing.md} ${tokens.spacing.md};
|
|
9063
9139
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9064
9140
|
background: transparent;
|
|
9065
9141
|
border: 1px solid ${tokens.colors.border.default};
|