@cere/cere-design-system 0.0.18 → 0.0.19

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.d.mts CHANGED
@@ -152,9 +152,24 @@ declare const useIsMobile: () => boolean;
152
152
 
153
153
  type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
154
154
  interface ButtonProps extends Omit<ButtonProps$1, 'variant' | 'color'> {
155
+ /**
156
+ * The visual style variant of the button
157
+ * - primary: Filled button with primary color background
158
+ * - secondary: Outlined button with transparent background and border
159
+ * - tertiary: Text button with no background or border
160
+ */
155
161
  variant?: ButtonVariant;
162
+ /**
163
+ * The size of the button
164
+ */
156
165
  size?: 'small' | 'medium' | 'large';
166
+ /**
167
+ * Icon element to display before the button text
168
+ */
157
169
  startIcon?: React__default.ReactNode;
170
+ /**
171
+ * Icon element to display after the button text
172
+ */
158
173
  endIcon?: React__default.ReactNode;
159
174
  }
160
175
  declare const Button: React__default.FC<ButtonProps>;
@@ -1131,6 +1146,7 @@ interface DeploymentCardAction {
1131
1146
  icon?: React__default.ReactNode;
1132
1147
  onClick?: () => void;
1133
1148
  highlight?: boolean;
1149
+ outlined?: boolean;
1134
1150
  }
