@agentiffai/design 1.3.23 → 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 +1 -0
- package/dist/copilotkit/index.cjs.map +1 -1
- package/dist/copilotkit/index.js +1 -0
- package/dist/copilotkit/index.js.map +1 -1
- package/dist/index.cjs +20 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -6
- package/dist/index.js.map +1 -1
- package/dist/layout/index.cjs +20 -6
- 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 +20 -6
- package/dist/layout/index.js.map +1 -1
- package/package.json +1 -1
package/dist/layout/index.cjs
CHANGED
|
@@ -448,6 +448,7 @@ var IconNames = {
|
|
|
448
448
|
FLOW_CHART: "flow-chart",
|
|
449
449
|
LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill",
|
|
450
450
|
LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line",
|
|
451
|
+
QUESTION_LINE: "question-line",
|
|
451
452
|
SIDE_BAR_FILL: "side-bar-fill",
|
|
452
453
|
CHECK: "check-fill",
|
|
453
454
|
CHECK_CIRCLE: "checkbox-circle-fill",
|
|
@@ -474,6 +475,7 @@ var iconFiles = {
|
|
|
474
475
|
"flow-chart": "Icon-flow-chart.svg",
|
|
475
476
|
"logout-circle-r-fill": "Icon-logout-circle-r-fill.svg",
|
|
476
477
|
"logout-circle-r-line": "Icon-logout-circle-r-line.svg",
|
|
478
|
+
"question-line": "Icon-question-line.svg",
|
|
477
479
|
"side-bar-fill": "Icon-side-bar-fill.svg",
|
|
478
480
|
"check-fill": "Icon-check-fill.svg",
|
|
479
481
|
"checkbox-circle-fill": "Icon-checkbox-circle-fill.svg",
|
|
@@ -694,9 +696,8 @@ var FolderGroupsSlot = styled9__default.default.div`
|
|
|
694
696
|
flex-direction: column;
|
|
695
697
|
align-items: center;
|
|
696
698
|
gap: ${tokens.spacing.sm};
|
|
697
|
-
padding: 0 ${tokens.spacing.md}
|
|
699
|
+
padding: 0 ${tokens.spacing.md} 120px; /* Extra bottom padding to avoid overlap with BottomSection */
|
|
698
700
|
flex: 1;
|
|
699
|
-
padding-bottom: 120px; /* Prevent overlap with bottom section (2 buttons @ 40px + 1 gap @ 8px + padding @ 32px) */
|
|
700
701
|
|
|
701
702
|
/* Server/workspace icons styling */
|
|
702
703
|
> * {
|
|
@@ -713,7 +714,7 @@ var FolderGroupsSlot = styled9__default.default.div`
|
|
|
713
714
|
|
|
714
715
|
/* Responsive adjustments */
|
|
715
716
|
@media (max-width: ${tokens.breakpoints.tablet}px) {
|
|
716
|
-
padding: 0 6px
|
|
717
|
+
padding: 0 6px 120px; /* Reduce horizontal padding on mobile */
|
|
717
718
|
}
|
|
718
719
|
|
|
719
720
|
/* Mobile landscape: remove extra padding since BottomSection flows with content */
|
|
@@ -724,7 +725,7 @@ var FolderGroupsSlot = styled9__default.default.div`
|
|
|
724
725
|
`;
|
|
725
726
|
var BottomSection = styled9__default.default.div`
|
|
726
727
|
position: absolute;
|
|
727
|
-
bottom: 0;
|
|
728
|
+
bottom: 0;
|
|
728
729
|
left: 0;
|
|
729
730
|
right: 0;
|
|
730
731
|
display: flex;
|
|
@@ -784,6 +785,7 @@ function NavVertical({
|
|
|
784
785
|
onHomeClick,
|
|
785
786
|
onSettingsClick,
|
|
786
787
|
onLogoutClick,
|
|
788
|
+
onHelpClick,
|
|
787
789
|
folderGroupsSlot,
|
|
788
790
|
className,
|
|
789
791
|
"aria-label": ariaLabel = "Vertical navigation sidebar"
|
|
@@ -792,6 +794,7 @@ function NavVertical({
|
|
|
792
794
|
const homeButtonRef = react.useRef(null);
|
|
793
795
|
const settingsButtonRef = react.useRef(null);
|
|
794
796
|
const logoutButtonRef = react.useRef(null);
|
|
797
|
+
const helpButtonRef = react.useRef(null);
|
|
795
798
|
const { buttonProps: backButtonProps } = button.useButton(
|
|
796
799
|
{
|
|
797
800
|
onPress: onBackClick,
|
|
@@ -820,11 +823,20 @@ function NavVertical({
|
|
|
820
823
|
},
|
|
821
824
|
logoutButtonRef
|
|
822
825
|
);
|
|
826
|
+
const { buttonProps: helpButtonProps } = button.useButton(
|
|
827
|
+
{
|
|
828
|
+
onPress: onHelpClick,
|
|
829
|
+
"aria-label": "Help"
|
|
830
|
+
},
|
|
831
|
+
helpButtonRef
|
|
832
|
+
);
|
|
833
|
+
const hasBottomButtons = onHelpClick || onSettingsClick || onLogoutClick;
|
|
823
834
|
return /* @__PURE__ */ jsxRuntime.jsxs(Container2, { className, role: "navigation", "aria-label": ariaLabel, children: [
|
|
824
835
|
/* @__PURE__ */ jsxRuntime.jsx(TopSection, { children: onBackClick ? /* @__PURE__ */ jsxRuntime.jsx(BackButton, { ...backButtonProps, ref: backButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "side-bar-fill", size: 20, color: "white" }) }) : onHomeClick ? /* @__PURE__ */ jsxRuntime.jsx(BackButton, { ...homeButtonProps, ref: homeButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "side-bar-fill", size: 24, color: "white" }) }) : null }),
|
|
825
836
|
/* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
|
|
826
837
|
/* @__PURE__ */ jsxRuntime.jsx(FolderGroupsSlot, { children: folderGroupsSlot }),
|
|
827
|
-
|
|
838
|
+
hasBottomButtons && /* @__PURE__ */ jsxRuntime.jsxs(BottomSection, { children: [
|
|
839
|
+
onHelpClick && /* @__PURE__ */ jsxRuntime.jsx(BottomButton, { ...helpButtonProps, ref: helpButtonRef, "data-tour-help-button": true, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "question-line", size: 24, color: "white" }) }),
|
|
828
840
|
onSettingsClick && /* @__PURE__ */ jsxRuntime.jsx(BottomButton, { ...settingsButtonProps, ref: settingsButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "settings-3-line", size: 24, color: "white" }) }),
|
|
829
841
|
onLogoutClick && /* @__PURE__ */ jsxRuntime.jsx(BottomButton, { ...logoutButtonProps, ref: logoutButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "logout-circle-r-line", size: 24, color: "white" }) })
|
|
830
842
|
] })
|
|
@@ -936,6 +948,7 @@ function Layout({
|
|
|
936
948
|
onNavHomeClick,
|
|
937
949
|
onNavSettingsClick,
|
|
938
950
|
onNavLogoutClick,
|
|
951
|
+
onNavHelpClick,
|
|
939
952
|
className
|
|
940
953
|
}) {
|
|
941
954
|
return /* @__PURE__ */ jsxRuntime.jsxs(Container3, { className, children: [
|
|
@@ -946,7 +959,8 @@ function Layout({
|
|
|
946
959
|
onBackClick: onNavBackClick,
|
|
947
960
|
onHomeClick: onNavHomeClick,
|
|
948
961
|
onSettingsClick: onNavSettingsClick,
|
|
949
|
-
onLogoutClick: onNavLogoutClick
|
|
962
|
+
onLogoutClick: onNavLogoutClick,
|
|
963
|
+
onHelpClick: onNavHelpClick
|
|
950
964
|
}
|
|
951
965
|
),
|
|
952
966
|
backgroundSlot && /* @__PURE__ */ jsxRuntime.jsx(BackgroundPane, { children: backgroundSlot }),
|