@localstack/appinspector-ui 1.0.12 → 1.0.13
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 +34 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2515,7 +2515,7 @@ var AwsServiceIcon = ({ hideTooltip, service, size = "medium", title }) => {
|
|
|
2515
2515
|
{
|
|
2516
2516
|
wrap: !hideTooltip,
|
|
2517
2517
|
wrapperFn: (child) => /* @__PURE__ */ jsx121(Tooltip, { placement: "top", title: title ?? service, children: child }),
|
|
2518
|
-
children: /* @__PURE__ */ jsx121(Icon, { height, style: {
|
|
2518
|
+
children: /* @__PURE__ */ jsx121(Icon, { height, style: { display: "block" }, width })
|
|
2519
2519
|
}
|
|
2520
2520
|
);
|
|
2521
2521
|
};
|
|
@@ -2523,37 +2523,44 @@ var AwsServiceIcon = ({ hideTooltip, service, size = "medium", title }) => {
|
|
|
2523
2523
|
// src/components/cells/pill-cell.tsx
|
|
2524
2524
|
import { Box } from "@mui/material";
|
|
2525
2525
|
import { jsx as jsx122 } from "react/jsx-runtime";
|
|
2526
|
+
var defaultBackgroundColor = "background.paper";
|
|
2527
|
+
var defaultBorderColor = "text.secondary";
|
|
2526
2528
|
var PillCell = ({
|
|
2527
|
-
backgroundColor =
|
|
2528
|
-
borderColor =
|
|
2529
|
+
backgroundColor = defaultBackgroundColor,
|
|
2530
|
+
borderColor = defaultBorderColor,
|
|
2529
2531
|
borderWidth = "1px",
|
|
2530
2532
|
children,
|
|
2531
2533
|
height = "24px",
|
|
2532
2534
|
paddingBottom,
|
|
2533
2535
|
paddingTop
|
|
2534
|
-
}) =>
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2536
|
+
}) => {
|
|
2537
|
+
return /* @__PURE__ */ jsx122(
|
|
2538
|
+
Box,
|
|
2539
|
+
{
|
|
2540
|
+
sx: {
|
|
2541
|
+
alignItems: "center",
|
|
2542
|
+
backgroundColor,
|
|
2543
|
+
borderColor,
|
|
2544
|
+
borderRadius: "16px",
|
|
2545
|
+
borderStyle: "solid",
|
|
2546
|
+
borderWidth,
|
|
2547
|
+
display: "inline-flex",
|
|
2548
|
+
height: paddingTop || paddingBottom ? "auto" : height,
|
|
2549
|
+
maxWidth: "100%",
|
|
2550
|
+
...paddingTop && { paddingTop },
|
|
2551
|
+
...paddingBottom && { paddingBottom },
|
|
2552
|
+
overflow: "hidden"
|
|
2553
|
+
},
|
|
2554
|
+
children
|
|
2555
|
+
}
|
|
2556
|
+
);
|
|
2557
|
+
};
|
|
2551
2558
|
|
|
2552
2559
|
// src/components/cells/service-cell.tsx
|
|
2553
2560
|
import { jsx as jsx123, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
2554
2561
|
var truncateName = (inputString, truncateLength = 15) => inputString.length > truncateLength ? `${inputString.slice(0, truncateLength - 3)}...` : inputString;
|
|
2555
2562
|
var ServiceCell = ({
|
|
2556
|
-
borderColor,
|
|
2563
|
+
borderColor = defaultBorderColor,
|
|
2557
2564
|
borderWidth,
|
|
2558
2565
|
height = "24px",
|
|
2559
2566
|
resource,
|
|
@@ -2568,9 +2575,9 @@ var ServiceCell = ({
|
|
|
2568
2575
|
{
|
|
2569
2576
|
sx: {
|
|
2570
2577
|
alignItems: "center",
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2578
|
+
borderRightColor: borderColor,
|
|
2579
|
+
borderRightStyle: "solid",
|
|
2580
|
+
borderRightWidth: `1px`,
|
|
2574
2581
|
display: "flex",
|
|
2575
2582
|
height,
|
|
2576
2583
|
justifyContent: "center",
|
|
@@ -2585,7 +2592,7 @@ var ServiceCell = ({
|
|
|
2585
2592
|
Typography,
|
|
2586
2593
|
{
|
|
2587
2594
|
sx: {
|
|
2588
|
-
borderRight: resource ?
|
|
2595
|
+
borderRight: resource ? `1px solid ${borderColor}` : "none",
|
|
2589
2596
|
fontWeight: "bold",
|
|
2590
2597
|
overflow: "hidden",
|
|
2591
2598
|
padding: "1px 8px",
|
|
@@ -2604,7 +2611,7 @@ var ServiceCell = ({
|
|
|
2604
2611
|
children: service
|
|
2605
2612
|
}
|
|
2606
2613
|
),
|
|
2607
|
-
resource && /* @__PURE__ */ jsx123(
|
|
2614
|
+
resource !== void 0 && /* @__PURE__ */ jsx123(
|
|
2608
2615
|
Typography,
|
|
2609
2616
|
{
|
|
2610
2617
|
sx: {
|
|
@@ -3727,7 +3734,7 @@ var ServiceNode = memo(function ServiceNode2({ data, selected }) {
|
|
|
3727
3734
|
/* @__PURE__ */ jsx133(
|
|
3728
3735
|
ServiceCell,
|
|
3729
3736
|
{
|
|
3730
|
-
borderColor: selected ? "
|
|
3737
|
+
borderColor: selected ? "text.primary" : "text.secondary",
|
|
3731
3738
|
borderWidth: selected ? "1.5px" : "1px",
|
|
3732
3739
|
height: "32px",
|
|
3733
3740
|
resource: data.event.resource_name,
|