@dcl/react-ecs 0.0.1-3273214772.commit-180207d → 0.0.1-3283072736.commit-63c5d6a

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/index.d.ts CHANGED
@@ -141,12 +141,14 @@ export declare interface PBUiTransform {
141
141
  * @public
142
142
  */
143
143
  export declare type Position = {
144
- top: number | string;
145
- right: number | string;
146
- bottom: number | string;
147
- left: number | string;
144
+ top: PositionUnit;
145
+ right: PositionUnit;
146
+ bottom: PositionUnit;
147
+ left: PositionUnit;
148
148
  };
149
149
 
150
+ export declare type PositionUnit = `${number}px` | `${number}%` | number;
151
+
150
152
  declare namespace ReactEcs {
151
153
  namespace JSX {
152
154
  interface Element {
@@ -200,17 +202,16 @@ export declare interface UiTransformProps {
200
202
  alignSelf?: YGAlign;
201
203
  alignContent?: YGAlign;
202
204
  flexDirection?: YGFlexDirection;
203
- position?: Position;
204
- padding?: Position;
205
- margin?: Position;
206
- border?: Position;
205
+ position?: Partial<Position>;
206
+ padding?: Partial<Position>;
207
+ margin?: Partial<Position>;
207
208
  direction?: YGDirection;
208
- width?: number;
209
- height?: number;
210
- minWidth?: number;
211
- maxWidth?: number;
212
- minHeight?: number;
213
- maxHeight?: number;
209
+ width?: PositionUnit;
210
+ height?: PositionUnit;
211
+ minWidth?: PositionUnit;
212
+ maxWidth?: PositionUnit;
213
+ minHeight?: PositionUnit;
214
+ maxHeight?: PositionUnit;
214
215
  flexWrap?: YGWrap;
215
216
  flexBasis?: number;
216
217
  flexGrow?: number;