@dcl/react-ecs 0.0.1-3205963061.commit-6d3acc9 → 0.0.1-3220359277.commit-7cbadc7

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
@@ -31,7 +31,7 @@ export declare type EcsElements = {
31
31
  export declare type EntityComponents = {
32
32
  uiTransform: PBUiTransform;
33
33
  uiText: PBUiText;
34
- uiStyles: PBUiStyles;
34
+ uiBackground: PBUiBackground;
35
35
  };
36
36
 
37
37
  /**
@@ -40,7 +40,7 @@ export declare type EntityComponents = {
40
40
  export declare type EntityPropTypes = {
41
41
  uiTransform?: UiTransformProps;
42
42
  uiText?: UiTextProps;
43
- uiStyles?: UiStylesProps;
43
+ uiBackground?: UiBackgroundProps;
44
44
  };
45
45
 
46
46
  export declare enum Font {
@@ -59,7 +59,7 @@ export declare namespace JSX {
59
59
 
60
60
  export declare type Key = number | string;
61
61
 
62
- export declare interface PBUiStyles {
62
+ export declare interface PBUiBackground {
63
63
  /** default=(0.0, 0.0, 0.0, 0.0) */
64
64
  backgroundColor?: Color4 | undefined;
65
65
  }
@@ -171,6 +171,8 @@ export declare enum TextAlign {
171
171
  UNRECOGNIZED = -1
172
172
  }
173
173
 
174
+ export declare type UiBackgroundProps = PBUiBackground;
175
+
174
176
  export declare type UiComponent = () => JSX.Element;
175
177
 
176
178
  /**
@@ -178,8 +180,6 @@ export declare type UiComponent = () => JSX.Element;
178
180
  */
179
181
  export declare function UiEntity(props: EntityPropTypes & Partial<CommonProps>): ReactEcs.JSX.Element;
180
182
 
181
- export declare type UiStylesProps = PBUiStyles;
182
-
183
183
  export declare type UiTextProps = PBUiText;
184
184
 
185
185
  /**