@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.cjs
CHANGED
|
@@ -2552,7 +2552,7 @@ var AwsServiceIcon = ({ hideTooltip, service, size = "medium", title }) => {
|
|
|
2552
2552
|
{
|
|
2553
2553
|
wrap: !hideTooltip,
|
|
2554
2554
|
wrapperFn: (child) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material.Tooltip, { placement: "top", title: title ?? service, children: child }),
|
|
2555
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon, { height, style: {
|
|
2555
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon, { height, style: { display: "block" }, width })
|
|
2556
2556
|
}
|
|
2557
2557
|
);
|
|
2558
2558
|
};
|
|
@@ -2560,37 +2560,44 @@ var AwsServiceIcon = ({ hideTooltip, service, size = "medium", title }) => {
|
|
|
2560
2560
|
// src/components/cells/pill-cell.tsx
|
|
2561
2561
|
var import_material2 = require("@mui/material");
|
|
2562
2562
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
2563
|
+
var defaultBackgroundColor = "background.paper";
|
|
2564
|
+
var defaultBorderColor = "text.secondary";
|
|
2563
2565
|
var PillCell = ({
|
|
2564
|
-
backgroundColor =
|
|
2565
|
-
borderColor =
|
|
2566
|
+
backgroundColor = defaultBackgroundColor,
|
|
2567
|
+
borderColor = defaultBorderColor,
|
|
2566
2568
|
borderWidth = "1px",
|
|
2567
2569
|
children,
|
|
2568
2570
|
height = "24px",
|
|
2569
2571
|
paddingBottom,
|
|
2570
2572
|
paddingTop
|
|
2571
|
-
}) =>
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2573
|
+
}) => {
|
|
2574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
2575
|
+
import_material2.Box,
|
|
2576
|
+
{
|
|
2577
|
+
sx: {
|
|
2578
|
+
alignItems: "center",
|
|
2579
|
+
backgroundColor,
|
|
2580
|
+
borderColor,
|
|
2581
|
+
borderRadius: "16px",
|
|
2582
|
+
borderStyle: "solid",
|
|
2583
|
+
borderWidth,
|
|
2584
|
+
display: "inline-flex",
|
|
2585
|
+
height: paddingTop || paddingBottom ? "auto" : height,
|
|
2586
|
+
maxWidth: "100%",
|
|
2587
|
+
...paddingTop && { paddingTop },
|
|
2588
|
+
...paddingBottom && { paddingBottom },
|
|
2589
|
+
overflow: "hidden"
|
|
2590
|
+
},
|
|
2591
|
+
children
|
|
2592
|
+
}
|
|
2593
|
+
);
|
|
2594
|
+
};
|
|
2588
2595
|
|
|
2589
2596
|
// src/components/cells/service-cell.tsx
|
|
2590
2597
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
2591
2598
|
var truncateName = (inputString, truncateLength = 15) => inputString.length > truncateLength ? `${inputString.slice(0, truncateLength - 3)}...` : inputString;
|
|
2592
2599
|
var ServiceCell = ({
|
|
2593
|
-
borderColor,
|
|
2600
|
+
borderColor = defaultBorderColor,
|
|
2594
2601
|
borderWidth,
|
|
2595
2602
|
height = "24px",
|
|
2596
2603
|
resource,
|
|
@@ -2605,9 +2612,9 @@ var ServiceCell = ({
|
|
|
2605
2612
|
{
|
|
2606
2613
|
sx: {
|
|
2607
2614
|
alignItems: "center",
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2615
|
+
borderRightColor: borderColor,
|
|
2616
|
+
borderRightStyle: "solid",
|
|
2617
|
+
borderRightWidth: `1px`,
|
|
2611
2618
|
display: "flex",
|
|
2612
2619
|
height,
|
|
2613
2620
|
justifyContent: "center",
|
|
@@ -2622,7 +2629,7 @@ var ServiceCell = ({
|
|
|
2622
2629
|
import_material3.Typography,
|
|
2623
2630
|
{
|
|
2624
2631
|
sx: {
|
|
2625
|
-
borderRight: resource ?
|
|
2632
|
+
borderRight: resource ? `1px solid ${borderColor}` : "none",
|
|
2626
2633
|
fontWeight: "bold",
|
|
2627
2634
|
overflow: "hidden",
|
|
2628
2635
|
padding: "1px 8px",
|
|
@@ -2641,7 +2648,7 @@ var ServiceCell = ({
|
|
|
2641
2648
|
children: service
|
|
2642
2649
|
}
|
|
2643
2650
|
),
|
|
2644
|
-
resource && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
2651
|
+
resource !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
2645
2652
|
import_material3.Typography,
|
|
2646
2653
|
{
|
|
2647
2654
|
sx: {
|
|
@@ -3764,7 +3771,7 @@ var ServiceNode = (0, import_react12.memo)(function ServiceNode2({ data, selecte
|
|
|
3764
3771
|
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
3765
3772
|
ServiceCell,
|
|
3766
3773
|
{
|
|
3767
|
-
borderColor: selected ? "
|
|
3774
|
+
borderColor: selected ? "text.primary" : "text.secondary",
|
|
3768
3775
|
borderWidth: selected ? "1.5px" : "1px",
|
|
3769
3776
|
height: "32px",
|
|
3770
3777
|
resource: data.event.resource_name,
|