@widergy/energy-ui 3.86.0 → 3.86.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,10 @@
|
|
|
1
|
+
## [3.86.1](https://github.com/widergy/energy-ui/compare/v3.86.0...v3.86.1) (2025-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* surveys visual fixes ([#644](https://github.com/widergy/energy-ui/issues/644)) ([d4b371e](https://github.com/widergy/energy-ui/commit/d4b371e7ee7a77ac3245847438ab4e10e48dd548))
|
|
7
|
+
|
|
1
8
|
# [3.86.0](https://github.com/widergy/energy-ui/compare/v3.85.2...v3.86.0) (2025-07-11)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -34,7 +34,7 @@ const UTPopUp = _ref => {
|
|
|
34
34
|
const [checked, setChecked] = (0, _react.useState)(false);
|
|
35
35
|
const hasProgress = typeof progress === 'number';
|
|
36
36
|
return enabled ? /*#__PURE__*/_react.default.createElement("div", {
|
|
37
|
-
className: theme.container,
|
|
37
|
+
className: "".concat(theme.container, " ").concat(_stylesModule.default.container),
|
|
38
38
|
"data-testid": dataTestId
|
|
39
39
|
}, (onClose || hasProgress) && /*#__PURE__*/_react.default.createElement("div", {
|
|
40
40
|
className: _stylesModule.default.header
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../../scss/variables/mediaQueries.module.scss' as *;
|
|
2
|
+
|
|
1
3
|
.header {
|
|
2
4
|
align-content: center;
|
|
3
5
|
align-items: center;
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
display: flex;
|
|
13
15
|
grid-gap: 8px;
|
|
14
16
|
justify-content: flex-end;
|
|
15
|
-
padding: 0 16px 16px;
|
|
17
|
+
padding: 0 16px 16px;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
.checkBox {
|
|
@@ -26,3 +28,11 @@
|
|
|
26
28
|
.body {
|
|
27
29
|
padding: 0 0 16px;
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
.container {
|
|
33
|
+
@media #{$mobile} {
|
|
34
|
+
left: 16px;
|
|
35
|
+
right: 16px;
|
|
36
|
+
width: auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -23,6 +23,7 @@ const UTRating = _ref => {
|
|
|
23
23
|
dataTestId,
|
|
24
24
|
disabled,
|
|
25
25
|
error,
|
|
26
|
+
forceMultiRow,
|
|
26
27
|
helpTextEnd,
|
|
27
28
|
helpTextStart,
|
|
28
29
|
onChange,
|
|
@@ -47,7 +48,7 @@ const UTRating = _ref => {
|
|
|
47
48
|
const wrapperStyle = {
|
|
48
49
|
boxSizing: 'border-box',
|
|
49
50
|
display: 'flex',
|
|
50
|
-
flex: isMobileOrTablet && options.length > 5 ? "0 0 calc(".concat(100 / Math.ceil(options.length / 2), "% - 4px)") : '1 '
|
|
51
|
+
flex: (isMobileOrTablet || forceMultiRow) && options.length > 5 ? "0 0 calc(".concat(100 / Math.ceil(options.length / 2), "% - 4px)") : '1 '
|
|
51
52
|
};
|
|
52
53
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
54
|
className: "".concat(_stylesModule.default.container, " ").concat(classNames.container),
|
|
@@ -55,7 +56,7 @@ const UTRating = _ref => {
|
|
|
55
56
|
}, title && /*#__PURE__*/_react.default.createElement(_UTFieldLabel.default, {
|
|
56
57
|
required: required
|
|
57
58
|
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
-
className: "".concat(_stylesModule.default.optionsContainer, " ").concat(classNames.optionsContainer, " ").concat(isMobileOrTablet ? _stylesModule.default.responsive : '')
|
|
59
|
+
className: "".concat(_stylesModule.default.optionsContainer, " ").concat(classNames.optionsContainer, " ").concat(isMobileOrTablet ? _stylesModule.default.responsive : '', " ").concat(forceMultiRow ? _stylesModule.default.forceMultiRow : '')
|
|
59
60
|
}, options.map((option, index) => /*#__PURE__*/_react.default.createElement(_Option.default, _extends({}, option, {
|
|
60
61
|
disabled: disabled,
|
|
61
62
|
error: error,
|
|
@@ -81,6 +82,7 @@ UTRating.propTypes = {
|
|
|
81
82
|
dataTestId: _propTypes.string,
|
|
82
83
|
disabled: _propTypes.bool,
|
|
83
84
|
error: _propTypes.string,
|
|
85
|
+
forceMultiRow: _propTypes.bool,
|
|
84
86
|
helpTextEnd: _propTypes.string,
|
|
85
87
|
helpTextStart: _propTypes.string,
|
|
86
88
|
onChange: _propTypes.func,
|