@agentiffai/design 0.1.10 → 0.1.12

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.
@@ -144,7 +144,7 @@ var NavigationContainer = styled9__default.default.div`
144
144
  display: flex;
145
145
  flex-direction: column;
146
146
  align-items: center;
147
- padding-top: 6px;
147
+ padding-top: ${tokens.spacing.xs};
148
148
  gap: ${tokens.spacing.xs};
149
149
  width: 100%;
150
150
  height: 100%;
@@ -197,7 +197,7 @@ var CategoryButton = styled9__default.default.button`
197
197
  var CategoryLabel = styled9__default.default.span`
198
198
  font-size: 9px;
199
199
  color: ${tokens.colors.text.tertiary};
200
- margin-top: 2px;
200
+ margin-top: ${tokens.spacing.xs};
201
201
  text-align: center;
202
202
  max-width: 56px;
203
203
  overflow: hidden;
@@ -485,8 +485,10 @@ var Container = styled9__default.default.nav`
485
485
  right: 0;
486
486
  background-color: ${tokens.colors.background.darker};
487
487
  border-top: 1px solid ${tokens.colors.border.subtle};
488
- /* Reserve space for Android nav buttons (80px) below the actual navbar */
489
- padding-bottom: max(80px, env(safe-area-inset-bottom, 80px));
488
+ /* Use safe-area-inset-bottom for Android navigation buttons.
489
+ The env() value will be 0 on devices without soft nav buttons.
490
+ Fallback to 0 if env() is not supported. */
491
+ padding-bottom: env(safe-area-inset-bottom, 0px);
490
492
  z-index: ${tokens.zIndex.sticky};
491
493
 
492
494
  /* Dark theme support */
@@ -1044,7 +1046,7 @@ WorkflowStatusCard.displayName = "WorkflowStatusCard";
1044
1046
  var DarkNotificationCardContainer = styled9__default.default.div`
1045
1047
  display: flex;
1046
1048
  flex-direction: column;
1047
- padding: 6px;
1049
+ padding: ${tokens.spacing.xs};
1048
1050
  background: ${tokens.colors.surface.base};
1049
1051
  border-radius: ${tokens.borderRadius.md};
1050
1052
  gap: ${tokens.spacing.xs};
@@ -1057,7 +1059,7 @@ var DarkSectionHeader = styled9__default.default.button`
1057
1059
  align-items: center;
1058
1060
  justify-content: space-between;
1059
1061
  width: 100%;
1060
- padding: ${tokens.spacing.xs} 2px;
1062
+ padding: ${tokens.spacing.xs} ${tokens.spacing.xs};
1061
1063
  border: none;
1062
1064
  background: transparent;
1063
1065
  font-family: ${tokens.typography.fontFamily.primary};
@@ -1099,18 +1101,18 @@ var DarkChevronIcon = styled9__default.default.span`
1099
1101
  var DarkSectionContent = styled9__default.default.div`
1100
1102
  display: flex;
1101
1103
  flex-direction: column;
1102
- gap: 2px;
1104
+ gap: ${tokens.spacing.xs};
1103
1105
  padding-left: ${tokens.spacing.xs};
1104
- margin-top: 2px;
1106
+ margin-top: ${tokens.spacing.xs};
1105
1107
  min-width: 0;
1106
1108
  overflow: hidden;
1107
1109
  `;
1108
1110
  var DarkNotificationItemWrapper = styled9__default.default.button`
1109
1111
  display: flex;
1110
1112
  align-items: center;
1111
- gap: 6px;
1113
+ gap: ${tokens.spacing.xs};
1112
1114
  width: 100%;
1113
- padding: ${tokens.spacing.xs} 6px;
1115
+ padding: ${tokens.spacing.xs} ${tokens.spacing.xs};
1114
1116
  border: none;
1115
1117
  cursor: pointer;
1116
1118
  text-align: left;
@@ -1166,7 +1168,7 @@ var DarkItemIcon = styled9__default.default.span`
1166
1168
 
1167
1169
  /* Custom icon (emoji or colored icon) styling */
1168
1170
  ${(props) => props.$hasCustomIcon && `
