@app-studio/web 0.9.29 → 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.
@@ -519,7 +519,7 @@
519
519
  };
520
520
 
521
521
  var _excluded$2 = ["text", "maxLines", "views"],
522
- _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "backgroundColor", "color", "views"];
522
+ _excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "bgColor", "color", "views"];
523
523
  /**
524
524
  * Renders text content with support for subscript and superscript
525
525
  */
@@ -634,7 +634,7 @@
634
634
  isStriked = false,
635
635
  weight = 'normal',
636
636
  size = 'md',
637
- backgroundColor,
637
+ bgColor,
638
638
  color,
639
639
  views
640
640
  } = _ref3,
@@ -649,7 +649,7 @@
649
649
  var fontSize = FontSizes[size];
650
650
  var lineHeight = LineHeights[size];
651
651
  var fontWeight = FontWeights[weight];
652
- var computedColor = color != null ? color : backgroundColor ? getTextColor(backgroundColor) : undefined;
652
+ var computedColor = color != null ? color : bgColor ? getTextColor(bgColor) : undefined;
653
653
  return /*#__PURE__*/React__default.createElement(appStudio.Element
654
654
  // Apply typography styles according to design guidelines
655
655
  , Object.assign({
@@ -4012,13 +4012,13 @@
4012
4012
  textProps
4013
4013
  }), progress < 100 && (icon || /*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
4014
4014
  widthHeight: 32
4015
- }, iconProps))), !selectedFile && text && renderText({
4015
+ }, iconProps))), !isLoading && !selectedFile && text && renderText({
4016
4016
  text,
4017
4017
  textProps
4018
4018
  }), isLoading && renderProgress({
4019
4019
  progress,
4020
4020
  progressProps
4021
- }), errorMessage && renderError({
4021
+ }), !isLoading && errorMessage && renderError({
4022
4022
  errorMessage,
4023
4023
  errorMessageProps
4024
4024
  }), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({