sapo-components-ui-rn 1.0.75 → 1.0.76

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.
@@ -3,6 +3,7 @@ import { TextProps } from "react-native";
3
3
  import { ThemeProp } from "../../types";
4
4
  export interface IText extends TextProps {
5
5
  size?: number;
6
+ lineHeight?: number;
6
7
  color?: string;
7
8
  center?: boolean;
8
9
  bold?: boolean;
package/dist/index.esm.js CHANGED
@@ -4911,18 +4911,24 @@ var memoWithRef = function (component) {
4911
4911
  var Text = function (props) {
4912
4912
  var children = props.children, onPress = props.onPress; props.theme; var rest = __rest(props, ["children", "onPress", "theme"]);
4913
4913
  var theme = useInternalTheme();
4914
+ var colors = theme.colors;
4914
4915
  delete rest.style;
4915
4916
  var _getStyle = function () {
4916
4917
  var style = {
4917
4918
  fontWeight: "normal",
4918
- color: colors.ink.INK100,
4919
+ color: colors.textDefault,
4919
4920
  fontFamily: "Inter-Regular",
4921
+ fontSize: 14,
4922
+ lineHeight: 20,
4920
4923
  };
4921
- var _a = props.size, size = _a === void 0 ? 14 : _a, center = props.center, color = props.color, bold = props.bold, medium = props.medium;
4924
+ var _a = props.size, size = _a === void 0 ? 14 : _a, lineHeight = props.lineHeight, center = props.center, color = props.color, bold = props.bold, medium = props.medium;
4922
4925
  style.color = theme.colors.textDefault || "black";
4923
4926
  if (size) {
4924
4927
  style.fontSize = size;
4925
4928
  }
4929
+ if (lineHeight) {
4930
+ style.lineHeight = lineHeight;
4931
+ }
4926
4932
  if (color) {
4927
4933
  style.color = color;
4928
4934
  }