@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.
- package/dist/typography/index.cjs +2 -0
- package/dist/typography/index.d.cts +4 -0
- package/dist/typography/index.d.ts +4 -0
- package/dist/typography/index.js +2 -0
- package/dist/view/index.cjs +3 -0
- package/dist/view/index.d.cts +7 -2
- package/dist/view/index.d.ts +7 -2
- package/dist/view/index.js +3 -0
- package/package.json +1 -1
|
@@ -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,
|
package/dist/typography/index.js
CHANGED
|
@@ -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/dist/view/index.cjs
CHANGED
|
@@ -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
|
},
|
package/dist/view/index.d.cts
CHANGED
|
@@ -158,11 +158,16 @@ type SizedBoxProps = {
|
|
|
158
158
|
/**
|
|
159
159
|
* Width of the box.
|
|
160
160
|
*/
|
|
161
|
-
width?:
|
|
161
|
+
width?: ViewStyle['width'];
|
|
162
162
|
/**
|
|
163
163
|
* Height of the box.
|
|
164
164
|
*/
|
|
165
|
-
height?:
|
|
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
|
*/
|
package/dist/view/index.d.ts
CHANGED
|
@@ -158,11 +158,16 @@ type SizedBoxProps = {
|
|
|
158
158
|
/**
|
|
159
159
|
* Width of the box.
|
|
160
160
|
*/
|
|
161
|
-
width?:
|
|
161
|
+
width?: ViewStyle['width'];
|
|
162
162
|
/**
|
|
163
163
|
* Height of the box.
|
|
164
164
|
*/
|
|
165
|
-
height?:
|
|
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
|
*/
|
package/dist/view/index.js
CHANGED
|
@@ -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
|
},
|