@widergy/energy-ui 3.5.0 → 3.5.2

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
+ ## [3.5.2](https://github.com/widergy/energy-ui/compare/v3.5.1...v3.5.2) (2024-03-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * effect of using the disable auto order key ([#438](https://github.com/widergy/energy-ui/issues/438)) ([77815f4](https://github.com/widergy/energy-ui/commit/77815f45a00832d34b3e765417ee3a27ddfdb6e1))
7
+
8
+ ## [3.5.1](https://github.com/widergy/energy-ui/compare/v3.5.0...v3.5.1) (2024-03-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * workflow fixes ([#433](https://github.com/widergy/energy-ui/issues/433)) ([2fc55ba](https://github.com/widergy/energy-ui/commit/2fc55baf2fa7771cc1533222ed4a34ef80fc57fe))
14
+
1
15
  # [3.5.0](https://github.com/widergy/energy-ui/compare/v3.4.8...v3.5.0) (2024-03-21)
2
16
 
3
17
 
@@ -101,9 +101,11 @@ const UTHeader = _ref => {
101
101
  className: "".concat(_stylesModule.default.header, " ").concat((banner === null || banner === void 0 ? void 0 : banner.text) && _stylesModule.default.bottomPadding)
102
102
  }, tagline && Tagline, /*#__PURE__*/_react.default.createElement("div", {
103
103
  className: _stylesModule.default.titles
104
- }, /*#__PURE__*/_react.default.createElement("div", null, TitleIcon && /*#__PURE__*/_react.default.createElement(TitleIcon, {
104
+ }, /*#__PURE__*/_react.default.createElement("div", {
105
+ className: _stylesModule.default.titleAndActionsContainer
106
+ }, TitleIcon && /*#__PURE__*/_react.default.createElement(TitleIcon, {
105
107
  className: classes.titleIcon
106
- }), Title), subtitle && Subtitle), requiredFieldInfo && RequiredFieldInfo, helpText && HelpText), !(0, _isEmpty.default)(actions) && /*#__PURE__*/_react.default.createElement("div", {
108
+ }), Title, !(0, _isEmpty.default)(actions) && /*#__PURE__*/_react.default.createElement("div", {
107
109
  className: _stylesModule.default.actionsContainer
108
110
  }, mainAction && /*#__PURE__*/_react.default.createElement(_UTButton.default, {
109
111
  colorTheme: "primary",
@@ -129,7 +131,7 @@ const UTHeader = _ref => {
129
131
  }),
130
132
  menuPlacement: "bottom-end",
131
133
  onClose: closeMenu
132
- })))), (banner === null || banner === void 0 ? void 0 : banner.text) && /*#__PURE__*/_react.default.createElement(_UTBanner.default, {
134
+ })))), subtitle && Subtitle), requiredFieldInfo && RequiredFieldInfo, helpText && HelpText)), (banner === null || banner === void 0 ? void 0 : banner.text) && /*#__PURE__*/_react.default.createElement(_UTBanner.default, {
133
135
  Icon: banner.Icon,
134
136
  iconProps: {
135
137
  height: BANNER_ICON_SIZE,
@@ -1,13 +1,13 @@
1
1
  .actionsContainer {
2
- display: flex;
3
2
  align-items: flex-start;
3
+ display: flex;
4
4
  gap: 16px;
5
5
  }
6
6
 
7
7
  .container {
8
- padding-top: 24px;
9
8
  display: flex;
10
9
  justify-content: space-between;
10
+ padding-top: 24px;
11
11
  }
12
12
 
13
13
  .containerMargin {
@@ -19,6 +19,7 @@
19
19
  flex-direction: column;
20
20
  gap: 16px;
21
21
  padding: 0 0 32px;
22
+ width: 100%;
22
23
  }
23
24
 
24
25
  .bottomPadding {
@@ -38,6 +39,9 @@
38
39
  flex-direction: column;
39
40
  }
40
41
 
41
- .title {
42
- margin-bottom: 12px !important;
42
+ .titleAndActionsContainer {
43
+ align-items: center;
44
+ display: flex;
45
+ justify-content: space-between;
46
+ margin-bottom: 12px;
43
47
  }
@@ -102,7 +102,7 @@ const UTTable = _ref => {
102
102
  (0, _react.useEffect)(() => {
103
103
  if (!selectAllInCurrentPageOnly) setSelectedAll(!(0, _array.isEmpty)(data) && initialSelectedRows.length === data.length);
104
104
  setSelectedRows(selectable ? initialSelectedRows : []);
105
- setRows((0, _utils.orderRows)(data, order, data, columns));
105
+ setRows(disableAutoOrder ? data : (0, _utils.orderRows)(data, order, data, columns));
106
106
  if (externalRowsPerPage) setRowsPerPage(initialValidRowsPerPageOption);
107
107
  const validPage = data.length / rowsPerPage > page;
108
108
  if (!validPage || integrationType === _UTTable.INTEGRATION_TYPES.EXTERNAL) setPage(initialValidPage);
@@ -14,20 +14,22 @@
14
14
  }
15
15
 
16
16
  .content {
17
+ align-self: flex-start;
17
18
  display: flex;
18
19
  flex-direction: column;
19
20
  height: 100%;
20
- max-width: 1200px;
21
21
  padding: 0 32px 16px;
22
22
  width: calc(100% - 64px);
23
23
 
24
24
  @media #{$tablet-mobile} {
25
+ align-self: center;
25
26
  padding: 0 16px 16px;
26
27
  width: calc(100% - 32px);
27
28
  }
28
29
  }
29
30
 
30
- .headerContainer, .childrenContainer {
31
+ .headerContainer,
32
+ .childrenContainer {
31
33
  @media #{$tablet-mobile} {
32
34
  align-self: center;
33
35
  max-width: 500px;
@@ -36,7 +38,7 @@
36
38
  }
37
39
 
38
40
  .childrenContainer {
39
- height: inherit
41
+ height: inherit;
40
42
  }
41
43
 
42
44
  .progress {
@@ -47,6 +49,7 @@
47
49
  bottom: 0;
48
50
  position: sticky;
49
51
  width: 100%;
52
+ z-index: 100;
50
53
  }
51
54
 
52
55
  .mobileCheckboxContainer {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.5.0",
3
+ "version": "3.5.2",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",