@widergy/mobile-ui 1.12.2 → 1.12.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,17 @@
1
+ ## [1.12.4](https://github.com/widergy/mobile-ui/compare/v1.12.3...v1.12.4) (2024-07-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * utlabel ([fdd82c5](https://github.com/widergy/mobile-ui/commit/fdd82c5d15a7fcd2bafba72edde8781f2e7e3f35))
7
+
8
+ ## [1.12.3](https://github.com/widergy/mobile-ui/compare/v1.12.2...v1.12.3) (2024-06-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * shadow default props fix ([#305](https://github.com/widergy/mobile-ui/issues/305)) ([c11932f](https://github.com/widergy/mobile-ui/commit/c11932f0832a48e45ae09799e93a5ec6b7919182))
14
+
1
15
  ## [1.12.2](https://github.com/widergy/mobile-ui/compare/v1.12.1...v1.12.2) (2024-06-28)
2
16
 
3
17
 
@@ -4,7 +4,6 @@ import { Animated, StyleSheet } from 'react-native';
4
4
  import { getShadow } from '../../utils/styleUtils';
5
5
  import { useTheme } from '../../theming';
6
6
 
7
- import { DEFAULT_ELEVATION } from './constants';
8
7
  import propTypes from './propTypes';
9
8
  import styles from './styles';
10
9
 
@@ -21,8 +20,4 @@ const Surface = ({ children, elevation = 1, position = 'bottom', style, ...props
21
20
 
22
21
  Surface.propTypes = propTypes;
23
22
 
24
- Surface.defaultProps = {
25
- elevation: DEFAULT_ELEVATION
26
- };
27
-
28
23
  export default Surface;
@@ -17,7 +17,7 @@ const variantsColorTheme = (colorTheme, shade, theme) => {
17
17
 
18
18
  const getFontFamily = (theme, weight) => {
19
19
  if (weight === WEIGHTS[DEFAULT_PROPS.weight] || IS_IOS) return theme.fonts.fontFamily;
20
- return theme.fonts?.customVariants?.[weight];
20
+ return theme.fonts?.customVariants?.[weight]?.fontFamily;
21
21
  };
22
22
 
23
23
  export const retrieveStyle = ({ colorTheme, field, shade, theme, variant, weight }) => ({
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.12.2",
5
+ "version": "1.12.4",
6
6
  "repository": "https://github.com/widergy/mobile-ui.git",
7
7
  "main": "lib/index.js",
8
8
  "files": [
@@ -1 +0,0 @@
1
- export const DEFAULT_ELEVATION = 2;