@widergy/energy-ui 3.153.0 → 3.154.0
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,10 @@
|
|
|
1
|
+
# [3.154.0](https://github.com/widergy/energy-ui/compare/v3.153.0...v3.154.0) (2026-05-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add test id support ([#794](https://github.com/widergy/energy-ui/issues/794)) ([9c70e57](https://github.com/widergy/energy-ui/commit/9c70e5700274b390077c416eeeb65123cb102980))
|
|
7
|
+
|
|
1
8
|
# [3.153.0](https://github.com/widergy/energy-ui/compare/v3.152.0...v3.153.0) (2026-05-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -23,6 +23,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
23
23
|
const Option = _ref => {
|
|
24
24
|
let {
|
|
25
25
|
classes,
|
|
26
|
+
dataTestId,
|
|
26
27
|
handleClose,
|
|
27
28
|
handleRedirect,
|
|
28
29
|
IconActive,
|
|
@@ -54,6 +55,7 @@ const Option = _ref => {
|
|
|
54
55
|
className: classes.tooltip
|
|
55
56
|
};
|
|
56
57
|
return /*#__PURE__*/_react.default.createElement(Container, containerProps, /*#__PURE__*/_react.default.createElement(_ListItem.default, {
|
|
58
|
+
"data-testid": dataTestId,
|
|
57
59
|
className: "\n ".concat(_stylesModule.default.option, "\n ").concat(classes.option, "\n ").concat(isSelected && "".concat(_stylesModule.default.optionSelected, " ").concat(classes.optionSelected), "\n ").concat(isSelected && open && classes.optionSelectedOpened, "\n ").concat(isSelected && !isSelectedGroup && !withTooltip && _stylesModule.default.removeEvents, "\n "),
|
|
58
60
|
onClick: onClick || handleRedirection,
|
|
59
61
|
ref: optionRef
|
|
@@ -83,6 +85,7 @@ const Option = _ref => {
|
|
|
83
85
|
};
|
|
84
86
|
Option.propTypes = {
|
|
85
87
|
classes: _types.classType,
|
|
88
|
+
dataTestId: _propTypes.string,
|
|
86
89
|
handleClose: _propTypes.func,
|
|
87
90
|
handleRedirect: _propTypes.func,
|
|
88
91
|
IconActive: _types.iconType,
|
|
@@ -18,6 +18,7 @@ const UserMenu = _ref => {
|
|
|
18
18
|
Arrow,
|
|
19
19
|
avatar,
|
|
20
20
|
classes,
|
|
21
|
+
dataTestId,
|
|
21
22
|
handleClick,
|
|
22
23
|
justAvatar,
|
|
23
24
|
MenuComponent,
|
|
@@ -26,6 +27,7 @@ const UserMenu = _ref => {
|
|
|
26
27
|
title
|
|
27
28
|
} = _ref;
|
|
28
29
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_UTTouchableWithoutFeedback.default, {
|
|
30
|
+
dataTestId: dataTestId,
|
|
29
31
|
onClick: handleClick,
|
|
30
32
|
className: "".concat(justAvatar ? _stylesModule.default.justAvatarUserMenu : _stylesModule.default.userMenu, " ").concat(classes.userMenu, " ").concat(!handleClick && _stylesModule.default.disableMenu)
|
|
31
33
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -43,6 +45,7 @@ UserMenu.propTypes = {
|
|
|
43
45
|
Arrow: _types.iconType,
|
|
44
46
|
avatar: _types.avatarType,
|
|
45
47
|
classes: _types.classType,
|
|
48
|
+
dataTestId: _propTypes.string,
|
|
46
49
|
handleClick: _propTypes.func,
|
|
47
50
|
justAvatar: _propTypes.bool,
|
|
48
51
|
MenuComponent: _propTypes.node,
|
|
@@ -42,6 +42,7 @@ const UTTopbar = _ref => {
|
|
|
42
42
|
separator = '/',
|
|
43
43
|
title,
|
|
44
44
|
titleProps,
|
|
45
|
+
userMenuDataTestId,
|
|
45
46
|
userSubtitle,
|
|
46
47
|
userTitle,
|
|
47
48
|
UTMenu
|
|
@@ -79,6 +80,7 @@ const UTTopbar = _ref => {
|
|
|
79
80
|
Arrow: Arrow,
|
|
80
81
|
avatar: avatar,
|
|
81
82
|
classes: classes,
|
|
83
|
+
dataTestId: userMenuDataTestId,
|
|
82
84
|
handleClick: handleClick,
|
|
83
85
|
justAvatar: justAvatar,
|
|
84
86
|
MenuComponent: MenuComponent,
|
|
@@ -109,6 +111,7 @@ UTTopbar.propTypes = {
|
|
|
109
111
|
route: _propTypes.string
|
|
110
112
|
}))]),
|
|
111
113
|
titleProps: _propTypes.object,
|
|
114
|
+
userMenuDataTestId: _propTypes.string,
|
|
112
115
|
userSubtitle: _propTypes.node,
|
|
113
116
|
userTitle: _propTypes.string,
|
|
114
117
|
UTMenu: _propTypes.node,
|