@appquality/unguess-design-system 2.12.53 → 2.12.54

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # v2.12.54 (Fri Jan 13 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Fixes [#174](https://github.com/AppQuality/unguess-design-system/pull/174) ([@d-beezee](https://github.com/d-beezee) [@iacopolea](https://github.com/iacopolea))
6
+ - fix(counterselect): Reload selected options if option changes [#173](https://github.com/AppQuality/unguess-design-system/pull/173) ([@d-beezee](https://github.com/d-beezee))
7
+ - fix: Remove override hover background from custom menu item [#171](https://github.com/AppQuality/unguess-design-system/pull/171) ([@d-beezee](https://github.com/d-beezee))
8
+
9
+ #### Authors: 2
10
+
11
+ - [@d-beezee](https://github.com/d-beezee)
12
+ - Iacopo Leardini ([@iacopolea](https://github.com/iacopolea))
13
+
14
+ ---
15
+
1
16
  # v2.12.53 (Thu Jan 12 2023)
2
17
 
3
18
  #### 🐛 Bug Fix
package/build/index.js CHANGED
@@ -1745,10 +1745,6 @@ const UgItem = styled__default["default"](reactDropdowns.Item) `
1745
1745
  opacity: 0.5;
1746
1746
  }
1747
1747
 
1748
- &:hover {
1749
- background-color: ${({ theme }) => theme.palette.blue[100]};
1750
- }
1751
-
1752
1748
  &[disabled]:hover {
1753
1749
  background-color: transparent;
1754
1750
  }
@@ -1831,6 +1827,9 @@ const CounterMultiselect = ({ options, label, i18n, onChange, }) => {
1831
1827
  .toLowerCase()
1832
1828
  .indexOf(inputValue.trim().toLowerCase()) !== -1));
1833
1829
  }, [inputValue, options]);
1830
+ React.useEffect(() => {
1831
+ setSelectedItems(options.filter((o) => o.selected));
1832
+ }, [options]);
1834
1833
  const hasSelectedItems = selectedItems.length > 0;
1835
1834
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs(reactDropdowns.Dropdown, Object.assign({ inputValue: inputValue, selectedItems: selectedItems, onSelect: (items) => {
1836
1835
  if (items) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.12.53",
3
+ "version": "2.12.54",
4
4
  "dependencies": {
5
5
  "@nivo/bar": "^0.80.0",
6
6
  "@nivo/bullet": "^0.80.0",