@brightlayer-ui/react-native-themes 7.0.1-alpha.4 → 7.0.1-alpha.5

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/README.md CHANGED
@@ -76,16 +76,12 @@ const theme = useExtendedTheme();
76
76
  </Button>
77
77
  ```
78
78
 
79
- ## Changing fontWeight of a Text Element
79
+ ## Usage of useFontWeight hook in your project
80
80
 
81
- When you need to change the `fontWeight` of a `Text` element in your application, it's important to note that it should be done through the `fontFamily` property rather than the `fontWeight` property.
82
-
83
- The `fontFamily` property allows you to specify the font and its weight. By using the appropriate font family that supports the desired weight, you can achieve the desired fontWeight effect.
84
-
85
- For example, if you want to set the fontWeight to "bold", you can use a font family that includes a bold variant, such as:
81
+ When the fontFamily of a Text element in your application needs to be modified, you can use the useFontWeight hook.For instance, to set the fontWeight to "bold", you can utilize the useFontWeight() hook as demonstrated below:
86
82
 
87
83
  ```tsx
88
- <Text variant={'headlineLarge'} style={{ fontFamily: 'OpenSans-Bold' }}>
84
+ <Text variant={'headlineLarge'} style={{ ...fontStyleBold }}>
89
85
  headlineLarge
90
86
  </Text>
91
87
  ```
package/dist/shared.d.ts CHANGED
@@ -54,7 +54,7 @@ export declare const fontConfig: {
54
54
  };
55
55
  titleLarge: {
56
56
  fontFamily: string;
57
- fontWeight: "600";
57
+ fontWeight: "400";
58
58
  fontSize: number;
59
59
  lineHeight: number;
60
60
  };
package/dist/shared.js CHANGED
@@ -56,7 +56,7 @@ exports.fontConfig = {
56
56
  },
57
57
  titleLarge: {
58
58
  fontFamily: 'OpenSans-Regular',
59
- fontWeight: '600',
59
+ fontWeight: '400',
60
60
  fontSize: 22,
61
61
  lineHeight: 28,
62
62
  },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@brightlayer-ui/react-native-themes",
3
3
  "author": "Brightlayer UI <brightlayer-ui@eaton.com>",
4
4
  "license": "BSD-3-Clause",
5
- "version": "7.0.1-alpha.4",
5
+ "version": "7.0.1-alpha.5",
6
6
  "description": "React Native themes for Brightlayer UI applications",
7
7
  "main": "./dist/index.js",
8
8
  "scripts": {