@widergy/energy-ui 3.141.2 → 3.141.4
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 +14 -0
- package/dist/components/UTSidebar/components/ListOption/index.js +7 -2
- package/dist/components/UTStatus/index.js +1 -1
- package/dist/components/UTTable/components/Cell/index.js +1 -1
- package/dist/components/UTTable/components/HeaderCell/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.141.4](https://github.com/widergy/energy-ui/compare/v3.141.3...v3.141.4) (2026-04-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fix sidebar ([#775](https://github.com/widergy/energy-ui/issues/775)) ([2535e64](https://github.com/widergy/energy-ui/commit/2535e64fa0b75a5bcfe9bbc61896a38f63ad597e))
|
|
7
|
+
|
|
8
|
+
## [3.141.3](https://github.com/widergy/energy-ui/compare/v3.141.2...v3.141.3) (2026-04-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* some component adjusments ([#771](https://github.com/widergy/energy-ui/issues/771)) ([ee49e34](https://github.com/widergy/energy-ui/commit/ee49e34719bfb9bdaa2f7ae12ba337aa46890a64))
|
|
14
|
+
|
|
1
15
|
## [3.141.2](https://github.com/widergy/energy-ui/compare/v3.141.1...v3.141.2) (2026-04-09)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -38,8 +38,13 @@ const ListOption = _ref => {
|
|
|
38
38
|
} else setOpenMenu(!openMenu);
|
|
39
39
|
};
|
|
40
40
|
const optionHeight = (0, _react.useMemo)(() => {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
if (!openMenu || !open || !(optionRef !== null && optionRef !== void 0 && optionRef.current)) return 0;
|
|
42
|
+
const {
|
|
43
|
+
marginTop,
|
|
44
|
+
marginBottom
|
|
45
|
+
} = window.getComputedStyle(optionRef.current);
|
|
46
|
+
const margin = parseFloat(marginTop) + parseFloat(marginBottom);
|
|
47
|
+
return options.length * (optionRef.current.clientHeight + margin);
|
|
43
48
|
}, [openMenu, open]);
|
|
44
49
|
const hasSelectedItem = (0, _react.useMemo)(() => options.some(opt => opt.link === location), [location, options]);
|
|
45
50
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Option.default, {
|
|
@@ -101,7 +101,7 @@ const UTStatus = _ref => {
|
|
|
101
101
|
return Component ? /*#__PURE__*/_react.default.createElement(Component, _extends({}, adornmentProps, {
|
|
102
102
|
key: (adornment === null || adornment === void 0 ? void 0 : adornment.key) || adornment.name
|
|
103
103
|
})) : null;
|
|
104
|
-
}, []);
|
|
104
|
+
}, [adornments, size, variant]);
|
|
105
105
|
const StatusRender = /*#__PURE__*/_react.default.createElement("div", {
|
|
106
106
|
className: "".concat(classes.root, " ").concat(className || '', " ").concat(area ? '' : classes.withoutArea, " ").concat(areaType === _constants.AREA_TYPES.SQUARE ? '' : classes.roundedArea),
|
|
107
107
|
title: title
|
|
@@ -26,7 +26,7 @@ const Cell = _ref => {
|
|
|
26
26
|
rowData,
|
|
27
27
|
style
|
|
28
28
|
} = _ref;
|
|
29
|
-
const cellAlignStyles = [_constants.CELL_TYPES.ACTION_ICONS, _constants.CELL_TYPES.ACTION_BUTTON].includes(column.type) ? _stylesModule.default.centerAlign : _stylesModule.default["".concat(align, "Align")];
|
|
29
|
+
const cellAlignStyles = column.align ? _stylesModule.default["".concat(column.align, "Align")] : [_constants.CELL_TYPES.ACTION_ICONS, _constants.CELL_TYPES.ACTION_BUTTON].includes(column.type) ? _stylesModule.default.centerAlign : _stylesModule.default["".concat(align, "Align")];
|
|
30
30
|
const cellStyle = {
|
|
31
31
|
width: column.withoutPadding ? style.paddingLeft + style.paddingRight + columnSizes[column.key] : columnSizes[column.key],
|
|
32
32
|
...style,
|
|
@@ -30,7 +30,7 @@ const HeaderCell = _ref => {
|
|
|
30
30
|
} = _ref;
|
|
31
31
|
const handleClick = () => handleOrder((0, _utils.getNewOrder)(order, column));
|
|
32
32
|
const OrderICon = order.key !== column.key ? _UnfoldMore.default : _ArrowUpward.default;
|
|
33
|
-
const cellAlignStyles = [_constants.CELL_TYPES.ACTION_ICONS, _constants.CELL_TYPES.ACTION_BUTTON].includes(column.type) ? _stylesModule.default.centerAlign : _stylesModule.default["".concat(align, "Align")];
|
|
33
|
+
const cellAlignStyles = column.align ? _stylesModule.default["".concat(column.align, "Align")] : [_constants.CELL_TYPES.ACTION_ICONS, _constants.CELL_TYPES.ACTION_BUTTON].includes(column.type) ? _stylesModule.default.centerAlign : _stylesModule.default["".concat(align, "Align")];
|
|
34
34
|
const activeCell = order.key === column.key;
|
|
35
35
|
const isSortable = column.sortable && !_constants.CELL_ACTION_TYPES.includes(column.type);
|
|
36
36
|
return /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|