@widergy/energy-ui 3.110.3 → 3.110.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,10 @@
1
+ ## [3.110.4](https://github.com/widergy/energy-ui/compare/v3.110.3...v3.110.4) (2025-10-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [CX-1253] make UTLabel font sizes customizable ([#702](https://github.com/widergy/energy-ui/issues/702)) ([2d18ee5](https://github.com/widergy/energy-ui/commit/2d18ee5ed81c8d4a4b178bfc97981dd9f498eacc))
7
+
1
8
  ## [3.110.3](https://github.com/widergy/energy-ui/compare/v3.110.2...v3.110.3) (2025-10-15)
2
9
 
3
10
 
@@ -27,9 +27,10 @@ const getFontStyles = _ref => {
27
27
  let {
28
28
  theme,
29
29
  variant,
30
- weight
30
+ weight,
31
+ variantsSizes: propVariantsSizes
31
32
  } = _ref;
32
- const variantsSizes = (0, _merge.default)({}, _constants.VARIANTS_SIZES, theme === null || theme === void 0 || (_theme$UTLabel = theme.UTLabel) === null || _theme$UTLabel === void 0 ? void 0 : _theme$UTLabel.variantsSizes);
33
+ const variantsSizes = propVariantsSizes || (0, _merge.default)({}, _constants.VARIANTS_SIZES, theme === null || theme === void 0 || (_theme$UTLabel = theme.UTLabel) === null || _theme$UTLabel === void 0 ? void 0 : _theme$UTLabel.variantsSizes);
33
34
  const variantsLineHeights = (0, _merge.default)({}, _constants.VARIANTS_LINE_HEIGHT, theme === null || theme === void 0 || (_theme$UTLabel2 = theme.UTLabel) === null || _theme$UTLabel2 === void 0 ? void 0 : _theme$UTLabel2.variantsLineHeights);
34
35
  return {
35
36
  fontFamily: theme === null || theme === void 0 || (_theme$Fonts = theme.Fonts) === null || _theme$Fonts === void 0 ? void 0 : _theme$Fonts.fontFamily,
@@ -47,7 +48,8 @@ const retrieveStyle = _ref2 => {
47
48
  shade,
48
49
  theme,
49
50
  variant,
50
- weight
51
+ weight,
52
+ variantsSizes
51
53
  } = _ref2;
52
54
  return {
53
55
  root: {
@@ -55,7 +57,8 @@ const retrieveStyle = _ref2 => {
55
57
  ...getFontStyles({
56
58
  theme,
57
59
  variant: (_field$configuration$3 = field === null || field === void 0 || (_field$configuration3 = field.configuration) === null || _field$configuration3 === void 0 ? void 0 : _field$configuration3.variant) !== null && _field$configuration$3 !== void 0 ? _field$configuration$3 : variant,
58
- weight: (_field$configuration$4 = field === null || field === void 0 || (_field$configuration4 = field.configuration) === null || _field$configuration4 === void 0 ? void 0 : _field$configuration4.weight) !== null && _field$configuration$4 !== void 0 ? _field$configuration$4 : weight
60
+ weight: (_field$configuration$4 = field === null || field === void 0 || (_field$configuration4 = field.configuration) === null || _field$configuration4 === void 0 ? void 0 : _field$configuration4.weight) !== null && _field$configuration$4 !== void 0 ? _field$configuration$4 : weight,
61
+ variantsSizes
59
62
  }),
60
63
  margin: 0,
61
64
  '& > a': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widergy/energy-ui",
3
- "version": "3.110.3",
3
+ "version": "3.110.4",
4
4
  "description": "Widergy Web Components",
5
5
  "author": "widergy",
6
6
  "license": "MIT",