sapo-components-ui-rn 1.0.70 → 1.0.71

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
@@ -5437,6 +5437,15 @@ var TextInputFlat = function (_a) {
5437
5437
  }
5438
5438
  return React$3.createElement(View$1, null);
5439
5439
  };
5440
+ var checkLineRightAction = function () {
5441
+ if (!multiline && right && inputValue) {
5442
+ return true;
5443
+ }
5444
+ if (parentState.focused && right) {
5445
+ return true;
5446
+ }
5447
+ return false;
5448
+ };
5440
5449
  return (React$3.createElement(View$1, null,
5441
5450
  React$3.createElement(View$1, { style: {
5442
5451
  flexDirection: "row",
@@ -5484,7 +5493,7 @@ var TextInputFlat = function (_a) {
5484
5493
  renderSuffix())),
5485
5494
  !disabled && clearButton && inputValue ? (React$3.createElement(TouchableOpacity, { onPress: handleClear, style: styles$d.clearButton },
5486
5495
  React$3.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React$3.createElement(Spacer, { width: SPACE_12 })),
5487
- !multiline && right && (React$3.createElement(Spacer, { width: 1, height: 30, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5496
+ checkLineRightAction() && (React$3.createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
5488
5497
  marginRight: SPACE_8,
5489
5498
  } })),
5490
5499
  React$3.createElement(View$1, { style: {
@@ -5665,6 +5674,15 @@ var TextInputDefault = function (_a) {
5665
5674
  }
5666
5675
  return React$3.createElement(View, null);
5667
5676
  };
5677
+ var checkLineRightAction = function () {
5678
+ if (!multiline && right && inputValue) {
5679
+ return true;
5680
+ }
5681
+ if (parentState.focused && right) {
5682
+ return true;
5683
+ }
5684
+ return false;
5685
+ };
5668
5686
  return (React$3.createElement(View, { style: viewStyle },
5669
5687
  React$3.createElement(View, { row: true, alignCenter: !multiline, justifyCenter: true, style: [
5670
5688
  {
@@ -5723,7 +5741,7 @@ var TextInputDefault = function (_a) {
5723
5741
  !multiline && renderSuffix()))),
5724
5742
  !disabled && clearButton && inputValue ? (React$3.createElement(TouchableOpacity, { onPress: handleClear, style: multiline ? styles$c.clearButtonMultiline : styles$c.clearButton },
5725
5743
  React$3.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))) : (React$3.createElement(Spacer, { width: CONSTANTS.SPACE_12 })),
5726
- !multiline && right && (React$3.createElement(Spacer, { width: 1, height: 30, backgroundColor: colors.borderPrimaryDefault, style: {
5744
+ checkLineRightAction() && (React$3.createElement(Spacer, { width: 1, height: 24, backgroundColor: colors.borderPrimaryDefault, style: {
5727
5745
  marginRight: CONSTANTS.SPACE_8,
5728
5746
  } })),
5729
5747
  right && !clearButton && React$3.createElement(Spacer, { width: CONSTANTS.SPACE_2 }),
@@ -6050,7 +6068,7 @@ var TextInputNumber = function (_a) {
6050
6068
  suffix)))),
6051
6069
  clearButton && !checkValueEmpty() && (React__default.createElement(TouchableOpacity, { activeOpacity: 0.8, onPress: handleClearInput },
6052
6070
  React__default.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))),
6053
- right && (React__default.createElement(Spacer, { width: 1, height: 30, backgroundColor: theme.colors.borderPrimaryDefault, style: {
6071
+ right && numberValue && (React__default.createElement(Spacer, { width: 1, height: 24, backgroundColor: theme.colors.borderPrimaryDefault, style: {
6054
6072
  marginLeft: SPACE_4,
6055
6073
  } })),
6056
6074
  right && (React__default.createElement(View, { center: true, paddingLeft: SPACE_8, height: "100%" }, right)),