@monolith-forensics/monolith-ui 1.1.65 → 1.1.66
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.
|
@@ -44,6 +44,14 @@ const StyledInnerItemContainer = styled.div `
|
|
|
44
44
|
padding-right: 5px;
|
|
45
45
|
}
|
|
46
46
|
`;
|
|
47
|
+
const EmptyComponent = styled.div `
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
padding: 5px;
|
|
52
|
+
font-size: 1 rem;
|
|
53
|
+
color: ${(props) => props.theme.palette.text.secondary};
|
|
54
|
+
`;
|
|
47
55
|
const GroupTitle = styled((_a) => {
|
|
48
56
|
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
49
57
|
return (_jsxs("div", Object.assign({ className: className }, props, { children: [_jsx("div", { className: "group-line" }), _jsx("div", { className: "group-label", children: children }), _jsx("div", { className: "group-line" })] })));
|
|
@@ -465,7 +473,7 @@ DropDownProps = {}, debounceTime = 300, sort = false, }) => {
|
|
|
465
473
|
maxHeight: DropDownProps.autoHeight
|
|
466
474
|
? (dropDownHeight || 250) - 10
|
|
467
475
|
: "",
|
|
468
|
-
}, variant: variant, "data-empty": filteredItems.length === 0 }, DropDownProps, { children: [loading && _jsx(Loader, {}), !loading && actionComponent && (_jsx(ActionMenu, { children: actionComponent })), !loading && (_jsx(StyledInnerItemContainer, { ref: scrollContainerRef, "data-scroll-active": scrollActive, onScroll: onScroll, children: grouped
|
|
476
|
+
}, variant: variant, "data-empty": filteredItems.length === 0 }, DropDownProps, { children: [loading && _jsx(Loader, {}), !loading && actionComponent && (_jsx(ActionMenu, { children: actionComponent })), !loading && filteredItems.length === 0 && (_jsx(EmptyComponent, { children: "No Items" })), !loading && (_jsx(StyledInnerItemContainer, { ref: scrollContainerRef, "data-scroll-active": scrollActive, onScroll: onScroll, children: grouped
|
|
469
477
|
? groups.map((group, index) => (_jsxs("div", { children: [_jsx(GroupTitle, { size: size, children: group.label }), group.items.map((item, index) => {
|
|
470
478
|
return (_jsx(Tooltip, { content: OptionTooltip ? (_jsx(OptionTooltip, { data: item.data })) : null, side: "left", children: _jsx(StyledItem, { className: "mfFloatingItem", onClick: (e) => handleItemClick(e, item), "data-selected": isObjectArray
|
|
471
479
|
? (selected === null || selected === void 0 ? void 0 : selected.value) ===
|