1169
- padding: 2px;
1171
+ padding: ${tokens.spacing.xs};
1170
1172
  `}
1171
1173
  `;
1172
1174
  var DarkItemText = styled9__default.default.span`
@@ -1444,7 +1446,7 @@ var TabButton = styled9__default.default.button`
1444
1446
  flex-shrink: 0;
1445
1447
 
1446
1448
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1447
- padding: 10px ${tokens.spacing.md};
1449
+ padding: ${tokens.spacing.sm} ${tokens.spacing.md};
1448
1450
  font-size: ${tokens.typography.fontSize.xs};
1449
1451
  }
1450
1452
 
@@ -1542,7 +1544,7 @@ styled9__default.default.button`
1542
1544
  overflow: hidden;
1543
1545
 
1544
1546
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1545
- padding: 10px ${tokens.spacing.md};
1547
+ padding: ${tokens.spacing.sm} ${tokens.spacing.md};
1546
1548
  font-size: 13px;
1547
1549
  gap: ${tokens.spacing.sm};
1548
1550
  }
@@ -1624,7 +1626,7 @@ var CategoryTitle = styled9__default.default.div`
1624
1626
  gap: ${tokens.spacing.sm};
1625
1627
 
1626
1628
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1627
- gap: 6px;
1629
+ gap: ${tokens.spacing.xs};
1628
1630
  }
1629
1631
  `;
1630
1632
  styled9__default.default.img`
@@ -1681,7 +1683,7 @@ var CategoryDisclosurePanel = styled9__default.default(reactAriaComponents.Discl
1681
1683
  overflow: hidden;
1682
1684
 
1683
1685
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1684
- padding-left: 2px;
1686
+ padding-left: ${tokens.spacing.xs};
1685
1687
  }
1686
1688
 
1687
1689
  &[data-entering] {
@@ -1703,7 +1705,7 @@ var ItemContainer = styled9__default.default.div`
1703
1705
  display: flex;
1704
1706
  align-items: center;
1705
1707
  gap: ${tokens.spacing.sm};
1706
- padding: 10px ${tokens.spacing.sm}; // Increased vertical padding from 4px to 10px for better breathing room
1708
+ padding: ${tokens.spacing.sm} ${tokens.spacing.sm}; // Increased vertical padding from 4px to 8px for better breathing room
1707
1709
  border-radius: ${tokens.borderRadius.sm};
1708
1710
  cursor: pointer;
1709
1711
  transition: background-color ${tokens.transitions.fast};
@@ -1711,8 +1713,8 @@ var ItemContainer = styled9__default.default.div`
1711
1713
  overflow: hidden;
1712
1714
 
1713
1715
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1714
- gap: 6px;
1715
- padding: ${tokens.spacing.sm} 6px; // Increased vertical padding from 4px to 8px for mobile
1716
+ gap: ${tokens.spacing.xs};
1717
+ padding: ${tokens.spacing.sm} ${tokens.spacing.xs}; // Increased vertical padding from 4px to 8px for mobile
1716
1718
  }
1717
1719
 