1135
1151
  interface DeploymentDashboardCardProps {
1136
1152
  /** Entity type: drives chip color and icon (Figma 15-1725, 15-1276) */
@@ -1157,8 +1173,6 @@ interface DeploymentDashboardCardProps {
1157
1173
  onExpandToggle?: () => void;
1158
1174
  /** When copy ID is clicked */
1159
1175
  onCopyId?: () => void;
1160
- /** Open context menu (three-dots) */
1161
- onContextMenu?: (e: React__default.MouseEvent) => void;
1162
1176
  /** Optional className */
1163
1177
  className?: string;
1164
1178
  /** Child content rendered inside the card border (used by tree to nest children) */
@@ -1223,8 +1237,6 @@ interface DeploymentDashboardTreeProps {
1223
1237
  onExpandToggle?: (nodeId: string) => void;
1224
1238
  /** When a card's copy-ID button is clicked */
1225
1239
  onCopyId?: (nodeId: string) => void;
1226
- /** Open context menu for node */
1227
- onContextMenu?: (nodeId: string, e: React__default.MouseEvent) => void;
1228
1240
  /** Override row content; default: render DeploymentDashboardCard from node data */
1229
1241
  renderCard?: (node: DeploymentTreeNode) => React__default.ReactNode;
1230
1242
  }
package/dist/index.d.ts CHANGED
@@ -152,9 +152,24 @@ declare const useIsMobile: () => boolean;
152
152
 
153
153
  type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
154
154
  interface ButtonProps extends Omit<ButtonProps$1, 'variant' | 'color'> {
155
+ /**
156
+ * The visual style variant of the button
157
+ * - primary: Filled button with primary color background
158
+ * - secondary: Outlined button with transparent background and border
159
+ * - tertiary: Text button with no background or border
160
+ */
155
161
  variant?: ButtonVariant;
162
+ /**
163
+ * The size of the button
164
+ */
156
165
  size?: 'small' | 'medium' | 'large';
166
+ /**
167
+ * Icon element to display before the button text
168
+ */
157
169
  startIcon?: React__default.ReactNode;
170
+ /**
171
+ * Icon element to display after the button text
172
+ */
158
173
  endIcon?: React__default.ReactNode;
159
174
  }
160
175
  declare const Button: React__default.FC<ButtonProps>;
@@ -1131,6 +1146,7 @@ interface DeploymentCardAction {
1131
1146
  icon?: React__default.ReactNode;
1132
1147
  onClick?: () => void;
1133
1148
  highlight?: boolean;
1149
+ outlined?: boolean;
1134
1150
  }
1135
1151
  interface DeploymentDashboardCardProps {
1136
1152
  /** Entity type: drives chip color and icon (Figma 15-1725, 15-1276) */
@@ -1157,8 +1173,6 @@ interface DeploymentDashboardCardProps {
1157
1173
  onExpandToggle?: () => void;
1158
1174
  /** When copy ID is clicked */
1159
1175
  onCopyId?: () => void;
1160
- /** Open context menu (three-dots) */
1161
- onContextMenu?: (e: React__default.MouseEvent) => void;
1162
1176
  /** Optional className */
1163
1177
  className?: string;
1164
1178
  /** Child content rendered inside the card border (used by tree to nest children) */
@@ -1223,8 +1237,6 @@ interface DeploymentDashboardTreeProps {
1223
1237
  onExpandToggle?: (nodeId: string) => void;
1224
1238
  /** When a card's copy-ID button is clicked */
1225
1239
  onCopyId?: (nodeId: string) => void;
1226
- /** Open context menu for node */
1227
- onContextMenu?: (nodeId: string, e: React__default.MouseEvent) => void;
1228
1240
  /** Override row content; default: render DeploymentDashboardCard from node data */
1229
1241
  renderCard?: (node: DeploymentTreeNode) => React__default.ReactNode;
1230
1242
  }
package/dist/index.js CHANGED
@@ -1956,6 +1956,17 @@ var useIsMobile = () => {
1956
1956
  var import_Button = __toESM(require("@mui/material/Button"));
1957
1957
  var import_styles2 = require("@mui/material/styles");
1958
1958
  var import_jsx_runtime4 = require("react/jsx-runtime");
1959
+ var BUTTON_SPACING = {
1960
+ borderRadius: "8px",
1961
+ padding: "8px 16px",
1962
+ iconMargin: "8px"
1963
+ };
1964
+ var BUTTON_TYPOGRAPHY = {
1965
+ fontSize: "16px",
1966
+ fontWeight: 500,
1967
+ lineHeight: 1.5,
1968
+ letterSpacing: "0.8px"
1969
+ };
1959
1970
  var StyledPrimaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
1960
1971
  backgroundColor: colors.primary.main,
1961
1972
  color: colors.primary.contrastText,
@@ -1970,21 +1981,42 @@ var StyledPrimaryButton = (0, import_styles2.styled)(import_Button.default)(() =
1970
1981
  color: colors.grey[500]
1971
1982
  }
1972
1983
  }));
1984
+ var iconStyles = {
1985
+ "& > *": {
1986
+ fontSize: BUTTON_TYPOGRAPHY.fontSize
1987
+ }
1988
+ };
1973
1989
  var StyledSecondaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
1974
- backgroundColor: "transparent",
1975
- color: colors.primary.main,
1976
- border: `1px solid ${colors.primary.main}`,
1990
+ backgroundColor: deploymentSurfaceTokens.surfaceHigh,
1991
+ color: deploymentSurfaceTokens.textPrimary,
1992
+ border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
1993
+ borderRadius: BUTTON_SPACING.borderRadius,
1994
+ padding: BUTTON_SPACING.padding,
1995
+ textTransform: "capitalize",
1996
+ letterSpacing: BUTTON_TYPOGRAPHY.letterSpacing,
1997
+ fontSize: BUTTON_TYPOGRAPHY.fontSize,
1998
+ fontWeight: BUTTON_TYPOGRAPHY.fontWeight,
1999
+ lineHeight: BUTTON_TYPOGRAPHY.lineHeight,
1977
2000
  "&:hover": {
1978
2001
  backgroundColor: colors.background.selected,
1979
- borderColor: colors.primary.light
2002
+ borderColor: deploymentSurfaceTokens.strokeOutside
1980
2003
  },
1981
2004
  "&:active": {
1982
2005
  backgroundColor: colors.background.selected,
1983
- borderColor: colors.primary.dark
2006
+ borderColor: deploymentSurfaceTokens.borderDefault
1984
2007
  },
1985
2008
  "&:disabled": {
1986
2009
  borderColor: colors.grey[300],
1987
- color: colors.grey[500]
2010
+ color: colors.grey[500],
2011
+ backgroundColor: colors.grey[50]
2012
+ },
2013
+ "& .MuiButton-startIcon": {
2014
+ marginRight: BUTTON_SPACING.iconMargin,
2015
+ ...iconStyles
2016
+ },
2017
+ "& .MuiButton-endIcon": {
2018
+ marginLeft: BUTTON_SPACING.iconMargin,
2019
+ ...iconStyles
1988
2020
  }
1989
2021
  }));
1990
2022
  var StyledTertiaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
@@ -2000,6 +2032,11 @@ var StyledTertiaryButton = (0, import_styles2.styled)(import_Button.default)(()
2000
2032
  color: colors.grey[500]
2001
2033
  }
2002
2034
  }));
