@dcl/react-ecs 7.3.25 → 7.3.26-6657946259.commit-cf136d8
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.
|
@@ -88,10 +88,10 @@ export interface UiTransformProps {
|
|
|
88
88
|
padding?: Partial<Position> | PositionShorthand;
|
|
89
89
|
/** The margin shorthand property sets the margin area on all four sides of an element. */
|
|
90
90
|
margin?: Partial<Position> | PositionShorthand;
|
|
91
|
-
/** The width property specifies the width of an element. */
|
|
92
|
-
width?: PositionUnit;
|
|
93
|
-
/** The height property specifies the height of an element. */
|
|
94
|
-
height?: PositionUnit;
|
|
91
|
+
/** The width property specifies the width of an element. Using 'auto' as value makes it adapt to its content. */
|
|
92
|
+
width?: PositionUnit | 'auto';
|
|
93
|
+
/** The height property specifies the height of an element. Using 'auto' as value makes it adapt to its content. */
|
|
94
|
+
height?: PositionUnit | 'auto';
|
|
95
95
|
/** The min-width property sets the minimum width of an element. */
|
|
96
96
|
minWidth?: PositionUnit;
|
|
97
97
|
/** The max-width property sets the maximum width of an element. */
|
|
@@ -17,5 +17,5 @@ type SizeReturnType = {
|
|
|
17
17
|
} & {
|
|
18
18
|
[key in SizePropKeyUnit]: YGUnit;
|
|
19
19
|
};
|
|
20
|
-
export declare function parseSize(val: PositionUnit | undefined, key: SizePropName): Partial<SizeReturnType>;
|
|
20
|
+
export declare function parseSize(val: PositionUnit | 'auto' | undefined, key: SizePropName): Partial<SizeReturnType>;
|
|
21
21
|
export {};
|
|
@@ -14,6 +14,9 @@ function parsePositionUnit(val) {
|
|
|
14
14
|
if (val === undefined || val === null) {
|
|
15
15
|
return [undefined, 0 /* YGUnit.YGU_UNDEFINED */];
|
|
16
16
|
}
|
|
17
|
+
if (val === 'auto') {
|
|
18
|
+
return [0, 3 /* YGUnit.YGU_AUTO */];
|
|
19
|
+
}
|
|
17
20
|
if (typeof val === 'number' || (typeof val === 'string' && !isNaN(Number(val)))) {
|
|
18
21
|
return [Number(val), 1 /* YGUnit.YGU_POINT */];
|
|
19
22
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/react-ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.3.
|
|
4
|
+
"version": "7.3.26-6657946259.commit-cf136d8",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@dcl/ecs": "7.3.
|
|
8
|
+
"@dcl/ecs": "7.3.26-6657946259.commit-cf136d8",
|
|
9
9
|
"react": "^18.2.0",
|
|
10
10
|
"react-reconciler": "^0.29.0"
|
|
11
11
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"tsconfig": "./tsconfig.json"
|
|
40
40
|
},
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
|
-
"commit": "
|
|
42
|
+
"commit": "cf136d80173d995dd13bf59c7c7416993b74d833"
|
|
43
43
|
}
|