@widergy/energy-ui 3.51.2 → 3.52.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 +14 -0
- package/dist/components/UTBarChart/components/Legend/index.js +3 -1
- package/dist/components/UTBarChart/components/Legend/styles.module.scss +6 -2
- package/dist/components/UTBaseInputField/index.js +3 -1
- package/dist/components/UTTextInput/versions/V1/index.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [3.52.0](https://github.com/widergy/energy-ui/compare/v3.51.3...v3.52.0) (2025-01-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* min rows in uttextarea ([#559](https://github.com/widergy/energy-ui/issues/559)) ([26a445e](https://github.com/widergy/energy-ui/commit/26a445eb8445e4fb2ccf217442e1a72295a05329))
|
|
7
|
+
|
|
8
|
+
## [3.51.3](https://github.com/widergy/energy-ui/compare/v3.51.2...v3.51.3) (2025-01-06)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* added styling to scrollbar component ([#555](https://github.com/widergy/energy-ui/issues/555)) ([3313fa3](https://github.com/widergy/energy-ui/commit/3313fa3e32b9e21ab5f1bf67143d8e1470acec7d))
|
|
14
|
+
|
|
1
15
|
## [3.51.2](https://github.com/widergy/energy-ui/compare/v3.51.1...v3.51.2) (2025-01-04)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -107,7 +107,9 @@ const Legend = _ref => {
|
|
|
107
107
|
onRequestClose: () => setShowLegend(false),
|
|
108
108
|
title: referencesModalTitle,
|
|
109
109
|
withCloseButton: true
|
|
110
|
-
} : {
|
|
110
|
+
} : {
|
|
111
|
+
className: _stylesModule.default.scrollbar
|
|
112
|
+
};
|
|
111
113
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
112
114
|
style: style
|
|
113
115
|
}, title && /*#__PURE__*/_react.default.createElement(_.UTLabel, {
|
|
@@ -3,12 +3,16 @@
|
|
|
3
3
|
width: fit-content;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.scrollbar {
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
6
10
|
.itemblock {
|
|
7
11
|
align-items: center;
|
|
8
12
|
display: flex;
|
|
9
13
|
|
|
10
14
|
& + div {
|
|
11
|
-
margin-left:
|
|
15
|
+
margin-left: 16px;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
|
|
@@ -30,7 +34,7 @@
|
|
|
30
34
|
display: flex;
|
|
31
35
|
|
|
32
36
|
& + div {
|
|
33
|
-
margin-
|
|
37
|
+
margin-left: 15px;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -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
|
|
@@ -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,
|