@widergy/energy-ui 2.3.4 → 2.3.6

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
+ ## [2.3.6](https://github.com/widergy/energy-ui/compare/v2.3.5...v2.3.6) (2023-06-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * handleSetShowLabel on first mount ([dc5ffaa](https://github.com/widergy/energy-ui/commit/dc5ffaa346f6ddb7472f8cc2cdceaf36f6498d22))
7
+ * mini fix ([c30a44c](https://github.com/widergy/energy-ui/commit/c30a44cf5b468179f8af991465dde748867b510c))
8
+
9
+ ## [2.3.5](https://github.com/widergy/energy-ui/compare/v2.3.4...v2.3.5) (2023-05-10)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * hides actions if not visible ([#358](https://github.com/widergy/energy-ui/issues/358)) ([8ad4917](https://github.com/widergy/energy-ui/commit/8ad4917b674449e6cca56a26642810266b7e7b83))
15
+
1
16
  ## [2.3.4](https://github.com/widergy/energy-ui/compare/v2.3.3...v2.3.4) (2023-05-08)
2
17
 
3
18
 
@@ -41,6 +41,9 @@ var UTConsumptionBar = function UTConsumptionBar(_ref) {
41
41
  (0, _react.useEffect)(function () {
42
42
  window.addEventListener('resize', handleSetShowLabel);
43
43
  });
44
+ (0, _react.useEffect)(function () {
45
+ handleSetShowLabel();
46
+ }, []);
44
47
  var downIndicators = values.filter(function (value) {
45
48
  return value.position === _constants.DOWN;
46
49
  });
@@ -69,6 +69,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
69
69
  (0, _react.useEffect)(function () {
70
70
  if (previousStepNumber) setVisibleStepNumber(visibleStepNumber + Math.sign(currentStep - previousStepNumber));
71
71
  }, [currentStep]);
72
+ var hideActions = (currentStep === 1 && !backButton.isVisible || backButton.isHidden) && hideStepCounter && nextButton.isHidden;
72
73
  return /*#__PURE__*/_react.default.createElement("div", {
73
74
  className: "".concat(classes.container, " ").concat(_stylesModule.default.container, " ").concat(actionsPosition === _constants.ACTIONS_POSITIONS.BOTTOM && _stylesModule.default.bottomActions)
74
75
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -82,7 +83,7 @@ var UTWorkflowContainer = function UTWorkflowContainer(_ref) {
82
83
  })), /*#__PURE__*/_react.default.createElement("div", {
83
84
  className: classes.workflowContainer
84
85
  }, /*#__PURE__*/_react.default.createElement("div", {
85
- className: "".concat(_stylesModule.default.actionsContainer, " ").concat(actionsPosition === _constants.ACTIONS_POSITIONS.BOTTOM ? classes.bottomActionsContainer : classes.actionsContainer)
86
+ className: "".concat(_stylesModule.default.actionsContainer, " ").concat(actionsPosition === _constants.ACTIONS_POSITIONS.BOTTOM ? classes.bottomActionsContainer : classes.actionsContainer, " ").concat(hideActions ? _stylesModule.default.hidden : '')
86
87
  }, /*#__PURE__*/_react.default.createElement(_ActionButton.default, {
87
88
  button: backButton,
88
89
  isHidden: currentStep === 1 && !backButton.isVisible || backButton.isHidden,
@@ -21,7 +21,7 @@
21
21
  display: flex;
22
22
  text-align: center;
23
23
 
24
- & +.subtitle {
24
+ & + .subtitle {
25
25
  margin-top: 8px;
26
26
  }
27
27
  }
@@ -30,3 +30,6 @@
30
30
  text-align: center;
31
31
  }
32
32
 
33
+ .hidden {
34
+ display: none;
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "2.3.4",
3
+ "version": "2.3.6",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",