@widergy/energy-ui 3.30.0 → 3.30.2

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.30.2](https://github.com/widergy/energy-ui/compare/v3.30.1...v3.30.2) (2024-10-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [UGB-1916] utbadge adds support for 0 ([#513](https://github.com/widergy/energy-ui/issues/513)) ([36dbce1](https://github.com/widergy/energy-ui/commit/36dbce195a7f9c991ed6aa2a547d4ae11583bb35))
7
+
8
+ ## [3.30.1](https://github.com/widergy/energy-ui/compare/v3.30.0...v3.30.1) (2024-10-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * rever inputProps ([#511](https://github.com/widergy/energy-ui/issues/511)) ([959e891](https://github.com/widergy/energy-ui/commit/959e891c600f51f91c76b00823c661752d70bc28))
14
+
1
15
  # [3.30.0](https://github.com/widergy/energy-ui/compare/v3.29.0...v3.30.0) (2024-10-15)
2
16
 
3
17
 
@@ -27,7 +27,6 @@ const UTAutocomplete = _ref => {
27
27
  ArrowIcon,
28
28
  autocompleteProps,
29
29
  classes = {},
30
- dataTestId,
31
30
  disabled,
32
31
  field,
33
32
  fixedSizeListProps,
@@ -104,9 +103,6 @@ const UTAutocomplete = _ref => {
104
103
  colorTheme: "error",
105
104
  variant: "small"
106
105
  }, errorMessage) : undefined,
107
- inputProps: {
108
- 'data-testid': dataTestId
109
- },
110
106
  placeholder: placeholder,
111
107
  variant: variant
112
108
  }, textFieldProps))
@@ -116,7 +112,6 @@ UTAutocomplete.propTypes = {
116
112
  ArrowIcon: _propTypes.elementType,
117
113
  autocompleteProps: _propTypes.object,
118
114
  classes: (0, _propTypes.objectOf)(_propTypes.string),
119
- dataTestId: _propTypes.string,
120
115
  disabled: _propTypes.bool,
121
116
  input: _formTypes.inputPropTypes.isRequired,
122
117
  field: _formTypes.fieldType,
@@ -21,12 +21,20 @@ const UTBadge = _ref => {
21
21
  colorTheme
22
22
  } = _ref;
23
23
  const textColorTheme = [_Palette.COLOR_THEMES.negative, _Palette.COLOR_THEMES.light].includes(colorTheme) ? 'dark' : 'negative';
24
- const Component = children ? _UTLabel.default : 'span';
25
- const componentProps = children ? {
26
- colorTheme: textColorTheme,
27
- variant: 'xsmall',
28
- weight: 'medium'
29
- } : {};
24
+ const {
25
+ Component,
26
+ componentProps
27
+ } = children === undefined || children === null ? {
28
+ Component: _UTLabel.default,
29
+ componentProps: {
30
+ colorTheme: textColorTheme,
31
+ variant: 'xsmall',
32
+ weight: 'medium'
33
+ }
34
+ } : {
35
+ Component: 'span',
36
+ componentProps: {}
37
+ };
30
38
  return /*#__PURE__*/_react.default.createElement(Component, _extends({
31
39
  className: "".concat(classes.root, " ").concat(className)
32
40
  }, componentProps), children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.30.0",
3
+ "version": "3.30.2",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",