2035
+ var BUTTON_COMPONENTS = {
2036
+ primary: StyledPrimaryButton,
2037
+ secondary: StyledSecondaryButton,
2038
+ tertiary: StyledTertiaryButton
2039
+ };
2003
2040
  var Button = ({
2004
2041
  variant = "primary",
2005
2042
  children,
@@ -2007,21 +2044,13 @@ var Button = ({
2007
2044
  endIcon,
2008
2045
  ...props
2009
2046
  }) => {
2047
+ const ButtonComponent = BUTTON_COMPONENTS[variant];
2010
2048
  const buttonProps = {
2011
2049
  ...props,
2012
2050
  startIcon,
2013
2051
  endIcon
2014
2052
  };
2015
- switch (variant) {
2016
- case "primary":
2017
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledPrimaryButton, { ...buttonProps, children });
2018
- case "secondary":
2019
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledSecondaryButton, { ...buttonProps, children });
2020
- case "tertiary":
2021
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledTertiaryButton, { ...buttonProps, children });
2022
- default:
2023
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledPrimaryButton, { ...buttonProps, children });
2024
- }
2053
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonComponent, { ...buttonProps, children });
2025
2054
  };
2026
2055
 
2027
2056
  // src/components/buttons/IconButton.tsx
@@ -5029,7 +5058,6 @@ var ListItem4 = ({
5029
5058
 
5030
5059
  // src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
5031
5060
  var import_material27 = require("@mui/material");
5032
- var import_MoreHoriz = __toESM(require("@mui/icons-material/MoreHoriz"));
5033
5061
  var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"));
5034
5062
  var import_ChevronRight2 = __toESM(require("@mui/icons-material/ChevronRight"));
5035
5063
  var import_ContentCopy = __toESM(require("@mui/icons-material/ContentCopy"));
@@ -5059,7 +5087,7 @@ var ENTITY_LABELS = {
5059
5087
  engagement: "Engagement",
5060
5088
  agent: "Agent"
5061
5089
  };
5062
- var ENTITY_ICON_SIZE = 24;
5090
+ var ENTITY_ICON_SIZE = 16;
5063
5091
  var ENTITY_ICONS = {
5064
5092
  workspace: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_WorkOutline.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
5065
5093
  stream: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_Waves.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
@@ -5074,6 +5102,18 @@ var STATUS_DOT_COLORS = {
5074
5102
  disabled: deploymentStatusColors.disabledDim
5075
5103
  };
5076
5104
  var CHEVRON_SIZE = 16;
5105
+ var ENTITY_CHIP_STYLES = {
5106
+ borderRadius: "12px",
5107
+ borderWidth: "1.5px",
5108
+ padding: { left: 0.75, right: 1, vertical: 0.25 },
5109
+ gap: 0.5
5110
+ };
5111
+ var ENTITY_CHIP_TYPOGRAPHY = {
5112
+ fontSize: "12px",
5113
+ fontWeight: 500,
5114
+ lineHeight: 1.33,
5115
+ letterSpacing: "0.07px"
5116
+ };
5077
5117
  var StatusDot = (0, import_styles26.styled)(import_material27.Box, {
5078
5118
  shouldForwardProp: (p) => p !== "status"
5079
5119
  })(({ status }) => ({
@@ -5089,13 +5129,13 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ (0, import_jsx_runti
5089
5129
  sx: {
5090
5130
  display: "inline-flex",
5091
5131
  alignItems: "center",
5092
- gap: 0.5,
5093
- pl: 1,
5094
- pr: 1.5,
5095
- py: 0.5,
5096
- borderRadius: "16px",
5132
+ gap: ENTITY_CHIP_STYLES.gap,
5133
+ pl: ENTITY_CHIP_STYLES.padding.left,
5134
+ pr: ENTITY_CHIP_STYLES.padding.right,
5135
+ py: ENTITY_CHIP_STYLES.padding.vertical,
5136
+ borderRadius: ENTITY_CHIP_STYLES.borderRadius,
5097
5137
  backgroundColor: deploymentSurfaceTokens.surfaceHigh,
5098
- border: `2px solid ${color}`,
5138
+ border: `${ENTITY_CHIP_STYLES.borderWidth} solid ${color}`,
5099
5139
  flexShrink: 0
5100
5140
  },
5101
5141
  children: [
@@ -5104,8 +5144,13 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ (0, import_jsx_runti
5104
5144
  import_material27.Typography,
5105
5145
  {
5106
5146
  variant: "body2",
5107
- fontWeight: 500,
5108
- sx: { color: "black", lineHeight: 1.42, fontSize: "14px", letterSpacing: "0.07px" },
5147
+ fontWeight: ENTITY_CHIP_TYPOGRAPHY.fontWeight,
5148
+ sx: {
5149
+ color: "black",
5150
+ lineHeight: ENTITY_CHIP_TYPOGRAPHY.lineHeight,
5151
+ fontSize: ENTITY_CHIP_TYPOGRAPHY.fontSize,
5152
+ letterSpacing: ENTITY_CHIP_TYPOGRAPHY.letterSpacing
5153
+ },
5109
5154
  children: ENTITY_LABELS[entityType]
5110
5155
  }
5111
5156
  )
@@ -5168,31 +5213,42 @@ var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ (0, import_js
5168
5213
  }
5169
5214
  )
5170
5215
  ] });
5171
- var CardActionList = ({ actions }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
5216
+ var getActionButtonStyles = (action) => {
5217
+ const baseStyles = {
5218
+ display: "inline-flex",
5219
+ alignItems: "center",
5220
+ gap: 0.5,
5221
+ cursor: action.onClick ? "pointer" : "default",
5222
+ background: "none",
5223
+ font: "inherit",
5224
+ color: deploymentSurfaceTokens.textPrimary,
5225
+ whiteSpace: "nowrap",
5226
+ "&:hover": action.onClick ? { opacity: 0.7 } : void 0
5227
+ };
5228
+ const variantStyles = action.outlined ? {
5229
+ border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
5230
+ borderRadius: "8px",
5231
+ p: 1,
5232
+ bgcolor: "white"
5233
+ } : {
5234
+ border: "none",
5235
+ p: 0
5236
+ };
5237
+ return { ...baseStyles, ...variantStyles };
5238
+ };
5239
+ var CardAction = ({ action }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
5172
5240
  import_material27.Box,
5173
5241
  {
5174
5242
  component: action.onClick ? "button" : "span",
5175
5243
  onClick: action.onClick,
5176
- sx: {
5177
- display: "inline-flex",
5178
- alignItems: "center",
5179
- gap: 0.5,
5180
- cursor: action.onClick ? "pointer" : "default",
5181
- background: "none",
5182
- border: "none",
5183
- p: 0,
5184
- font: "inherit",
5185
- color: deploymentSurfaceTokens.textPrimary,
5186
- whiteSpace: "nowrap",
5187
- "&:hover": action.onClick ? { opacity: 0.7 } : void 0
5188
- },
5244
+ sx: getActionButtonStyles(action),
5189
5245
  children: [
5190
5246
  action.icon && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.Box, { component: "span", sx: { display: "flex", alignItems: "center" }, children: action.icon }),
5191
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.Typography, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
5247
+ action.label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.Typography, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
5192
5248
  ]
5193
- },
5194
- action.id
5195
- )) });
5249
+ }
5250
+ );
5251
+ var CardActionList = ({ actions }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CardAction, { action }, action.id)) });
5196
5252
  var DeploymentDashboardCard = ({
5197
5253
  entityType,
5198
5254
  title,
@@ -5206,20 +5262,25 @@ var DeploymentDashboardCard = ({
5206
5262
  expanded: controlledExpanded,
5207
5263
  onExpandToggle,
5208
5264
  onCopyId,
5209
- onContextMenu,
5210
5265
  className,
5211
5266
  children
5212
5267
  }) => {
5213
5268
  const theme2 = (0, import_material27.useTheme)();
5214
5269
  const entityColor = theme2.palette.deployment?.entity?.[entityType] ?? deploymentEntityColors[entityType];
5270
+ const isControlled = expandable && onExpandToggle != null;
5215
5271
  const { expanded, toggle } = useControlledExpand(
5216
- expandable && onExpandToggle != null ? controlledExpanded : void 0,
5217
- expandable && onExpandToggle != null ? onExpandToggle : void 0
5272
+ isControlled ? controlledExpanded : void 0,
5273
+ isControlled ? onExpandToggle : void 0
5218
5274
  );
5219
5275
  const isWorkspace = entityType === "workspace";
5220
5276
  const isDeployment = entityType === "deployment";
5221
- const isAgent = entityType === "agent";
5222
- const capacityClamped = isDeployment && capacity != null ? Math.min(100, Math.max(0, capacity)) : void 0;
5277
+ const getClampedCapacity = (capacity2) => {
5278
+ if (!isDeployment || capacity2 == null) {
5279
+ return void 0;
5280
+ }
5281
+ return Math.min(100, Math.max(0, capacity2));
5282
+ };
5283
+ const capacityClamped = getClampedCapacity(capacity);
5223
5284
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
5224
5285
  import_material27.Paper,
5225
5286
  {
@@ -5231,7 +5292,7 @@ var DeploymentDashboardCard = ({
5231
5292
  boxShadow: isWorkspace ? deploymentSurfaceTokens.workspaceShadow : "none",
5232
5293
  px: 1,
5233
5294
  py: isDeployment ? 2 : 1,
5234
- pl: isAgent && !expandable ? 2 : 1,
5295
+ pl: 1,
5235
5296
  display: "flex",
5236
5297
  flexDirection: "column",
5237
5298
  gap: 0
@@ -5249,7 +5310,7 @@ var DeploymentDashboardCard = ({
5249
5310
  children: [
5250
5311
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Box, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
5251
5312
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
5252
- expandable && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5313
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5253
5314
  import_material27.IconButton,
5254
5315
  {
5255
5316
  size: "small",
@@ -5258,7 +5319,7 @@ var DeploymentDashboardCard = ({
5258
5319
  sx: { p: "5px" },
5259
5320
  children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ExpandMore.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ChevronRight2.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } })
5260
5321
  }
5261
- ),
5322
+ ) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.Box, { sx: { width: 26, flexShrink: 0 } }),
5262
5323
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EntityChip, { entityType, color: entityColor }),
5263
5324
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5264
5325
  import_material27.Typography,
@@ -5278,7 +5339,7 @@ var DeploymentDashboardCard = ({
5278
5339
  sx: {
5279
5340
  display: "flex",
5280
5341
  gap: 2,
5281
- px: expandable ? "36px" : 0,
5342
+ px: "34px",
5282
5343
  color: deploymentSurfaceTokens.textSecondary
5283
5344
  },
5284
5345
  children: [
@@ -5297,22 +5358,7 @@ var DeploymentDashboardCard = ({
5297
5358
  ] }),
5298
5359
  /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Box, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
5299
5360
  statusIndicator != null && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(StatusDot, { status: statusIndicator, "aria-hidden": true }),
5300
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CardActionList, { actions }),
5301
- onContextMenu && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
5302
- import_material27.IconButton,
5303
- {
5304
- size: "small",
5305
- onClick: onContextMenu,
5306
- "aria-label": "Open menu",
5307
- sx: {
5308
- border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
5309
- borderRadius: "8px",
5310
- p: 1,
5311
- bgcolor: "white"
5312
- },
5313
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_MoreHoriz.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.textPrimary } })
5314
- }
5315
- )
5361
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CardActionList, { actions })
5316
5362
  ] })
