sapo-components-ui-rn 1.1.32 → 1.1.34

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/index.esm.js CHANGED
@@ -5738,8 +5738,14 @@ var TextInputNumber = function (_a) {
5738
5738
  if (inputValue.endsWith(".")) {
5739
5739
  finalValue = inputValue.slice(0, -1);
5740
5740
  }
5741
- onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(formatNumberInput$1(finalValue, formatDecimal));
5742
- setNumberValue(formatNumberInput$1(finalValue, formatDecimal));
5741
+ if (type === "integer") {
5742
+ onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(finalValue);
5743
+ setNumberValue(finalValue);
5744
+ }
5745
+ else {
5746
+ onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(formatNumberInput$1(finalValue, formatDecimal));
5747
+ setNumberValue(formatNumberInput$1(finalValue, formatDecimal));
5748
+ }
5743
5749
  setIsShowModalKeyboard(false);
5744
5750
  };
5745
5751
  var checkValueEmpty = function () {
@@ -7064,7 +7070,7 @@ var Avatar = function (_a) {
7064
7070
  var getSize = function (size) {
7065
7071
  switch (size) {
7066
7072
  case 64:
7067
- return 28;
7073
+ return 36;
7068
7074
  case 48:
7069
7075
  return 20;
7070
7076
  case 32:
@@ -7073,7 +7079,19 @@ var Avatar = function (_a) {
7073
7079
  return 16;
7074
7080
  }
7075
7081
  };
7076
- return (React__default.createElement(View, { onPress: onPress, width: size, height: size, borderRadius: size / 2, center: true, backgroundColor: backgroundColor || colors.surfaceSecondaryDefault, style: [styles$3.container, style] }, source ? (React__default.createElement(Image$1, { resizeMode: "cover", source: source, style: [{ width: size, height: size }, imageStyle] })) : (React__default.createElement(Text$1, { size: getSize(size), color: textColor || colors.textSecondary, style: textStyle || { fontWeight: "500" } }, getInitials(name)))));
7082
+ var getLineHeight = function (size) {
7083
+ switch (size) {
7084
+ case 64:
7085
+ return 24;
7086
+ case 48:
7087
+ return 28;
7088
+ case 32:
7089
+ return 24;
7090
+ default:
7091
+ return 24;
7092
+ }
7093
+ };
7094
+ return (React__default.createElement(View, { onPress: onPress, width: size, height: size, borderRadius: size / 2, center: true, backgroundColor: backgroundColor || colors.surfaceSecondaryDefault, style: [styles$3.container, style] }, source ? (React__default.createElement(Image$1, { resizeMode: "cover", source: source, style: [{ width: size, height: size }, imageStyle] })) : (React__default.createElement(Text$1, { size: getSize(size), lineHeight: getLineHeight(size), color: textColor || colors.textSecondary, style: textStyle || { fontWeight: "500" } }, getInitials(name)))));
7077
7095
  };
7078
7096
  var styles$3 = StyleSheet.create({
7079
7097
  container: {