@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/index.cjs CHANGED
@@ -1029,6 +1029,7 @@ var IconNames = {
1029
1029
  FLOW_CHART: "flow-chart",
1030
1030
  LOGOUT_CIRCLE_R_FILL: "logout-circle-r-fill",
1031
1031
  LOGOUT_CIRCLE_R_LINE: "logout-circle-r-line",
1032
+ QUESTION_LINE: "question-line",
1032
1033
  SIDE_BAR_FILL: "side-bar-fill",
1033
1034
  CHECK: "check-fill",
1034
1035
  CHECK_CIRCLE: "checkbox-circle-fill",
@@ -1055,6 +1056,7 @@ var iconFiles = {
1055
1056
  "flow-chart": "Icon-flow-chart.svg",
1056
1057
  "logout-circle-r-fill": "Icon-logout-circle-r-fill.svg",
1057
1058
  "logout-circle-r-line": "Icon-logout-circle-r-line.svg",
1059
+ "question-line": "Icon-question-line.svg",
1058
1060
  "side-bar-fill": "Icon-side-bar-fill.svg",
1059
1061
  "check-fill": "Icon-check-fill.svg",
1060
1062
  "checkbox-circle-fill": "Icon-checkbox-circle-fill.svg",
@@ -1275,9 +1277,8 @@ var FolderGroupsSlot = styled48__default.default.div`
1275
1277
  flex-direction: column;
1276
1278
  align-items: center;
1277
1279
  gap: ${tokens.spacing.sm};
1278
- padding: 0 ${tokens.spacing.md} ${tokens.spacing.md};
1280
+ padding: 0 ${tokens.spacing.md} 120px; /* Extra bottom padding to avoid overlap with BottomSection */
1279
1281
  flex: 1;
1280
- padding-bottom: 120px; /* Prevent overlap with bottom section (2 buttons @ 40px + 1 gap @ 8px + padding @ 32px) */
1281
1282
 
1282
1283
  /* Server/workspace icons styling */
1283
1284
  > * {
@@ -1294,7 +1295,7 @@ var FolderGroupsSlot = styled48__default.default.div`
1294
1295
 
1295
1296
  /* Responsive adjustments */
1296
1297
  @media (max-width: ${tokens.breakpoints.tablet}px) {
1297
- padding: 0 6px ${tokens.spacing.md} 96px; /* Reduce horizontal padding on mobile */
1298
+ padding: 0 6px 120px; /* Reduce horizontal padding on mobile */
1298
1299
  }
1299
1300
 
1300
1301
  /* Mobile landscape: remove extra padding since BottomSection flows with content */
@@ -1305,7 +1306,7 @@ var FolderGroupsSlot = styled48__default.default.div`
1305
1306
  `;
1306
1307
  var BottomSection = styled48__default.default.div`
1307
1308
  position: absolute;
1308
- bottom: 0; /* At the bottom of the nav container */
1309
+ bottom: 0;
1309
1310
  left: 0;
1310
1311
  right: 0;
1311
1312
  display: flex;
@@ -1365,6 +1366,7 @@ function NavVertical({
1365
1366
  onHomeClick,
1366
1367
  onSettingsClick,
1367
1368
  onLogoutClick,
1369
+ onHelpClick,
1368
1370
  folderGroupsSlot,
1369
1371
  className,
1370
1372
  "aria-label": ariaLabel = "Vertical navigation sidebar"
@@ -1373,6 +1375,7 @@ function NavVertical({
1373
1375
  const homeButtonRef = React4.useRef(null);
1374
1376
  const settingsButtonRef = React4.useRef(null);
1375
1377
  const logoutButtonRef = React4.useRef(null);
1378
+ const helpButtonRef = React4.useRef(null);
1376
1379
  const { buttonProps: backButtonProps } = button.useButton(
1377
1380
  {
1378
1381
  onPress: onBackClick,
@@ -1401,11 +1404,20 @@ function NavVertical({
1401
1404
  },
1402
1405
  logoutButtonRef
1403
1406
  );
1407
+ const { buttonProps: helpButtonProps } = button.useButton(
1408
+ {
1409
+ onPress: onHelpClick,
1410
+ "aria-label": "Help"
1411
+ },
1412
+ helpButtonRef
1413
+ );
1414
+ const hasBottomButtons = onHelpClick || onSettingsClick || onLogoutClick;
1404
1415
  return /* @__PURE__ */ jsxRuntime.jsxs(Container3, { className, role: "navigation", "aria-label": ariaLabel, children: [
1405
1416
  /* @__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 }),
1406
1417
  /* @__PURE__ */ jsxRuntime.jsx(Separator, {}),
1407
1418
  /* @__PURE__ */ jsxRuntime.jsx(FolderGroupsSlot, { children: folderGroupsSlot }),
1408
- (onSettingsClick || onLogoutClick) && /* @__PURE__ */ jsxRuntime.jsxs(BottomSection, { children: [
1419
+ hasBottomButtons && /* @__PURE__ */ jsxRuntime.jsxs(BottomSection, { children: [
1420
+ 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" }) }),
1409
1421
  onSettingsClick && /* @__PURE__ */ jsxRuntime.jsx(BottomButton, { ...settingsButtonProps, ref: settingsButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "settings-3-line", size: 24, color: "white" }) }),
1410
1422
  onLogoutClick && /* @__PURE__ */ jsxRuntime.jsx(BottomButton, { ...logoutButtonProps, ref: logoutButtonRef, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "logout-circle-r-line", size: 24, color: "white" }) })
1411
1423
  ] })
@@ -1517,6 +1529,7 @@ function Layout({
1517
1529
  onNavHomeClick,
1518
1530
  onNavSettingsClick,
1519
1531
  onNavLogoutClick,
1532
+ onNavHelpClick,
1520
1533
  className
1521
1534
  }) {
1522
1535
  return /* @__PURE__ */ jsxRuntime.jsxs(Container4, { className, children: [
@@ -1527,7 +1540,8 @@ function Layout({
1527
1540
  onBackClick: onNavBackClick,
1528
1541
  onHomeClick: onNavHomeClick,
1529
1542
  onSettingsClick: onNavSettingsClick,
1530
- onLogoutClick: onNavLogoutClick
1543
+ onLogoutClick: onNavLogoutClick,
1544
+ onHelpClick: onNavHelpClick
1531
1545
  }
1532
1546
  ),
1533
1547
  backgroundSlot && /* @__PURE__ */ jsxRuntime.jsx(BackgroundPane, { children: backgroundSlot }),
@@ -2232,7 +2246,7 @@ var TabPanelWrapper = styled48__default.default.div`
2232
2246
  overflow-y: auto;
2233
2247
  overflow-x: hidden; // Prevent horizontal overflow
2234
2248
  scrollbar-gutter: stable; // Always reserve space for scrollbar to prevent width jump
2235
- background-color: ${tokens.colors.surface.overlay};
2249
+ background-color: ${tokens.colors.background.dark};
2236
2250
  min-height: 0; // Enable proper flex shrinking and scrolling
2237
2251
 
2238
2252
  @media (max-width: ${tokens.breakpoints.mobile}px) {
@@ -10882,7 +10896,6 @@ var Card3 = styled48__default.default.button`
10882
10896
  }
10883
10897
 
10884
10898
  &:disabled {
10885
- opacity: 0.5;
10886
10899
  cursor: not-allowed;
10887
10900
  }
10888
10901
  `;