@truedat/core 4.47.9 → 4.48.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "4.47.9",
3
+ "version": "4.48.0",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -112,5 +112,5 @@
112
112
  "react-dom": ">= 16.8.6 < 17",
113
113
  "semantic-ui-react": ">= 0.88.2 < 2.1"
114
114
  },
115
- "gitHead": "21954b7a0ea8240d2a9e8dc5014372eceed3b047"
115
+ "gitHead": "c4587d045fa6c9028082bdfbcfb35e4383f117ed"
116
116
  }
@@ -4,21 +4,6 @@ import PropTypes from "prop-types";
4
4
  import { Dropdown } from "semantic-ui-react";
5
5
  import { lowerDeburr } from "../services/sort";
6
6
 
7
- const Group = ({ label, icon, options, onClick, value }) => (
8
- <>
9
- <Dropdown.Divider />
10
- <Dropdown.Header icon={icon} content={label} />
11
- {options.map((option, i) => (
12
- <Dropdown.Item
13
- key={i}
14
- className="group"
15
- {...option}
16
- onClick={onClick}
17
- selected={value == option.value}
18
- />
19
- ))}
20
- </>
21
- );
22
7
  // TODO: Refactor
23
8
  export const OptionGroup = ({
24
9
  fluid,
@@ -62,10 +47,7 @@ export const OptionGroup = ({
62
47
 
63
48
  useEffect(() => {
64
49
  // eslint-disable-next-line prettier/prettier
65
- _.flow(
66
- toFlattenedShorthands,
67
- setFlattenedOptions
68
- )(availableOptions);
50
+ _.flow(toFlattenedShorthands, setFlattenedOptions)(availableOptions);
69
51
  }, [availableOptions]);
70
52
 
71
53
  const flatOptionMatches = (o, searchQuery) =>