@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.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: translateY(4px);
|
|
8190
|
+
transform: translateY(-4px);
|
|
8160
8191
|
}
|
|
8161
8192
|
to {
|
|
8162
8193
|
opacity: 1;
|
|
@@ -8673,32 +8704,66 @@ var Header3 = styled11__default.default.div`
|
|
|
8673
8704
|
display: flex;
|
|
8674
8705
|
justify-content: space-between;
|
|
8675
8706
|
align-items: center;
|
|
8676
|
-
|
|
8677
|
-
padding
|
|
8678
|
-
|
|
8707
|
+
gap: ${tokens.spacing.sm};
|
|
8708
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
8709
|
+
position: relative;
|
|
8710
|
+
z-index: 1;
|
|
8711
|
+
background: ${tokens.colors.backdrop};
|
|
8712
|
+
|
|
8713
|
+
/* Gradient fade from solid to transparent (blends into content below) */
|
|
8714
|
+
&::after {
|
|
8715
|
+
content: '';
|
|
8716
|
+
position: absolute;
|
|
8717
|
+
left: 0;
|
|
8718
|
+
right: 0;
|
|
8719
|
+
top: 87%;
|
|
8720
|
+
height: 24px;
|
|
8721
|
+
background: linear-gradient(
|
|
8722
|
+
to bottom,
|
|
8723
|
+
${tokens.colors.backdrop} 0%,
|
|
8724
|
+
${tokens.colors.backdrop}00 100%
|
|
8725
|
+
);
|
|
8726
|
+
pointer-events: none;
|
|
8727
|
+
}
|
|
8679
8728
|
`;
|
|
8680
8729
|
var Title = styled11__default.default.h2`
|
|
8681
8730
|
margin: 0;
|
|
8682
|
-
font-size: ${tokens.typography.fontSize.
|
|
8731
|
+
font-size: ${tokens.typography.fontSize.base};
|
|
8683
8732
|
font-weight: ${tokens.typography.fontWeight.semibold};
|
|
8684
8733
|
color: ${tokens.colors.text.primary};
|
|
8734
|
+
white-space: nowrap;
|
|
8735
|
+
overflow: hidden;
|
|
8736
|
+
text-overflow: ellipsis;
|
|
8737
|
+
min-width: 0;
|
|
8685
8738
|
`;
|
|
8686
8739
|
var ViewToggle = styled11__default.default.div`
|
|
8687
8740
|
display: flex;
|
|
8688
|
-
gap: ${tokens.spacing.
|
|
8741
|
+
gap: ${tokens.spacing.xs};
|
|
8742
|
+
flex-shrink: 0;
|
|
8689
8743
|
`;
|
|
8690
8744
|
var ToggleButton = styled11__default.default.button`
|
|
8691
|
-
padding: ${tokens.spacing.xs}
|
|
8745
|
+
padding: ${tokens.spacing.xs};
|
|
8746
|
+
width: 32px;
|
|
8747
|
+
height: 32px;
|
|
8748
|
+
display: flex;
|
|
8749
|
+
align-items: center;
|
|
8750
|
+
justify-content: center;
|
|
8692
8751
|
border: none;
|
|
8693
8752
|
border-radius: ${tokens.borderRadius.md};
|
|
8694
|
-
font-size: ${tokens.typography.fontSize.sm};
|
|
8695
|
-
font-weight: ${tokens.typography.fontWeight.medium};
|
|
8696
8753
|
cursor: pointer;
|
|
8697
8754
|
transition: all ${tokens.transitions.fast};
|
|
8698
8755
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}33` : tokens.colors.surface.overlay};
|
|
8699
8756
|
color: ${({ $active }) => $active ? tokens.colors.primary : tokens.colors.text.secondary};
|
|
8700
8757
|
border: 1px solid
|
|
8701
8758
|
${({ $active }) => $active ? tokens.colors.primary : tokens.colors.border.default};
|
|
8759
|
+
/* Remove mobile tap highlight */
|
|
8760
|
+
-webkit-tap-highlight-color: transparent;
|
|
8761
|
+
|
|
8762
|
+
svg {
|
|
8763
|
+
width: 18px;
|
|
8764
|
+
height: 18px;
|
|
8765
|
+
fill: currentColor;
|
|
8766
|
+
}
|
|
8702
8767
|
|
|
8703
8768
|
&:hover {
|
|
8704
8769
|
background: ${({ $active }) => $active ? `${tokens.colors.primary}4D` : tokens.colors.surface.overlayHover};
|
|
@@ -8709,6 +8774,8 @@ var Content4 = styled11__default.default.div`
|
|
|
8709
8774
|
display: flex;
|
|
8710
8775
|
flex-direction: column;
|
|
8711
8776
|
overflow: auto;
|
|
8777
|
+
/* Extra top padding to account for header fade overlay */
|
|
8778
|
+
padding-top: ${tokens.spacing.md};
|
|
8712
8779
|
`;
|
|
8713
8780
|
var EmptyState3 = styled11__default.default.div`
|
|
8714
8781
|
display: flex;
|
|
@@ -8790,7 +8857,9 @@ var SocialMediaCanvas = ({
|
|
|
8790
8857
|
$active: viewMode === "carousel",
|
|
8791
8858
|
onClick: () => setViewMode("carousel"),
|
|
8792
8859
|
type: "button",
|
|
8793
|
-
|
|
8860
|
+
"aria-label": "Carousel view",
|
|
8861
|
+
title: "Carousel view",
|
|
8862
|
+
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
8863
|
}
|
|
8795
8864
|
),
|
|
8796
8865
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8799,7 +8868,9 @@ var SocialMediaCanvas = ({
|
|
|
8799
8868
|
$active: viewMode === "grid",
|
|
8800
8869
|
onClick: () => setViewMode("grid"),
|
|
8801
8870
|
type: "button",
|
|
8802
|
-
|
|
8871
|
+
"aria-label": "Grid view",
|
|
8872
|
+
title: "Grid view",
|
|
8873
|
+
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
8874
|
}
|
|
8804
8875
|
)
|
|
8805
8876
|
] })
|
|
@@ -8926,16 +8997,19 @@ function TokenUsageCard({
|
|
|
8926
8997
|
var Card2 = styled11__default.default.div`
|
|
8927
8998
|
display: flex;
|
|
8928
8999
|
flex-direction: column;
|
|
8929
|
-
|
|
8930
|
-
padding: ${tokens.spacing.md};
|
|
8931
|
-
background: ${tokens.colors.background.dark};
|
|
9000
|
+
background: ${tokens.colors.background.darker};
|
|
8932
9001
|
border-radius: ${tokens.borderRadius.xl};
|
|
8933
9002
|
border: 1px solid ${tokens.colors.border.default};
|
|
9003
|
+
overflow: hidden;
|
|
8934
9004
|
`;
|
|
8935
9005
|
var Header4 = styled11__default.default.div`
|
|
8936
9006
|
display: flex;
|
|
8937
9007
|
justify-content: space-between;
|
|
8938
9008
|
align-items: center;
|
|
9009
|
+
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9010
|
+
background: ${tokens.colors.background.darker};
|
|
9011
|
+
border-bottom: 1px solid ${tokens.colors.border.default};
|
|
9012
|
+
min-height: 48px;
|
|
8939
9013
|
`;
|
|
8940
9014
|
var Title2 = styled11__default.default.h3`
|
|
8941
9015
|
margin: 0;
|
|
@@ -8953,6 +9027,7 @@ var UsageSection = styled11__default.default.div`
|
|
|
8953
9027
|
display: flex;
|
|
8954
9028
|
flex-direction: column;
|
|
8955
9029
|
gap: ${tokens.spacing.sm};
|
|
9030
|
+
padding: ${tokens.spacing.md};
|
|
8956
9031
|
`;
|
|
8957
9032
|
var UsageStats = styled11__default.default.div`
|
|
8958
9033
|
display: flex;
|
|
@@ -8998,7 +9073,8 @@ var TransactionsSection = styled11__default.default.div`
|
|
|
8998
9073
|
display: flex;
|
|
8999
9074
|
flex-direction: column;
|
|
9000
9075
|
gap: ${tokens.spacing.sm};
|
|
9001
|
-
padding
|
|
9076
|
+
padding: ${tokens.spacing.md};
|
|
9077
|
+
padding-top: ${tokens.spacing.sm};
|
|
9002
9078
|
border-top: 1px solid ${tokens.colors.border.subtle};
|
|
9003
9079
|
`;
|
|
9004
9080
|
var TransactionsHeader = styled11__default.default.h4`
|
|
@@ -9059,13 +9135,13 @@ var TransactionTokens = styled11__default.default.span`
|
|
|
9059
9135
|
`;
|
|
9060
9136
|
var EmptyState4 = styled11__default.default.div`
|
|
9061
9137
|
text-align: center;
|
|
9062
|
-
padding: ${tokens.spacing.lg};
|
|
9138
|
+
padding: ${tokens.spacing.lg} ${tokens.spacing.md};
|
|
9063
9139
|
font-size: ${tokens.typography.fontSize.sm};
|
|
9064
9140
|
font-family: ${tokens.typography.fontFamily.primary};
|
|
9065
9141
|
color: ${tokens.colors.text.tertiary};
|
|
9066
9142
|
`;
|
|
9067
9143
|
var ViewAllButton = styled11__default.default.button`
|
|
9068
|
-
|
|
9144
|
+
margin: 0 ${tokens.spacing.md} ${tokens.spacing.md};
|
|
9069
9145
|
padding: ${tokens.spacing.sm} ${tokens.spacing.md};
|
|
9070
9146
|
background: transparent;
|
|
9071
9147
|
border: 1px solid ${tokens.colors.border.default};
|