@widergy/mobile-ui 1.18.0 → 1.18.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
+ ## [1.18.1](https://github.com/widergy/mobile-ui/compare/v1.18.0...v1.18.1) (2024-08-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * changes sizes for some variants ([#335](https://github.com/widergy/mobile-ui/issues/335)) ([b48860b](https://github.com/widergy/mobile-ui/commit/b48860b95f92b2aabd343b55f7dce77371084f36))
7
+
1
8
  # [1.18.0](https://github.com/widergy/mobile-ui/compare/v1.17.1...v1.18.0) (2024-08-12)
2
9
 
3
10
 
@@ -14,11 +14,17 @@ export const VARIANTS_SIZES = {
14
14
  subtitle2: 16,
15
15
  body: 16,
16
16
  small: 14,
17
- xsmall: 13,
17
+ xsmall: 11,
18
18
  th: 16,
19
19
  td: 16
20
20
  };
21
21
 
22
+ export const LINE_HEIGHTS = {
23
+ body: 22,
24
+ small: 20,
25
+ xsmall: 16
26
+ };
27
+
22
28
  export const WEIGHTS = {
23
29
  thin: 100,
24
30
  extralight: 200,
@@ -1,6 +1,6 @@
1
1
  import { IS_IOS } from '../../utils/platformUtils/constants';
2
2
 
3
- import { COLOR_THEMES, DEFAULT_PROPS, SHADES, VARIANTS_SIZES, WEIGHTS } from './constants';
3
+ import { COLOR_THEMES, DEFAULT_PROPS, LINE_HEIGHTS, SHADES, VARIANTS_SIZES, WEIGHTS } from './constants';
4
4
 
5
5
  const getDefaultColorShade = colorTheme =>
6
6
  colorTheme === COLOR_THEMES.GRAY
@@ -46,5 +46,6 @@ export const retrieveStyle = ({ colorTheme, field, shade, theme, variant, weight
46
46
  includeFontPadding: false,
47
47
  margin: 0,
48
48
  paddingVertical: 0,
49
- textAlignVertical: 'center'
49
+ textAlignVertical: 'center',
50
+ ...(LINE_HEIGHTS?.[variant] ? { lineHeight: LINE_HEIGHTS[variant] } : {})
50
51
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@widergy/mobile-ui",
3
3
  "description": "Widergy Mobile Components",
4
4
  "author": "widergy",
5
- "version": "1.18.0",
5
+ "version": "1.18.1",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [