@agentiffai/design 1.3.22 → 1.3.24
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 +27 -25
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +27 -25
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +21 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +21 -7
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +5 -2
- package/dist/layout/index.d.ts +5 -2
- package/dist/layout/index.js +21 -7
- package/dist/layout/index.js.map +1 -1
- package/dist/workflow/index.cjs +0 -1
- package/dist/workflow/index.cjs.map +1 -1
- package/dist/workflow/index.js +0 -1
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
package/dist/layout/index.d.cts
CHANGED
|
@@ -72,6 +72,7 @@ declare const IconNames: {
|
|
|
72
72
|
readonly FLOW_CHART: "flow-chart";
|
|
73
73
|
readonly LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill";
|
|
74
74
|
readonly LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line";
|
|
75
|
+
readonly QUESTION_LINE: "question-line";
|
|
75
76
|
readonly SIDE_BAR_FILL: "side-bar-fill";
|
|
76
77
|
readonly CHECK: "check-fill";
|
|
77
78
|
readonly CHECK_CIRCLE: "checkbox-circle-fill";
|
|
@@ -106,9 +107,10 @@ interface LayoutProps {
|
|
|
106
107
|
onNavHomeClick?: () => void;
|
|
107
108
|
onNavSettingsClick?: () => void;
|
|
108
109
|
onNavLogoutClick?: () => void;
|
|
110
|
+
onNavHelpClick?: () => void;
|
|
109
111
|
className?: string;
|
|
110
112
|
}
|
|
111
|
-
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, onNavHelpClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
112
114
|
declare namespace Layout {
|
|
113
115
|
var displayName: string;
|
|
114
116
|
}
|
|
@@ -156,11 +158,12 @@ interface NavVerticalProps {
|
|
|
156
158
|
onHomeClick?: () => void;
|
|
157
159
|
onSettingsClick?: () => void;
|
|
158
160
|
onLogoutClick?: () => void;
|
|
161
|
+
onHelpClick?: () => void;
|
|
159
162
|
folderGroupsSlot?: ReactNode;
|
|
160
163
|
className?: string;
|
|
161
164
|
'aria-label'?: string;
|
|
162
165
|
}
|
|
163
|
-
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
166
|
+
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, onHelpClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
164
167
|
declare namespace NavVertical {
|
|
165
168
|
var displayName: string;
|
|
166
169
|
}
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ declare const IconNames: {
|
|
|
72
72
|
readonly FLOW_CHART: "flow-chart";
|
|
73
73
|
readonly LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill";
|
|
74
74
|
readonly LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line";
|
|
75
|
+
readonly QUESTION_LINE: "question-line";
|
|
75
76
|
readonly SIDE_BAR_FILL: "side-bar-fill";
|
|
76
77
|
readonly CHECK: "check-fill";
|
|
77
78
|
readonly CHECK_CIRCLE: "checkbox-circle-fill";
|
|
@@ -106,9 +107,10 @@ interface LayoutProps {
|
|
|
106
107
|
onNavHomeClick?: () => void;
|
|
107
108
|
onNavSettingsClick?: () => void;
|
|
108
109
|
onNavLogoutClick?: () => void;
|
|
110
|
+
onNavHelpClick?: () => void;
|
|
109
111
|
className?: string;
|
|
110
112
|
}
|
|
111
|
-
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function Layout({ mainPaneSlot, backgroundSlot, navVerticalSlot, navHorizontalUserSlot, navHorizontalActionsSlot, onNavBackClick, onNavHomeClick, onNavSettingsClick, onNavLogoutClick, onNavHelpClick, className, }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
112
114
|
declare namespace Layout {
|
|
113
115
|
var displayName: string;
|
|
114
116
|
}
|
|
@@ -156,11 +158,12 @@ interface NavVerticalProps {
|
|
|
156
158
|
onHomeClick?: () => void;
|
|
157
159
|
onSettingsClick?: () => void;
|
|
158
160
|
onLogoutClick?: () => void;
|
|
161
|
+
onHelpClick?: () => void;
|
|
159
162
|
folderGroupsSlot?: ReactNode;
|
|
160
163
|
className?: string;
|
|
161
164
|
'aria-label'?: string;
|
|
162
165
|
}
|
|
163
|
-
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
166
|
+
declare function NavVertical({ onBackClick, onHomeClick, onSettingsClick, onLogoutClick, onHelpClick, folderGroupsSlot, className, 'aria-label': ariaLabel, }: NavVerticalProps): react_jsx_runtime.JSX.Element;
|
|
164
167
|
declare namespace NavVertical {
|
|
165
168
|
var displayName: string;
|
|
166
169
|
}
|
package/dist/layout/index.js
CHANGED
|
@@ -442,6 +442,7 @@ var IconNames = {
|
|
|
442
442
|
FLOW_CHART: "flow-chart",
|
|
443
443
|
LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill",
|
|
444
444
|
LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line",
|
|
445
|
+
QUESTION_LINE: "question-line",
|
|
445
446
|
SIDE_BAR_FILL: "side-bar-fill",
|
|
446
447
|
CHECK: "check-fill",
|
|
447
448
|
CHECK_CIRCLE: "checkbox-circle-fill",
|
|
@@ -468,6 +469,7 @@ var iconFiles = {
|
|
|
468
469
|
"flow-chart": "Icon-flow-chart.svg",
|
|
469
470
|
"logout-circle-r-fill": "Icon-logout-circle-r-fill.svg",
|
|
470
471
|
"logout-circle-r-line": "Icon-logout-circle-r-line.svg",
|
|
472
|
+
"question-line": "Icon-question-line.svg",
|
|
471
473
|
"side-bar-fill": "Icon-side-bar-fill.svg",
|
|
472
474
|
"check-fill": "Icon-check-fill.svg",
|
|
473
475
|
"checkbox-circle-fill": "Icon-checkbox-circle-fill.svg",
|
|
@@ -688,9 +690,8 @@ var FolderGroupsSlot = styled9.div`
|
|
|
688
690
|
flex-direction: column;
|
|
689
691
|
align-items: center;
|
|
690
692
|
gap: ${tokens.spacing.sm};
|
|
691
|
-
padding: 0 ${tokens.spacing.md}
|
|
693
|
+
padding: 0 ${tokens.spacing.md} 120px; /* Extra bottom padding to avoid overlap with BottomSection */
|
|
692
694
|
flex: 1;
|
|
693
|
-
padding-bottom: 120px; /* Prevent overlap with bottom section (2 buttons @ 40px + 1 gap @ 8px + padding @ 32px) */
|
|
694
695
|
|
|
695
696
|
/* Server/workspace icons styling */
|
|
696
697
|
> * {
|
|
@@ -707,7 +708,7 @@ var FolderGroupsSlot = styled9.div`
|
|
|
707
708
|
|
|
708
709
|
/* Responsive adjustments */
|
|
709
710
|
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
710
|
-
padding: 0 6px
|
|
711
|
+
padding: 0 6px 120px; /* Reduce horizontal padding on mobile */
|
|
711
712
|
}
|
|
712
713
|
|
|
713
714
|
/* Mobile landscape: remove extra padding since BottomSection flows with content */
|
|
@@ -718,7 +719,7 @@ var FolderGroupsSlot = styled9.div`
|
|
|
718
719
|
`;
|
|
719
720
|
var BottomSection = styled9.div`
|
|
720
721
|
position: absolute;
|
|
721
|
-
bottom: 0;
|
|
722
|
+
bottom: 0;
|
|
722
723
|
left: 0;
|
|
723
724
|
right: 0;
|
|
724
725
|
display: flex;
|
|
@@ -778,6 +779,7 @@ function NavVertical({
|
|
|
778
779
|
onHomeClick,
|
|
779
780
|
onSettingsClick,
|
|
780
781
|
onLogoutClick,
|
|
782
|
+
onHelpClick,
|
|
781
783
|
folderGroupsSlot,
|
|
782
784
|
className,
|
|
783
785
|
"aria-label": ariaLabel = "Vertical navigation sidebar"
|
|
@@ -786,6 +788,7 @@ function NavVertical({
|
|
|
786
788
|
const homeButtonRef = useRef(null);
|
|
787
789
|
const settingsButtonRef = useRef(null);
|
|
788
790
|
const logoutButtonRef = useRef(null);
|
|
791
|
+
const helpButtonRef = useRef(null);
|
|
789
792
|
const { buttonProps: backButtonProps } = useButton(
|
|
790
793
|
{
|
|
791
794
|
onPress: onBackClick,
|
|
@@ -814,11 +817,20 @@ function NavVertical({
|
|
|
814
817
|
},
|
|
815
818
|
logoutButtonRef
|
|
816
819
|
);
|
|
820
|
+
const { buttonProps: helpButtonProps } = useButton(
|
|
821
|
+
{
|
|
822
|
+
onPress: onHelpClick,
|
|
823
|
+
"aria-label": "Help"
|
|
824
|
+
},
|
|
825
|
+
helpButtonRef
|
|
826
|
+
);
|
|
827
|
+
const hasBottomButtons = onHelpClick || onSettingsClick || onLogoutClick;
|
|
817
828
|
return /* @__PURE__ */ jsxs(Container2, { className, role: "navigation", "aria-label": ariaLabel, children: [
|
|
818
829
|
/* @__PURE__ */ jsx(TopSection, { children: onBackClick ? /* @__PURE__ */ jsx(BackButton, { ...backButtonProps, ref: backButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "side-bar-fill", size: 20, color: "white" }) }) : onHomeClick ? /* @__PURE__ */ jsx(BackButton, { ...homeButtonProps, ref: homeButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "side-bar-fill", size: 24, color: "white" }) }) : null }),
|
|
819
830
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
820
831
|
/* @__PURE__ */ jsx(FolderGroupsSlot, { children: folderGroupsSlot }),
|
|
821
|
-
|
|
832
|
+
hasBottomButtons && /* @__PURE__ */ jsxs(BottomSection, { children: [
|
|
833
|
+
onHelpClick && /* @__PURE__ */ jsx(BottomButton, { ...helpButtonProps, ref: helpButtonRef, "data-tour-help-button": true, children: /* @__PURE__ */ jsx(Icon, { name: "question-line", size: 24, color: "white" }) }),
|
|
822
834
|
onSettingsClick && /* @__PURE__ */ jsx(BottomButton, { ...settingsButtonProps, ref: settingsButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "settings-3-line", size: 24, color: "white" }) }),
|
|
823
835
|
onLogoutClick && /* @__PURE__ */ jsx(BottomButton, { ...logoutButtonProps, ref: logoutButtonRef, children: /* @__PURE__ */ jsx(Icon, { name: "logout-circle-r-line", size: 24, color: "white" }) })
|
|
824
836
|
] })
|
|
@@ -930,6 +942,7 @@ function Layout({
|
|
|
930
942
|
onNavHomeClick,
|
|
931
943
|
onNavSettingsClick,
|
|
932
944
|
onNavLogoutClick,
|
|
945
|
+
onNavHelpClick,
|
|
933
946
|
className
|
|
934
947
|
}) {
|
|
935
948
|
return /* @__PURE__ */ jsxs(Container3, { className, children: [
|
|
@@ -940,7 +953,8 @@ function Layout({
|
|
|
940
953
|
onBackClick: onNavBackClick,
|
|
941
954
|
onHomeClick: onNavHomeClick,
|
|
942
955
|
onSettingsClick: onNavSettingsClick,
|
|
943
|
-
onLogoutClick: onNavLogoutClick
|
|
956
|
+
onLogoutClick: onNavLogoutClick,
|
|
957
|
+
onHelpClick: onNavHelpClick
|
|
944
958
|
}
|
|
945
959
|
),
|
|
946
960
|
backgroundSlot && /* @__PURE__ */ jsx(BackgroundPane, { children: backgroundSlot }),
|
|
@@ -1645,7 +1659,7 @@ var TabPanelWrapper = styled9.div`
|
|
|
1645
1659
|
overflow-y: auto;
|
|
1646
1660
|
overflow-x: hidden; // Prevent horizontal overflow
|
|
1647
1661
|
scrollbar-gutter: stable; // Always reserve space for scrollbar to prevent width jump
|
|
1648
|
-
background-color: ${tokens.colors.
|
|
1662
|
+
background-color: ${tokens.colors.background.dark};
|
|
1649
1663
|
min-height: 0; // Enable proper flex shrinking and scrolling
|
|
1650
1664
|
|
|
1651
1665
|
@media (max-width: ${tokens.breakpoints.mobile}px) {
|