@widergy/energy-ui 3.49.2 → 3.49.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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.49.4](https://github.com/widergy/energy-ui/compare/v3.49.3...v3.49.4) (2024-12-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* fixes markdown on input labels ([#548](https://github.com/widergy/energy-ui/issues/548)) ([1a68a3d](https://github.com/widergy/energy-ui/commit/1a68a3dd716e612c8afd27fb12d67702e655d4b0))
|
|
7
|
+
|
|
8
|
+
## [3.49.3](https://github.com/widergy/energy-ui/compare/v3.49.2...v3.49.3) (2024-12-13)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* [OUG-7622] cast search term to string ([#547](https://github.com/widergy/energy-ui/issues/547)) ([6c4bf94](https://github.com/widergy/energy-ui/commit/6c4bf94617f14c43fd2a5615e86b20ca2ece724e))
|
|
14
|
+
|
|
1
15
|
## [3.49.2](https://github.com/widergy/energy-ui/compare/v3.49.1...v3.49.2) (2024-12-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -17,15 +17,14 @@ const UTFieldLabel = _ref => {
|
|
|
17
17
|
required,
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
20
|
-
weight
|
|
21
|
-
withMarkdown
|
|
20
|
+
weight
|
|
22
21
|
} = _ref;
|
|
23
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
24
23
|
className: "".concat(_stylesModule.default.label, " ").concat(className)
|
|
25
24
|
}, /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
26
25
|
colorTheme: colorTheme,
|
|
27
26
|
variant: variant,
|
|
28
|
-
withMarkdown:
|
|
27
|
+
withMarkdown: true
|
|
29
28
|
}, children), required && /*#__PURE__*/_react.default.createElement(_UTLabel.default, {
|
|
30
29
|
colorTheme: "error",
|
|
31
30
|
shade: "04",
|
|
@@ -38,7 +37,6 @@ UTFieldLabel.propTypes = {
|
|
|
38
37
|
colorTheme: _propTypes.string,
|
|
39
38
|
required: _propTypes.bool,
|
|
40
39
|
variant: _propTypes.string,
|
|
41
|
-
weight: _propTypes.string
|
|
42
|
-
withMarkdown: _propTypes.bool
|
|
40
|
+
weight: _propTypes.string
|
|
43
41
|
};
|
|
44
42
|
var _default = exports.default = UTFieldLabel;
|
|
@@ -20,7 +20,7 @@ const getDisplayValue = (inputValue, options, multiple) => {
|
|
|
20
20
|
if (inputValue === null || inputValue === undefined || inputValue === '') return '';
|
|
21
21
|
const findLabel = optionValue => {
|
|
22
22
|
var _options$find;
|
|
23
|
-
return ((_options$find = options.find(o => o.value === optionValue)) === null || _options$find === void 0 ? void 0 : _options$find.name) || '';
|
|
23
|
+
return "".concat((_options$find = options.find(o => o.value === optionValue)) === null || _options$find === void 0 ? void 0 : _options$find.name) || '';
|
|
24
24
|
};
|
|
25
25
|
const displayValue = multiple ? inputValue.map(findLabel).join(', ') : findLabel(inputValue);
|
|
26
26
|
return displayValue;
|