@monolith-forensics/monolith-ui 1.1.65 → 1.1.67

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) ===
@@ -19,9 +19,6 @@ const TextInput = styled(forwardRef((_a, ref) => {
19
19
  return (_jsxs("div", { className: className, children: [label && (_jsx(FieldLabel, { error: error, asterisk: required, size: size, description: description, children: label })), _jsx(Input, Object.assign({ ref: ref, size: size }, rest))] }));
20
20
  })) `
21
21
  grid-column: span ${({ colSpan }) => colSpan || 1};
22
- display: flex;
23
- flex-direction: column;
24
- justify-content: space-between;
25
22
  width: 100%;
26
23
  `;
27
24
  export default TextInput;
@@ -31,10 +31,6 @@ const StyledContent = styled.div `
31
31
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
32
32
  will-change: transform, opacity;
33
33
 
34
- &[data-empty="true"] {
35
- display: none;
36
- }
37
-
38
34
  &[data-scroll-active="true"] {
39
35
  padding-right: 5px;
40
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.65",
3
+ "version": "1.1.67",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",