@widergy/energy-ui 2.5.1 → 2.5.3

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,17 @@
1
+ ## [2.5.3](https://github.com/widergy/energy-ui/compare/v2.5.2...v2.5.3) (2023-08-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add a function to remove size event listener ([6e36b9f](https://github.com/widergy/energy-ui/commit/6e36b9f81c9a11c20bed41c72152de34502bbf90))
7
+
8
+ ## [2.5.2](https://github.com/widergy/energy-ui/compare/v2.5.1...v2.5.2) (2023-08-30)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * fixes on UTPagination ([#369](https://github.com/widergy/energy-ui/issues/369)) ([944d636](https://github.com/widergy/energy-ui/commit/944d63693a92a8ccb6c05e7da079c20b751f6bd6))
14
+
1
15
  ## [2.5.1](https://github.com/widergy/energy-ui/compare/v2.5.0...v2.5.1) (2023-08-30)
2
16
 
3
17
 
@@ -40,9 +40,10 @@ var UTConsumptionBar = function UTConsumptionBar(_ref) {
40
40
  };
41
41
  (0, _react.useEffect)(function () {
42
42
  window.addEventListener('resize', handleSetShowLabel);
43
- });
44
- (0, _react.useEffect)(function () {
45
43
  handleSetShowLabel();
44
+ return function () {
45
+ return window.removeEventListener('resize', handleSetShowLabel);
46
+ };
46
47
  }, []);
47
48
  var downIndicators = values.filter(function (value) {
48
49
  return value.position === _constants.DOWN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",