1718
1720
  &:hover {
@@ -1753,7 +1755,7 @@ var ItemHeader = styled9__default.default(reactAriaComponents.Button)`
1753
1755
  }
1754
1756
  `;
1755
1757
  var ItemDisclosurePanel = styled9__default.default(reactAriaComponents.DisclosurePanel)`
1756
- padding: 6px;
1758
+ padding: ${tokens.spacing.xs};
1757
1759
  background-color: ${tokens.colors.overlay};
1758
1760
  border-radius: 0 0 ${tokens.borderRadius.md} ${tokens.borderRadius.md};
1759
1761
  margin-top: -${tokens.spacing.xs};
@@ -1764,7 +1766,7 @@ var ItemDisclosurePanel = styled9__default.default(reactAriaComponents.Disclosur
1764
1766
  overflow: hidden;
1765
1767
 
1766
1768
  @media (max-width: ${tokens.breakpoints.mobile}px) {
1767
- padding: 6px;
1769
+ padding: ${tokens.spacing.xs};
1768
1770
  }
1769
1771
 
1770
1772
  &[data-entering] {
@@ -2085,7 +2087,7 @@ function ItemWithLogs({
2085
2087
  isExpanded && /* @__PURE__ */ jsxRuntime.jsx(ItemDisclosurePanel, { children: run.customContent ? (
2086
2088
  // Render custom content directly
2087
2089
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { padding: "16px" }, children: run.customContent })
2088
- ) : run.logs && run.logs.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(DarkNotificationCard, { sections: logSections }) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: "#72767D", fontSize: "13px", padding: "8px" }, children: "No action logs available" }) })
2090
+ ) : run.logs && run.logs.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(DarkNotificationCard, { sections: logSections }) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: tokens.colors.text.tertiary, fontSize: "13px", padding: "8px" }, children: "No action logs available" }) })
2089
2091
  ] });
2090
2092
  }
2091
2093
  function normalizeCategory(category) {
@@ -2120,7 +2122,7 @@ function WorkflowGroupItem({
2120
2122
  /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 4, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", style: { paddingLeft: "8px" }, children: [
2121
2123
  /* @__PURE__ */ jsxRuntime.jsxs(CategoryTitle, { children: [
2122
2124
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: "13px", fontWeight: 500 }, children: group.workflowName }),
2123
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "11px", color: "#72767D", marginLeft: "8px" }, children: [
2125
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { fontSize: "11px", color: tokens.colors.text.tertiary, marginLeft: "8px" }, children: [
2124
2126
  "(",
2125
2127
  group.runs.length,
2126
2128
  ")"
@@ -2330,7 +2332,7 @@ function ConnectionsTabContent({
2330
2332
  return /* @__PURE__ */ jsxRuntime.jsxs(ConnectionsContainer, { children: [
2331
2333
  /* @__PURE__ */ jsxRuntime.jsx(ConnectionDescription, { children: descriptionText }),
2332
2334
  /* @__PURE__ */ jsxRuntime.jsx(GoogleButton, { ...buttonProps, ref, $isConnected: isConnected, children: buttonText }),
2333
- isConnected && googleConnection?.scopes && googleConnection.scopes.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginTop: "16px", fontSize: "13px", color: "#B9BBBE" }, children: [
2335
+ isConnected && googleConnection?.scopes && googleConnection.scopes.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginTop: "16px", fontSize: "13px", color: tokens.colors.text.secondary }, children: [
2334
2336
  "Connected services: ",
2335
2337
  googleConnection.scopes.join(", ")
2336
2338
  ] })
@@ -2373,7 +2375,8 @@ function PaneMenus({
2373
2375
  isOAuthConnecting = false,
2374
2376
  isOAuthLoading = false,
2375
2377
  connectionsSlot,
2376
- workflowsSlot
2378
+ workflowsSlot,
2379
+ usageSlot
2377
2380
  }) {
2378
2381
  const state = tabs.useTabListState({
2379
2382
  selectedKey: activeTab,
@@ -2385,7 +2388,7 @@ function PaneMenus({
2385
2388
  children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2386
2389
  workflowsSlot && /* @__PURE__ */ jsxRuntime.jsx(collections.Item, { title: "Workflows", children: workflowsSlot }, "workflows"),
2387
2390
  /* @__PURE__ */ jsxRuntime.jsx(collections.Item, { title: "Runs", children: /* @__PURE__ */ jsxRuntime.jsx(RunsTabContent, { runs, onRunSelect }) }, "runs"),
2388
- /* @__PURE__ */ jsxRuntime.jsx(collections.Item, { title: "Usage", children: /* @__PURE__ */ jsxRuntime.jsx(UsageTabContent, { currentUsage, maxUsage }) }, "usage"),
2391
+ /* @__PURE__ */ jsxRuntime.jsx(collections.Item, { title: "Usage", children: usageSlot || /* @__PURE__ */ jsxRuntime.jsx(UsageTabContent, { currentUsage, maxUsage }) }, "usage"),
2389
2392
  /* @__PURE__ */ jsxRuntime.jsx(collections.Item, { title: "Connections", children: connectionsSlot || /* @__PURE__ */ jsxRuntime.jsx(
2390
2393
  ConnectionsTabContent,
2391
2394
  {