@elevasis/ui 1.14.4 → 1.14.6

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.
@@ -1,5 +1,5 @@
1
1
  export { ActivityTrendChart, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-HGUJ6SSM.js';
2
- import '../chunk-MYRCM7VD.js';
2
+ import '../chunk-KBLGVZBD.js';
3
3
  import '../chunk-EQNXEBGZ.js';
4
4
  import '../chunk-LHQTTUL2.js';
5
5
  import '../chunk-ELJIFLCB.js';
@@ -1,10 +1,10 @@
1
- import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, sidebarGroupChevronSize, sidebarIconInnerSize, sidebarListItemIconSize } from './chunk-MYRCM7VD.js';
1
+ import { sidebarItemGap, sidebarSubLinkPaddingY, sidebarSubLinkPaddingX, sidebarSubLinkIndent, sidebarHoverDelay, sidebarTransitionDuration, sidebarCollapsedWidth, sidebarWidth, topbarHeight, sidebarToggleIconSize, sidebarSectionPadding, NavigationButton, sidebarGroupChevronSize, sidebarIconInnerSize, sidebarListItemIconSize, sidebarBottomSectionHeight } from './chunk-KBLGVZBD.js';
2
2
  import { useAppearance } from './chunk-QJ2KCHKX.js';
3
3
  import { useRouterContext } from './chunk-Q7DJKLEN.js';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import { Collapse, HoverCard, Stack, Group, Text, UnstyledButton, Tooltip, ScrollArea, Menu, Avatar, Container, Title, Button, Box, Center, useMantineColorScheme, Switch, Code } from '@mantine/core';
6
6
  import { IconLayoutSidebarLeftExpand, IconLayoutSidebarLeftCollapse, IconUser, IconLogout, IconAlertCircle, IconChevronDown, IconChevronRight, IconMoonStars, IconSun } from '@tabler/icons-react';
7
- import { createContext, memo, useEffect, createElement, useContext, useState } from 'react';
7
+ import { createContext, memo, useEffect, createElement, useContext, useRef, useLayoutEffect, useState } from 'react';
8
8
 
9
9
  function Vignette({ strength = 0.35, className }) {
10
10
  return /* @__PURE__ */ jsx(
@@ -591,14 +591,31 @@ var SidebarTopSection = ({ logo }) => {
591
591
  }
592
592
  );
593
593
  };
