@widergy/energy-ui 3.51.3 → 3.52.1
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.52.1](https://github.com/widergy/energy-ui/compare/v3.52.0...v3.52.1) (2025-01-08)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [EVE-4364] status message header ([#550](https://github.com/widergy/energy-ui/issues/550)) ([eff5b7b](https://github.com/widergy/energy-ui/commit/eff5b7b2535e8273a14cfce6b6cfc7e1f096de4d))
|
|
7
|
+
|
|
8
|
+
# [3.52.0](https://github.com/widergy/energy-ui/compare/v3.51.3...v3.52.0) (2025-01-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* min rows in uttextarea ([#559](https://github.com/widergy/energy-ui/issues/559)) ([26a445e](https://github.com/widergy/energy-ui/commit/26a445eb8445e4fb2ccf217442e1a72295a05329))
|
|
14
|
+
|
|
1
15
|
## [3.51.3](https://github.com/widergy/energy-ui/compare/v3.51.2...v3.51.3) (2025-01-06)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -31,6 +31,7 @@ const UTBaseInputField = _ref => {
|
|
|
31
31
|
leftAdornments = [],
|
|
32
32
|
maxLength,
|
|
33
33
|
maxRows = 1,
|
|
34
|
+
minRows,
|
|
34
35
|
muiProps,
|
|
35
36
|
onBlur,
|
|
36
37
|
onChange = () => {},
|
|
@@ -99,7 +100,7 @@ const UTBaseInputField = _ref => {
|
|
|
99
100
|
inputRef: inputRef,
|
|
100
101
|
margin: "none",
|
|
101
102
|
maxRows: maxRows,
|
|
102
|
-
minRows: maxRows,
|
|
103
|
+
minRows: minRows || maxRows,
|
|
103
104
|
multiline: multiline,
|
|
104
105
|
onBlur: handleBlur,
|
|
105
106
|
onChange: handleChange,
|
|
@@ -157,6 +158,7 @@ const propTypes = exports.propTypes = {
|
|
|
157
158
|
})),
|
|
158
159
|
maxLength: _propTypes.number,
|
|
159
160
|
maxRows: _propTypes.number,
|
|
161
|
+
minRows: _propTypes.number,
|
|
160
162
|
muiProps: (0, _propTypes.shape)({
|
|
161
163
|
inputProps: _propTypes.object,
|
|
162
164
|
InputProps: _propTypes.object
|
|
@@ -15,7 +15,7 @@ The purpose of this component, as its name indicates, is to communicate a messag
|
|
|
15
15
|
| helpTextProps | object | | Props to be applied to the help text UTLabel. |
|
|
16
16
|
| icon | string | | Icon to be displayed in the header. |
|
|
17
17
|
| iconProps | object | | Props to be applied to the UTIcon |
|
|
18
|
-
|
|
|
18
|
+
| HeaderComponent | element | | Component to be displayed in the header, replacing the icon. |
|
|
19
19
|
| loading | bool | false | Indicates whether the component is in a loading state. Replaces the header. |
|
|
20
20
|
| primaryAction | func | | Callback function for the primary action. |
|
|
21
21
|
| primaryActionProps | object | | Props to be applied to the primary action UTButton. |
|
|
@@ -23,11 +23,11 @@ const UTStatusMessage = _ref => {
|
|
|
23
23
|
colorTheme = _constants.COLOR_THEMES.DEFAULT,
|
|
24
24
|
description,
|
|
25
25
|
descriptionProps,
|
|
26
|
+
HeaderComponent,
|
|
26
27
|
helpText,
|
|
27
28
|
helpTextProps,
|
|
28
29
|
icon = 'IconInfoCircle',
|
|
29
30
|
iconProps = {},
|
|
30
|
-
image,
|
|
31
31
|
loading,
|
|
32
32
|
primaryAction,
|
|
33
33
|
primaryActionProps,
|
|
@@ -46,11 +46,7 @@ const UTStatusMessage = _ref => {
|
|
|
46
46
|
text: null
|
|
47
47
|
}) : showHeader ? /*#__PURE__*/_react.default.createElement("div", {
|
|
48
48
|
className: classes.banner
|
|
49
|
-
},
|
|
50
|
-
src: image,
|
|
51
|
-
className: "".concat(_stylesModule.default.image, " ").concat(classes.image),
|
|
52
|
-
alt: ""
|
|
53
|
-
}) : /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
}, HeaderComponent ? /*#__PURE__*/_react.default.createElement(HeaderComponent, null) : /*#__PURE__*/_react.default.createElement("div", {
|
|
54
50
|
className: classes.iconContainer
|
|
55
51
|
}, /*#__PURE__*/_react.default.createElement(_UTIcon.default, _extends({
|
|
56
52
|
name: icon,
|
|
@@ -86,11 +82,11 @@ UTStatusMessage.propTypes = {
|
|
|
86
82
|
colorTheme: _propTypes.string,
|
|
87
83
|
description: _propTypes.string,
|
|
88
84
|
descriptionProps: _propTypes.object,
|
|
85
|
+
HeaderComponent: _propTypes.element,
|
|
89
86
|
helpText: _propTypes.string,
|
|
90
87
|
helpTextProps: _propTypes.object,
|
|
91
88
|
icon: _propTypes.string,
|
|
92
89
|
iconProps: _propTypes.object,
|
|
93
|
-
image: _propTypes.string,
|
|
94
90
|
loading: _propTypes.bool,
|
|
95
91
|
primaryAction: _propTypes.func,
|
|
96
92
|
primaryActionProps: _propTypes.object,
|
|
@@ -36,6 +36,7 @@ const UTTextInput = _ref => {
|
|
|
36
36
|
LeftIcon,
|
|
37
37
|
maxLength,
|
|
38
38
|
maxRows = 1,
|
|
39
|
+
minRows,
|
|
39
40
|
onBlur,
|
|
40
41
|
onChange = () => {},
|
|
41
42
|
onFocus,
|
|
@@ -126,6 +127,7 @@ const UTTextInput = _ref => {
|
|
|
126
127
|
leftAdornments: leftAdornments,
|
|
127
128
|
maxLength: maxLength,
|
|
128
129
|
maxRows: maxRows,
|
|
130
|
+
minRows: minRows,
|
|
129
131
|
onBlur: onBlur,
|
|
130
132
|
onChange: onChange,
|
|
131
133
|
onFocus: onFocus,
|
|
@@ -163,6 +165,7 @@ const propTypes = exports.propTypes = {
|
|
|
163
165
|
labelDataTestId: _propTypes.string,
|
|
164
166
|
LeftIcon: _propTypes.elementType,
|
|
165
167
|
maxLength: _propTypes.number,
|
|
168
|
+
minRows: _propTypes.number,
|
|
166
169
|
maxRows: _propTypes.number,
|
|
167
170
|
onBlur: _propTypes.func,
|
|
168
171
|
onChange: _propTypes.func,
|