@xaui/native 0.1.3 → 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,
@@ -199,8 +199,10 @@ var SizedBox = ({
199
199
  children,
200
200
  width,
201
201
  height,
202
+ fullWidth,
202
203
  style
203
204
  }) => {
205
+ const fullWidthStyle = fullWidth ? { width: "100%" } : void 0;
204
206
  return /* @__PURE__ */ _react2.default.createElement(
205
207
  _reactnative.View,
206
208
  {
@@ -209,6 +211,7 @@ var SizedBox = ({
209
211
  width,
210
212
  height
211
213
  },
214
+ fullWidthStyle,
212
215
  style
213
216
  ]
214
217
  },
@@ -158,11 +158,16 @@ type SizedBoxProps = {
158
158
  /**
159
159
  * Width of the box.
160
160
  */
161
- width?: number;
161
+ width?: ViewStyle['width'];
162
162
  /**
163
163
  * Height of the box.
164
164
  */
165
- height?: number;
165
+ height?: ViewStyle['height'];
166
+ /**
167
+ * Whether the box should take the full width of its parent.
168
+ * @default false
169
+ */
170
+ fullWidth?: boolean;
166
171
  /**
167
172
  * Custom style for the box.
168
173
  */
@@ -158,11 +158,16 @@ type SizedBoxProps = {
158
158
  /**
159
159
  * Width of the box.
160
160
  */
161
- width?: number;
161
+ width?: ViewStyle['width'];
162
162
  /**
163
163
  * Height of the box.
164
164
  */
165
- height?: number;
165
+ height?: ViewStyle['height'];
166
+ /**
167
+ * Whether the box should take the full width of its parent.
168
+ * @default false
169
+ */
170
+ fullWidth?: boolean;
166
171
  /**
167
172
  * Custom style for the box.
168
173
  */
@@ -199,8 +199,10 @@ var SizedBox = ({
199
199
  children,
200
200
  width,
201
201
  height,
202
+ fullWidth,
202
203
  style
203
204
  }) => {
205
+ const fullWidthStyle = fullWidth ? { width: "100%" } : void 0;
204
206
  return /* @__PURE__ */ React6.createElement(
205
207
  View6,
206
208
  {
@@ -209,6 +211,7 @@ var SizedBox = ({
209
211
  width,
210
212
  height
211
213
  },
214
+ fullWidthStyle,
212
215
  style
213
216
  ]
214
217
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/native",
3
- "version": "0.1.3",
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",