@localstack/appinspector-ui 1.0.27 → 1.0.29

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.css ADDED
@@ -0,0 +1,5 @@
1
+ /* src/components/trace-graph/xyflow/style.css */
2
+ .dark-theme .react-flow__attribution a {
3
+ color: black;
4
+ }
5
+ /*# sourceMappingURL=index.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/trace-graph/xyflow/style.css"],"sourcesContent":[".dark-theme .react-flow__attribution a {\n color: black\n}\n"],"mappings":";AAAA,CAAC,WAAW,CAAC,wBAAwB;AACnC,SAAO;AACT;","names":[]}
package/dist/index.js CHANGED
@@ -149,7 +149,7 @@ var ResponsiveTimestampCell = ({ locale, value }) => {
149
149
  };
150
150
 
151
151
  // src/components/cells/service-cell.tsx
152
- import { Box as Box3, Divider, Typography } from "@mui/material";
152
+ import { Box as Box3, Divider, Typography, useTheme } from "@mui/material";
153
153
 
154
154
  // src/components/aws-service-icon/aws-service-icon.tsx
155
155
  import { Tooltip as Tooltip2 } from "@mui/material";
@@ -2504,10 +2504,10 @@ import { Box as Box2 } from "@mui/material";
2504
2504
  import { jsx as jsx124 } from "react/jsx-runtime";
2505
2505
  var PillCell = ({
2506
2506
  backgroundColor,
2507
- borderColor,
2508
- borderWidth = "1px",
2509
2507
  children,
2510
2508
  height = "24px",
2509
+ outlineColor,
2510
+ outlineWidth = "1px",
2511
2511
  paddingBottom,
2512
2512
  paddingTop
2513
2513
  }) => {
@@ -2517,13 +2517,13 @@ var PillCell = ({
2517
2517
  sx: {
2518
2518
  alignItems: "center",
2519
2519
  backgroundColor: backgroundColor ?? ((theme) => theme.palette.background.paper),
2520
- borderColor: borderColor ?? ((theme) => theme.palette.divider),
2521
2520
  borderRadius: "16px",
2522
- borderStyle: "solid",
2523
- borderWidth,
2524
2521
  display: "inline-flex",
2525
2522
  height: paddingTop || paddingBottom ? "auto" : height,
2526
2523
  maxWidth: "100%",
2524
+ outlineColor: outlineColor ?? ((theme) => theme.palette.divider),
2525
+ outlineStyle: "solid",
2526
+ outlineWidth,
2527
2527
  ...paddingTop && { paddingTop },
2528
2528
  ...paddingBottom && { paddingBottom },
2529
2529
  overflow: "hidden"
@@ -2543,9 +2543,10 @@ var ServiceCell = ({
2543
2543
  showIcon = true,
2544
2544
  width = "32px"
2545
2545
  }) => {
2546
- const borderColor = selected ? "text.primary" : "background.dark";
2547
- const borderWidth = selected ? "2px" : void 0;
2548
- return /* @__PURE__ */ jsx125(Box3, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs119(PillCell, { borderColor, borderWidth, height, children: [
2546
+ const theme = useTheme();
2547
+ const outlineColor = selected ? theme.palette.primary.light : theme.palette.text.secondary;
2548
+ const outlineWidth = selected ? "2px" : void 0;
2549
+ return /* @__PURE__ */ jsx125(Box3, { sx: { width: "100%" }, children: /* @__PURE__ */ jsxs119(PillCell, { height, outlineColor, outlineWidth, children: [
2549
2550
  showIcon ? /* @__PURE__ */ jsxs119(Fragment2, { children: [
2550
2551
  /* @__PURE__ */ jsx125(
2551
2552
  Box3,
@@ -4422,7 +4423,7 @@ function renderKeyValue(key, value) {
4422
4423
 
4423
4424
  // src/components/trace-graph/trace-graph.tsx
4424
4425
  import "@xyflow/react/dist/base.css";
4425
- import { Alert as Alert3, Button as Button4 } from "@mui/material";
4426
+ import { Alert as Alert3, Button as Button4, useTheme as useTheme2 } from "@mui/material";
4426
4427
  import { Background, ReactFlow, useReactFlow as useReactFlow2 } from "@xyflow/react";
4427
4428
  import { useCallback as useCallback6, useEffect as useEffect6, useState as useState9 } from "react";
4428
4429
 
@@ -4864,6 +4865,7 @@ var TraceGraph = ({
4864
4865
  onEventSelect(node.data.event);
4865
4866
  updateSelectedNode(node.id);
4866
4867
  }, [onEventSelect, updateSelectedNode]);
4868
+ const theme = useTheme2();
4867
4869
  return /* @__PURE__ */ jsxs132(Fragment7, { children: [
4868
4870
  spans.error && /* @__PURE__ */ jsxs132(
4869
4871
  Alert3,
@@ -4894,7 +4896,13 @@ var TraceGraph = ({
4894
4896
  selectNodesOnDrag: false,
4895
4897
  children: [
4896
4898
  /* @__PURE__ */ jsx142(Controls, {}),
4897
- /* @__PURE__ */ jsx142(Background, {})
4899
+ /* @__PURE__ */ jsx142(
4900
+ Background,
4901
+ {
4902
+ bgColor: theme.palette.background.paper,
4903
+ color: theme.palette.text.disabled
4904
+ }
4905
+ )
4898
4906
  ]
4899
4907
  }
4900
4908
  )