@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.
- package/dist/components/Text/Text/Text.view.d.ts +1 -0
- package/dist/web.cjs.development.js +5 -5
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +5 -5
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +5 -5
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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", "
|
|
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
|
-
|
|
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 :
|
|
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({
|
|
@@ -4057,13 +4057,13 @@ var UploadView = _ref => {
|
|
|
4057
4057
|
textProps
|
|
4058
4058
|
}), progress < 100 && (icon || /*#__PURE__*/React__default.createElement(UploadIcon, Object.assign({
|
|
4059
4059
|
widthHeight: 32
|
|
4060
|
-
}, iconProps))), !selectedFile && text && renderText({
|
|
4060
|
+
}, iconProps))), !isLoading && !selectedFile && text && renderText({
|
|
4061
4061
|
text,
|
|
4062
4062
|
textProps
|
|
4063
4063
|
}), isLoading && renderProgress({
|
|
4064
4064
|
progress,
|
|
4065
4065
|
progressProps
|
|
4066
|
-
}), errorMessage && renderError({
|
|
4066
|
+
}), !isLoading && errorMessage && renderError({
|
|
4067
4067
|
errorMessage,
|
|
4068
4068
|
errorMessageProps
|
|
4069
4069
|
}), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|