@widergy/energy-ui 3.16.2 → 3.16.3
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,11 @@
|
|
|
1
|
+
## [3.16.3](https://github.com/widergy/energy-ui/compare/v3.16.2...v3.16.3) (2024-08-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* minor fix ([fb0f02b](https://github.com/widergy/energy-ui/commit/fb0f02b855222908be47f67e5ecfe7365fe82ba7))
|
|
7
|
+
* set id ([49f3a97](https://github.com/widergy/energy-ui/commit/49f3a978634188352afbadc68dc9be7f5415bf4a))
|
|
8
|
+
|
|
1
9
|
## [3.16.2](https://github.com/widergy/energy-ui/compare/v3.16.1...v3.16.2) (2024-08-14)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -110,8 +110,9 @@ class UTTextInput extends _react.PureComponent {
|
|
|
110
110
|
}) : adornment;
|
|
111
111
|
const value = inputObjectKey ? input.value[inputObjectKey] : input.value;
|
|
112
112
|
const errorMessage = (0, _form.shouldShowErrors)(meta) && meta.error || captionLabel || '';
|
|
113
|
+
const fieldId = field.id ? `${field?.id}` : undefined;
|
|
113
114
|
const TextInput = /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({
|
|
114
|
-
id:
|
|
115
|
+
id: fieldId,
|
|
115
116
|
placeholder: placeholder,
|
|
116
117
|
variant: variant,
|
|
117
118
|
label: Icon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -139,6 +140,7 @@ class UTTextInput extends _react.PureComponent {
|
|
|
139
140
|
margin: "none",
|
|
140
141
|
autoComplete: "off",
|
|
141
142
|
InputProps: {
|
|
143
|
+
id: fieldId,
|
|
142
144
|
endAdornment: endAction && /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
|
|
143
145
|
position: "end",
|
|
144
146
|
className: `${adornmentInside && _stylesModule.default.adornmentInside}`
|
|
@@ -155,7 +157,8 @@ class UTTextInput extends _react.PureComponent {
|
|
|
155
157
|
InputLabelProps: {
|
|
156
158
|
classes: {
|
|
157
159
|
root: labelRootClassName
|
|
158
|
-
}
|
|
160
|
+
},
|
|
161
|
+
htmlFor: fieldId
|
|
159
162
|
}
|
|
160
163
|
}, textFieldPropsToForward));
|
|
161
164
|
return /*#__PURE__*/_react.default.createElement("div", {
|