5317
5363
  ]
5318
5364
  }
@@ -5511,7 +5557,7 @@ var Rail = (0, import_styles28.styled)(import_material29.Box, {
5511
5557
  flexShrink: 0,
5512
5558
  alignSelf: "stretch"
5513
5559
  }));
5514
- var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCard }) => {
5560
+ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
5515
5561
  const hasChildren = Boolean(node.children && node.children.length > 0);
5516
5562
  const { expanded, toggle } = useControlledExpand(
5517
5563
  onExpandToggle != null ? node.expanded : void 0,
@@ -5541,7 +5587,6 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
5541
5587
  depth: depth + 1,
5542
5588
  onExpandToggle,
5543
5589
  onCopyId,
5544
- onContextMenu,
5545
5590
  renderCard
5546
5591
  },
5547
5592
  child.id
@@ -5564,7 +5609,6 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
5564
5609
  expanded,
5565
5610
  onExpandToggle: hasChildren ? toggle : void 0,
5566
5611
  onCopyId: onCopyId && node.idDisplay ? () => onCopyId(node.id) : void 0,
5567
- onContextMenu: onContextMenu ? (e) => onContextMenu(node.id, e) : void 0,
5568
5612
  children: renderedChildren
5569
5613
  }
5570
5614
  );
@@ -5574,7 +5618,6 @@ var DeploymentDashboardTree = ({
5574
5618
  nodes,
5575
5619
  onExpandToggle,
5576
5620
  onCopyId,
5577
- onContextMenu,
5578
5621
  renderCard
5579
5622
  }) => {
5580
5623
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
@@ -5594,7 +5637,6 @@ var DeploymentDashboardTree = ({
5594
5637
  depth: 0,
5595
5638
  onExpandToggle,
5596
5639
  onCopyId,
5597
- onContextMenu,
5598
5640
  renderCard
5599
5641
  },
5600
5642
  node.id