@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
package/dist/web.esm.js
CHANGED
|
@@ -557,7 +557,7 @@ var getTextColor = backgroundColor => {
|
|
|
557
557
|
};
|
|
558
558
|
|
|
559
559
|
var _excluded$2 = ["text", "maxLines", "views"],
|
|
560
|
-
_excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "
|
|
560
|
+
_excluded2$1 = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "bgColor", "color", "views"];
|
|
561
561
|
/**
|
|
562
562
|
* Renders text content with support for subscript and superscript
|
|
563
563
|
*/
|
|
@@ -672,7 +672,7 @@ var TextView = _ref3 => {
|
|
|
672
672
|
isStriked = false,
|
|
673
673
|
weight = 'normal',
|
|
674
674
|
size = 'md',
|
|
675
|
-
|
|
675
|
+
bgColor,
|
|
676
676
|
color,
|
|
677
677
|
views
|
|
678
678
|
} = _ref3,
|
|
@@ -687,7 +687,7 @@ var TextView = _ref3 => {
|
|
|
687
687
|
var fontSize = FontSizes[size];
|
|
688
688
|
var lineHeight = LineHeights[size];
|
|
689
689
|
var fontWeight = FontWeights[weight];
|
|
690
|
-
var computedColor = color != null ? color :
|
|
690
|
+
var computedColor = color != null ? color : bgColor ? getTextColor(bgColor) : undefined;
|
|
691
691
|
return /*#__PURE__*/React.createElement(Element
|
|
692
692
|
// Apply typography styles according to design guidelines
|
|
693
693
|
, Object.assign({
|
|
@@ -4050,13 +4050,13 @@ var UploadView = _ref => {
|
|
|
4050
4050
|
textProps
|
|
4051
4051
|
}), progress < 100 && (icon || /*#__PURE__*/React.createElement(UploadIcon, Object.assign({
|
|
4052
4052
|
widthHeight: 32
|
|
4053
|
-
}, iconProps))), !selectedFile && text && renderText({
|
|
4053
|
+
}, iconProps))), !isLoading && !selectedFile && text && renderText({
|
|
4054
4054
|
text,
|
|
4055
4055
|
textProps
|
|
4056
4056
|
}), isLoading && renderProgress({
|
|
4057
4057
|
progress,
|
|
4058
4058
|
progressProps
|
|
4059
|
-
}), errorMessage && renderError({
|
|
4059
|
+
}), !isLoading && errorMessage && renderError({
|
|
4060
4060
|
errorMessage,
|
|
4061
4061
|
errorMessageProps
|
|
4062
4062
|
}), /*#__PURE__*/React.createElement(View, Object.assign({
|