@xaui/native 0.1.4 → 0.1.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.
@@ -146,6 +146,7 @@ var Typography = ({
146
146
  overflow = "clip",
147
147
  color,
148
148
  letterSpacing,
149
+ lineHeight,
149
150
  fontWeight,
150
151
  fontStyle,
151
152
  textDecorationLine,
@@ -159,6 +160,7 @@ var Typography = ({
159
160
  const textStyleOverrides = {
160
161
  color: _nullishCoalesce(_nullishCoalesce(color, () => ( inheritedStyle.color)), () => ( themeColorValue)),
161
162
  letterSpacing,
163
+ lineHeight,
162
164
  fontWeight: _nullishCoalesce(fontWeight, () => ( inheritedStyle.fontWeight)),
163
165
  fontStyle: _nullishCoalesce(fontStyle, () => ( inheritedStyle.fontStyle)),
164
166
  textDecorationLine,
@@ -44,6 +44,10 @@ type TypographyProps = {
44
44
  * The spacing between characters.
45
45
  */
46
46
  letterSpacing?: number;
47
+ /**
48
+ * Line height for the text.
49
+ */
50
+ lineHeight?: TextStyle['lineHeight'];
47
51
  /**
48
52
  * The text weight.
49
53
  */
@@ -44,6 +44,10 @@ type TypographyProps = {
44
44
  * The spacing between characters.
45
45
  */
46
46
  letterSpacing?: number;
47
+ /**
48
+ * Line height for the text.
49
+ */
50
+ lineHeight?: TextStyle['lineHeight'];
47
51
  /**
48
52
  * The text weight.
49
53
  */
@@ -146,6 +146,7 @@ var Typography = ({
146
146
  overflow = "clip",
147
147
  color,
148
148
  letterSpacing,
149
+ lineHeight,
149
150
  fontWeight,
150
151
  fontStyle,
151
152
  textDecorationLine,
@@ -159,6 +160,7 @@ var Typography = ({
159
160
  const textStyleOverrides = {
160
161
  color: color ?? inheritedStyle.color ?? themeColorValue,
161
162
  letterSpacing,
163
+ lineHeight,
162
164
  fontWeight: fontWeight ?? inheritedStyle.fontWeight,
163
165
  fontStyle: fontStyle ?? inheritedStyle.fontStyle,
164
166
  textDecorationLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Flutter-inspired React Native UI components with native animations powered by React Native Reanimated",
5
5
  "keywords": [
6
6
  "react-native",