@cronocode/react-box 1.1.6 → 1.1.7

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/types.d.ts CHANGED
@@ -38,6 +38,7 @@ export declare const styleVariables: {
38
38
  flexSelf: readonly ["auto", "flex-start", "flex-end", "center", "baseline", "stretch"];
39
39
  outlineOffset: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
40
40
  transition: readonly ["none"];
41
+ background: readonly ["none"];
41
42
  };
42
43
  declare type GapType = (typeof styleVariables.gap)[number];
43
44
  declare type BoxSizeValue = (typeof styleVariables.sizeSpecialValues)[number];
@@ -55,6 +56,7 @@ declare type TextTransformType = (typeof styleVariables.textTransform)[number];
55
56
  declare type TextAlignType = (typeof styleVariables.textAlign)[number];
56
57
  declare type BorderAndOutlineStyleType = (typeof styleVariables.borderAndOutlineStyles)[number];
57
58
  declare type TransitionType = (typeof styleVariables.transition)[number];
59
+ declare type BackgroundType = (typeof styleVariables.background)[number];
58
60
  interface BoxPseudoClasses {
59
61
  hover?: boolean;
60
62
  focus?: boolean;
@@ -149,8 +151,8 @@ interface BoxShadow {
149
151
  shadow?: string;
150
152
  }
151
153
  interface BoxBackground {
152
- background?: string;
153
- bg?: string;
154
+ background?: BackgroundType | string;
155
+ bg?: BackgroundType | string;
154
156
  }
155
157
  interface BoxColors {
156
158
  color?: ColorType | string;