594
+ var BOTTOM_SECTION_HEIGHT_VAR = "--elevasis-sidebar-bottom-section-height";
594
595
  var SidebarBottomSection = ({ user, onLogout, onAccountClick }) => {
595
596
  const { isCollapsed } = useSidebar();
597
+ const rootRef = useRef(null);
598
+ useLayoutEffect(() => {
599
+ const el = rootRef.current;
600
+ if (!el) return;
601
+ const update = () => {
602
+ document.documentElement.style.setProperty(BOTTOM_SECTION_HEIGHT_VAR, `${el.offsetHeight}px`);
603
+ };
604
+ update();
605
+ const observer = new ResizeObserver(update);
606
+ observer.observe(el);
607
+ return () => {
608
+ observer.disconnect();
609
+ document.documentElement.style.removeProperty(BOTTOM_SECTION_HEIGHT_VAR);
610
+ };
611
+ }, [user]);
596
612
  if (!user) {
597
613
  return null;
598
614
  }
599
615
  return /* @__PURE__ */ jsx(
600
616
  "div",
601
617
  {
618
+ ref: rootRef,
602
619
  style: {
603
620
  padding: "var(--mantine-spacing-sm)",
604
621
  borderTop: "1px solid var(--color-border)",
@@ -1033,10 +1050,11 @@ var SubshellSidebar = ({
1033
1050
  flexShrink: 0,
1034
1051
  display: "flex",
1035
1052
  flexDirection: "column",
1036
- backgroundColor: "var(--glass-background)",
1053
+ backgroundColor: "color-mix(in srgb, var(--glass-background) 60%, transparent)",
1037
1054
  backdropFilter: "var(--glass-blur)",
1038
1055
  WebkitBackdropFilter: "var(--glass-blur)",
1039
1056
  borderRight: "1px solid var(--color-border)",
1057
+ boxShadow: "var(--card-shadow)",
1040
1058
  minHeight: `calc(100vh - ${topbarHeight}px)`,
1041
1059
  marginTop: `${topbarHeight}px`,
1042
1060
  fontFamily: "var(--elevasis-font-family-subtitle)"
@@ -1064,10 +1082,11 @@ var SubshellSidebar = ({
1064
1082
  flexShrink: 0,
1065
1083
  display: "flex",
1066
1084
  flexDirection: "column",
1067
- backgroundColor: "var(--glass-background)",
1085
+ backgroundColor: "color-mix(in srgb, var(--glass-background) 60%, transparent)",
1068
1086
  backdropFilter: "var(--glass-blur)",
1069
1087
  WebkitBackdropFilter: "var(--glass-blur)",
1070
1088
  borderRight: isOpen ? "1px solid var(--color-border)" : "none",
1089
+ boxShadow: isOpen ? "var(--card-shadow)" : "none",
1071
1090
  height: "100%",
1072
1091
  fontFamily: "var(--elevasis-font-family-subtitle)",
1073
1092
  overflow: "hidden",
@@ -1096,19 +1115,25 @@ var SubshellSidebar = ({
1096
1115
  style: {
1097
1116
  position: "absolute",
1098
1117
  right: 0,
1099
- bottom: "12px",
1118
+ bottom: 0,
1100
1119
  transform: "translateX(100%)",
1101
1120
  width: "20px",
1102
- height: "64px",
1121
+ // Match the live height of the outer Sidebar's bottom profile section.
1122
+ // SidebarBottomSection publishes --elevasis-sidebar-bottom-section-height
1123
+ // via ResizeObserver so this follows its actual height through
1124
+ // collapse/expand transitions. Falls back to the expanded-state
1125
+ // constant when rendered outside a Sidebar layout.
1126
+ height: `var(--elevasis-sidebar-bottom-section-height, ${sidebarBottomSectionHeight}px)`,
1103
1127
  display: "flex",
1104
1128
  alignItems: "center",
1105
1129
  justifyContent: "center",
1106
- backgroundColor: "var(--glass-background)",
1130
+ backgroundColor: "color-mix(in srgb, var(--glass-background) 80%, transparent)",
1107
1131
  backdropFilter: "var(--glass-blur)",
1108
1132
  WebkitBackdropFilter: "var(--glass-blur)",
1109
1133
  border: "1px solid var(--color-border)",
1110
1134
  borderLeft: "none",
1111
- borderRadius: "0 4px 4px 0",
1135
+ borderBottom: "none",
1136
+ borderRadius: "0 4px 0 0",
1112
1137
  cursor: "pointer",
1113
1138
  color: "var(--color-text-subtle)",
1114
1139
  padding: 0,
@@ -1272,4 +1297,4 @@ var Topbar = ({ version, leftContent, children }) => {
1272
1297
  ] });
1273
1298
  };
1274
1299
 
1275
- export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, PageContainer, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
1300
+ export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse };
@@ -8,6 +8,8 @@ var sidebarCollapsedWidth = 72;
8
8
  var sidebarTransitionDuration = 200;
9
9
  var sidebarHoverDelay = 100;
10
10
  var topbarHeight = 54;
11
+ var sidebarBottomSectionHeight = 71;
12
+ var sidebarBottomSectionCollapsedHeight = 59;
11
13
  var sidebarItemHeight = 42;
12
14
  var sidebarItemPadding = 10;
13
15
  var sidebarItemGap = 4;
@@ -133,4 +135,4 @@ var NavigationButton = ({
133
135
  );
134
136
  };
135
137
 
136
- export { NavigationButton, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight };
138
+ export { NavigationButton, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight };
@@ -1,7 +1,7 @@
1
1
  import { useCyberColors, EmptyState, CyberLegendItem, CyberAreaChart, APIErrorAlert, CardHeader, StatsCardSkeleton, TrendIndicator, DetailCardSkeleton, ContextViewer, JsonViewer, StyledMarkdown, PageTitleCaption, StatCard, CyberDonut, CollapsibleSection, ListSkeleton } from '../chunk-HGUJ6SSM.js';
2
2
  export { APIErrorAlert, CardHeader, CollapsibleSection, ContextViewer, CustomSelector, DetailCardSkeleton, EmptyState, JsonViewer, ListSkeleton, PageNotFound, PageTitleCaption, ResourceCard, StatCard, StatCardSkeleton, StatsCardSkeleton, StyledMarkdown, TabCountBadge, TimeRangeSelector, TrendIndicator, catalogItemToResourceDefinition } from '../chunk-HGUJ6SSM.js';
3
- import { SubshellLoader, SubshellContainer, SubshellSidebar, SubshellRightSideContainer, SubshellContentContainer, PageContainer, AppShellLoader, SubshellSidebarSection, CollapsibleSidebarGroup, SidebarListItem } from '../chunk-5OJM7FHM.js';
4
- export { NavigationButton } from '../chunk-MYRCM7VD.js';
3
+ import { SubshellLoader, SubshellContainer, SubshellSidebar, SubshellRightSideContainer, SubshellContentContainer, PageContainer, AppShellLoader, SubshellSidebarSection, CollapsibleSidebarGroup, SidebarListItem } from '../chunk-JAUEZCVD.js';
4
+ export { NavigationButton } from '../chunk-KBLGVZBD.js';
5
5
  import { useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, useDeleteCredential, useCreateCredential, useCredentials, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, MEMBERSHIP_STATUS_COLORS, transformMembershipToTableRow, showApiErrorNotification, showSuccessNotification, CredentialSchemas, showErrorNotification } from '../chunk-PMSLNXUS.js';
6
6
  export { showApiErrorNotification, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification } from '../chunk-PMSLNXUS.js';
7
7
  import { useCommandViewLayout, useResourcesHealth, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, useMarkAsRead, useMarkAllAsRead, useNotificationCount, useNotifications, useSubmitAction, useDeleteTask, useErrorDetail, useExecution, useArchivedLogs, useDeleteExecution, useRetryExecution, useCancelExecution, useDeploymentDocs, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useCommandQueueTotals } from '../chunk-NOGBWAGU.js';
@@ -4318,7 +4318,7 @@ function BaseExecutionLogs({
4318
4318
  onLoad: archivedLogs.fetch
4319
4319
  }
4320
4320
  ),
4321
- !typedExecution.isArchived && renderLogsSection?.(typedExecution),
4321
+ !typedExecution.isArchived && renderLogsSection && /* @__PURE__ */ jsx(Paper, { withBorder: true, bg: "none", p: "sm", style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: renderLogsSection(typedExecution) }),
4322
4322
  !hideResult && typedExecution.result != null && /* @__PURE__ */ jsx(Paper, { withBorder: true, children: /* @__PURE__ */ jsx(
4323
4323
  CollapsibleJsonSection,
4324
4324
  {
@@ -6,6 +6,10 @@ declare const sidebarCollapsedWidth = 72;
6
6
  declare const sidebarTransitionDuration = 200;
7
7
  declare const sidebarHoverDelay = 100;
8
8
  declare const topbarHeight = 54;
9
+ /** Height of SidebarBottomSection when expanded: outer padding sm (12+12) + 1px top border + inner padding (4+4) + Avatar md (38) = 71px */
10
+ declare const sidebarBottomSectionHeight = 71;
11
+ /** Height of SidebarBottomSection when collapsed: outer padding sm (12+12) + 1px top border + inner padding (4+4) + Avatar sm (26) = 59px */
12
+ declare const sidebarBottomSectionCollapsedHeight = 59;
9
13
  /** Height of a main navigation button (px) */
10
14
  declare const sidebarItemHeight = 42;
11
15
  /** Padding inside main navigation buttons (px) */
@@ -179,6 +183,7 @@ interface SidebarContextType {
179
183
  toggleCollapsed: () => void;
180
184
  setCollapsed: (value: boolean) => void;
181
185
  }
186
+ declare const SidebarContext: React$1.Context<SidebarContextType | undefined>;
182
187
  interface SidebarProviderProps {
183
188
  children: ReactNode;
184
189
  }
@@ -359,5 +364,5 @@ declare const TopbarContainer: ({ children }: {
359
364
  children: React.ReactNode;
360
365
  }) => react_jsx_runtime.JSX.Element;
361
366
 
362
- export { AppBackground, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, FilmGrain, FloatingOrbs, LinksGroup, PageContainer, PerspectiveGrid, RadiantGlow, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subsidebarWidth, topbarHeight, useSidebar, useSidebarCollapse };
367
+ export { AppBackground, AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, FilmGrain, FloatingOrbs, LinksGroup, PageContainer, PerspectiveGrid, RadiantGlow, Sidebar, SidebarContext, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, subsidebarWidth, topbarHeight, useSidebar, useSidebarCollapse };
363
368
  export type { CollapsibleSidebarGroupProps, LinkItem, LinksGroupProps, SidebarListItemProps, SidebarNestedProps, SubshellContainerProps, SubshellContentContainerProps, SubshellRightSideContainerProps, SubshellSidebarContainerProps, SubshellSidebarProps, SubshellSidebarSectionProps, TopbarProps };
@@ -1,5 +1,5 @@
1
- export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, PageContainer, Sidebar, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-5OJM7FHM.js';
2
- export { sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight } from '../chunk-MYRCM7VD.js';
1
+ export { AppShellCenteredContainer, AppShellContainer, AppShellContentContainer, AppShellError, AppShellLoader, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, PageContainer, Sidebar, SidebarContext, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellLoader, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarSection, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-JAUEZCVD.js';
2
+ export { sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight } from '../chunk-KBLGVZBD.js';
3
3
  import '../chunk-LHQTTUL2.js';
4
4
  export { AppBackground, FilmGrain, FloatingOrbs, PerspectiveGrid, RadiantGlow } from '../chunk-TBRTRBJV.js';
5
5
  import '../chunk-QJ2KCHKX.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "1.14.4",
3
+ "version": "1.14.6",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",