@widergy/energy-ui 3.86.0 → 3.86.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 +14 -0
- package/dist/components/UTDocumentWizard/components/PageWizard/utils.js +4 -2
- package/dist/components/UTPopUp/index.js +1 -1
- package/dist/components/UTPopUp/styles.module.scss +11 -1
- package/dist/components/UTRating/versions/V1/index.js +4 -2
- package/dist/components/UTRating/versions/V1/styles.module.scss +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.86.2](https://github.com/widergy/energy-ui/compare/v3.86.1...v3.86.2) (2025-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* dynamic font document wizard ([#634](https://github.com/widergy/energy-ui/issues/634)) ([56be162](https://github.com/widergy/energy-ui/commit/56be1629374b7a7d193d78c7cb3de383ee2f13c0))
|
|
7
|
+
|
|
8
|
+
## [3.86.1](https://github.com/widergy/energy-ui/compare/v3.86.0...v3.86.1) (2025-07-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* surveys visual fixes ([#644](https://github.com/widergy/energy-ui/issues/644)) ([d4b371e](https://github.com/widergy/energy-ui/commit/d4b371e7ee7a77ac3245847438ab4e10e48dd548))
|
|
14
|
+
|
|
1
15
|
# [3.86.0](https://github.com/widergy/energy-ui/compare/v3.85.2...v3.86.0) (2025-07-11)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.handleMouseMove = exports.handleCanvasClick = exports.drawSection = void 0;
|
|
7
7
|
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
8
8
|
var _colorUtils = require("../../../../utils/colorUtils");
|
|
9
|
+
var _classesUtils = require("../../../../utils/classesUtils");
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
const drawRoundedStrokeRect = (ctx, x, y, width, height, radius) => {
|
|
11
12
|
ctx.save();
|
|
@@ -29,11 +30,12 @@ const drawRoundedStrokeRect = (ctx, x, y, width, height, radius) => {
|
|
|
29
30
|
ctx.stroke();
|
|
30
31
|
};
|
|
31
32
|
const resizeText = (ctx, text, maxWidth) => {
|
|
33
|
+
const fontFamily = (0, _classesUtils.resolveCssValue)('var(--fontFamily)') || 'Inter';
|
|
32
34
|
let fontSize = 14;
|
|
33
|
-
ctx.font = "600 ".concat(fontSize, "px
|
|
35
|
+
ctx.font = "600 ".concat(fontSize, "px ").concat(fontFamily);
|
|
34
36
|
while (ctx.measureText(text).width > maxWidth && fontSize > 10) {
|
|
35
37
|
fontSize -= 1;
|
|
36
|
-
ctx.font = "600 ".concat(fontSize, "px
|
|
38
|
+
ctx.font = "600 ".concat(fontSize, "px ").concat(fontFamily);
|
|
37
39
|
}
|
|
38
40
|
return fontSize;
|
|
39
41
|
};
|
|
@@ -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,
|