@monolith-forensics/monolith-ui 1.1.70 → 1.1.71

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.
@@ -128,6 +128,11 @@ const StyledInputContainer = styled.div `
128
128
  }
129
129
  }
130
130
 
131
+ // focus within
132
+ &:focus-within {
133
+ border: 1px solid ${(props) => props.theme.palette.primary.main};
134
+ }
135
+
131
136
  &:focus {
132
137
  border: 1px solid ${(props) => props.theme.palette.primary.main};
133
138
  }
@@ -314,14 +314,6 @@ DropDownProps = {}, debounceTime = 300, sort = false, }) => {
314
314
  }
315
315
  // Enter key
316
316
  if (e.key === "Enter") {
317
- if (currentInputValue && currentInputValue !== "" && allowCustomValue) {
318
- handleAddItem(currentInputValue);
319
- setSearchValue("");
320
- update();
321
- }
322
- else {
323
- // TODO: decide what to do when user presses enter after typing a search value
324
- }
325
317
  toggleOpen();
326
318
  return;
327
319
  }
@@ -339,6 +331,7 @@ DropDownProps = {}, debounceTime = 300, sort = false, }) => {
339
331
  onChange === null || onChange === void 0 ? void 0 : onChange((newItem === null || newItem === void 0 ? void 0 : newItem.value) || newItem, newItem);
340
332
  return newItem;
341
333
  });
334
+ return;
342
335
  }
343
336
  // Arrow up
344
337
  if (e.key === "ArrowUp") {
@@ -354,6 +347,7 @@ DropDownProps = {}, debounceTime = 300, sort = false, }) => {
354
347
  onChange === null || onChange === void 0 ? void 0 : onChange((newItem === null || newItem === void 0 ? void 0 : newItem.value) || newItem, newItem);
355
348
  return newItem;
356
349
  });
350
+ return;
357
351
  }
358
352
  // Tab key
359
353
  if (e.key === "Tab") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monolith-forensics/monolith-ui",
3
- "version": "1.1.70",
3
+ "version": "1.1.71",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Matt Danner (Monolith Forensics LLC)",