@stylexjs/stylex 0.2.0-beta.23 → 0.2.0-beta.24
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/lib/StyleXCSSTypes.d.ts
CHANGED
|
@@ -858,6 +858,7 @@ export type CSSProperties = Readonly<{
|
|
|
858
858
|
WebkitAppearance?: null | appearance;
|
|
859
859
|
WebkitFontSmoothing?: null | 'antialiased';
|
|
860
860
|
WebkitTapHighlightColor?: null | color;
|
|
861
|
+
aspectRatio?: null | number | string;
|
|
861
862
|
alignContent?: null | alignContent;
|
|
862
863
|
alignItems?: null | alignItems;
|
|
863
864
|
alignSelf?: null | alignSelf;
|
|
@@ -878,6 +878,7 @@ export type CSSProperties = $ReadOnly<{
|
|
|
878
878
|
WebkitTapHighlightColor?: null | color,
|
|
879
879
|
// ENDOF ...$Exact<SupportedVendorSpecificCSSProperties>,
|
|
880
880
|
|
|
881
|
+
aspectRatio?: null | number | string,
|
|
881
882
|
alignContent?: null | alignContent,
|
|
882
883
|
alignItems?: null | alignItems,
|
|
883
884
|
alignSelf?: null | alignSelf,
|
package/lib/native/stylex.js
CHANGED
|
@@ -143,7 +143,15 @@ function finalizeValue(unfinalizedValue, options) {
|
|
|
143
143
|
function create(styles) {
|
|
144
144
|
const result = {};
|
|
145
145
|
for (const styleName in styles) {
|
|
146
|
-
|
|
146
|
+
const val = styles[styleName];
|
|
147
|
+
if (typeof val === 'function') {
|
|
148
|
+
result[styleName] = function () {
|
|
149
|
+
const style = val(...arguments);
|
|
150
|
+
return preprocessCreate(style);
|
|
151
|
+
};
|
|
152
|
+
} else {
|
|
153
|
+
result[styleName] = preprocessCreate(styles[styleName]);
|
|
154
|
+
}
|
|
147
155
|
}
|
|
148
156
|
return result;
|
|
149
157
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexjs/stylex",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.24",
|
|
4
4
|
"description": "A library for defining styles for optimized user interfaces.",
|
|
5
5
|
"main": "lib/stylex.js",
|
|
6
6
|
"react-native": "lib/native/stylex.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"utility-types": "^3.10.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@stylexjs/scripts": "0.2.0-beta.
|
|
23
|
+
"@stylexjs/scripts": "0.2.0-beta.24"
|
|
24
24
|
},
|
|
25
25
|
"jest": {},
|
|
26
26
|
"files": [
|