@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.
- package/dist/components/Text/Text/Text.view.d.ts +1 -0
- package/dist/web.cjs.development.js +3 -3
- 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 +3 -3
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +3 -3
- 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({
|