@app-studio/web 0.9.30 → 0.9.31

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.
@@ -10,6 +10,7 @@ interface Props extends TextProps {
10
10
  views?: {
11
11
  container?: ViewProps;
12
12
  };
13
+ bgColor?: string;
13
14
  }
14
15
  /**
15
16
  * Main Text component that renders text with various styles and states
@@ -564,7 +564,7 @@ var getTextColor = backgroundColor => {
564
564
  };
565
565
 
566
566
  var _excluded$2 = ["text", "maxLines", "views"],
567
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
567
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "bgColor", "color", "views"];
568
568
  /**
569
569
  * Renders text content with support for subscript and superscript
570
570
  */
@@ -679,7 +679,7 @@ var TextView = _ref3 => {
679
679
  isStriked = false,
680
680
  weight = 'normal',
681
681
  size = 'md',
682
- backgroundColor,
682
+ bgColor,
683
683
  color,
684
684
  views
685
685
  } = _ref3,
@@ -694,7 +694,7 @@ var TextView = _ref3 => {
694
694
  var fontSize = FontSizes[size];
695
695
  var lineHeight = LineHeights[size];
696
696
  var fontWeight = FontWeights[weight];
697
- var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
697
+ var computedColor = color != null ? color : bgColor ? getTextColor(bgColor) : undefined;
698
698
  return /*#__PURE__*/React__default.createElement(appStudio.Element
699
699
  // Apply typography styles according to design guidelines
700
700
  , Object.assign({