@monolith-forensics/monolith-ui 1.2.79 → 1.2.80

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.
@@ -72,20 +72,20 @@ export const MenuItemList = ({ menuItems, searchable, searchValue = "", isObject
72
72
  const item = (data === null || data === void 0 ? void 0 : data[index]) || {};
73
73
  const isSelected = !!(selected === null || selected === void 0 ? void 0 : selected.find((s) => isObjectArray ? (s === null || s === void 0 ? void 0 : s.value) === (item === null || item === void 0 ? void 0 : item.value) : s === item));
74
74
  if (item.items) {
75
- return (_jsx(DropDownMenu, { data: item.items, size: size, children: item.label }));
75
+ return (_jsx(DropDownMenu, { data: item.items, size: size, buttonProps: { style }, children: item.label }));
76
76
  }
77
- return (_jsxs(MenuItem, { className: "MenuItem", itemData: item, TooltipContent: TooltipContent, "data-selected": isSelected, leftSection: multiselect && (_jsx(CheckBox, { value: isSelected, size: size, onChange: (newValue) => {
78
- var _a;
79
- newValue ? handleAddItem(item) : handleRemoveItem(item);
80
- (_a = item === null || item === void 0 ? void 0 : item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, item);
81
- } })), multiselect: multiselect, size: size, title: !TooltipContent ? item === null || item === void 0 ? void 0 : item.label : undefined, onClick: (e) => {
77
+ return (_jsx(MenuItem, { className: "MenuItem", itemData: item, TooltipContent: TooltipContent, "data-selected": isSelected, leftSection: multiselect ? (_jsxs(_Fragment, { children: [_jsx(CheckBox, { value: isSelected, size: size, onChange: (newValue) => {
78
+ var _a;
79
+ newValue ? handleAddItem(item) : handleRemoveItem(item);
80
+ (_a = item === null || item === void 0 ? void 0 : item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, item);
81
+ } }), (item === null || item === void 0 ? void 0 : item.leftSection) || null] })) : ((item === null || item === void 0 ? void 0 : item.leftSection) || null), rightSection: item === null || item === void 0 ? void 0 : item.rightSection, multiselect: multiselect, size: size, title: !TooltipContent ? item === null || item === void 0 ? void 0 : item.label : undefined, onClick: (e) => {
82
82
  e.preventDefault();
83
83
  e.stopPropagation();
84
84
  handleItemClick(item, isSelected);
85
- }, style: style, children: [(item === null || item === void 0 ? void 0 : item.leftSection) || null, _jsx(_Fragment, { children: (renderOption === null || renderOption === void 0 ? void 0 : renderOption(item)) ||
86
- (item === null || item === void 0 ? void 0 : item.label) ||
87
- (typeof item === "string" || typeof item === "number"
88
- ? item
89
- : null) }), (item === null || item === void 0 ? void 0 : item.rightSection) || null] }, index));
85
+ }, style: style, children: (renderOption === null || renderOption === void 0 ? void 0 : renderOption(item)) ||
86
+ (item === null || item === void 0 ? void 0 : item.label) ||
87
+ (typeof item === "string" || typeof item === "number"
88
+ ? item
89
+ : null) }, index));
90
90
  } }) }));
91
91
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.2.79",
3
+ "version": "1.2.80",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",