sapo-components-ui-rn 1.0.60 → 1.0.62

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
@@ -2349,7 +2349,7 @@ var getActiveColor = function (_a) {
2349
2349
  var isFlat = mode === "flat";
2350
2350
  var modeColor = isFlat ? activeUnderlineColor : activeOutlineColor;
2351
2351
  if (error) {
2352
- return theme.colors.surfaceErrorDefault;
2352
+ return theme.colors.textErrorDefault;
2353
2353
  }
2354
2354
  if (modeColor) {
2355
2355
  return modeColor;
@@ -2418,7 +2418,7 @@ var getFlatInputColors = function (_a) {
2418
2418
  underlineColorCustom: getFlatUnderlineColor(__assign(__assign({}, baseFlatColorProps), { underlineColor: underlineColor })),
2419
2419
  placeholderColor: getPlaceholderColor(baseFlatColorProps),
2420
2420
  selectionColor: getSelectionColor({ activeColor: activeColor, customSelectionColor: customSelectionColor }),
2421
- errorColor: theme.colors.surfaceErrorDefault,
2421
+ errorColor: theme.colors.textErrorDefault,
2422
2422
  backgroundColor: getFlatBackgroundColor(baseFlatColorProps),
2423
2423
  };
2424
2424
  };
@@ -2432,7 +2432,7 @@ var getOutlinedInputColors = function (_a) {
2432
2432
  outlineColor: getOutlinedOutlineInputColor(__assign(__assign({}, baseOutlinedColorProps), { customOutlineColor: customOutlineColor })),
2433
2433
  placeholderColor: getPlaceholderColor(baseOutlinedColorProps),
2434
2434
  selectionColor: getSelectionColor({ activeColor: activeColor, customSelectionColor: customSelectionColor }),
2435
- errorColor: theme.colors.surfaceErrorDefault,
2435
+ errorColor: theme.colors.textErrorDefault,
2436
2436
  };
2437
2437
  };
2438
2438
  var getConstants = function () {
@@ -6105,8 +6105,8 @@ var TextInputNumber = function (_a) {
6105
6105
  React__default.createElement(Icon$1, { name: "IconClearText", type: "Svg", size: 24 }))),
6106
6106
  right && (React__default.createElement(View, { paddingLeft: SPACE_8, height: "100%" }, right)),
6107
6107
  React__default.createElement(Spacer, { width: SPACE_12 }))),
6108
- textError.length > 0 && (React__default.createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
6109
- React__default.createElement(Text$1, { style: styles$a.text12, color: colors.textErrorDefault }, textError))),
6108
+ textError.length > 0 && (React__default.createElement(View, { style: styles$a.vError },
6109
+ React__default.createElement(Text$1, { size: 12, numberOfLines: 1, color: theme.colors.textErrorDefault }, textError))),
6110
6110
  React__default.createElement(Modal, { visible: isShowModalKeyboard, transparent: true, animationType: "fade", onRequestClose: onCloseModalKeyboard },
6111
6111
  React__default.createElement(TouchableOpacity, { style: styles$a.modalOverlay, activeOpacity: 1, onPress: onCloseModalKeyboard },
6112
6112
  React__default.createElement(View, { onPress: function () { }, activeOpacity: 1, backgroundColor: colors.surfacePrimaryDefault, style: styles$a.modalContent },
@@ -6209,6 +6209,9 @@ var styles$a = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
6209
6209
  opacity: 0.5,
6210
6210
  }, disabledKeyText: {
6211
6211
  opacity: 0.5,
6212
+ }, vError: {
6213
+ paddingTop: SPACE_4,
6214
+ paddingHorizontal: SPACE_12,
6212
6215
  } }));
6213
6216
  var TextInputNumber$1 = React__default.memo(TextInputNumber);
6214
6217
 
@@ -6427,7 +6430,7 @@ var TextInput = forwardRef(function (_a, ref) {
6427
6430
  var _s = rest.maxFontSizeMultiplier, maxFontSizeMultiplier = _s === void 0 ? 1.5 : _s;
6428
6431
  var scaledLabel = !!(value || focused);
6429
6432
  if (mode === "default") {
6430
- return (React__default.createElement(TextInputDefault, __assign({ dense: dense, disabled: disabled, error: errorProp, multiline: multiline, editable: editable, render: render }, rest, { theme: theme, value: value, placeholderTextColor: placeholderTextColor, clearButton: clearButton, parentState: {
6433
+ return (React__default.createElement(TextInputDefault, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, multiline: multiline, editable: editable, render: render }, rest, { theme: theme, value: value, placeholderTextColor: placeholderTextColor, clearButton: clearButton, parentState: {
6431
6434
  labeled: labeled,
6432
6435
  error: error,
6433
6436
  focused: focused,
@@ -6445,7 +6448,7 @@ var TextInput = forwardRef(function (_a, ref) {
6445
6448
  if (mode === "number") {
6446
6449
  return (React__default.createElement(TextInputNumber$1, { textError: textError, disabled: disabled, prefix: prefix, value: value, label: rest.label, clearButton: clearButton, onChangeText: handleChangeText, maxValue: maxValue, formatDecimal: rest.formatDecimal, type: type }));
6447
6450
  }
6448
- return (React__default.createElement(TextInputFlat, __assign({ dense: dense, disabled: disabled, error: errorProp, editable: editable, clearButton: clearButton, render: render }, rest, { theme: theme, value: value, parentState: {
6451
+ return (React__default.createElement(TextInputFlat, __assign({ dense: dense, disabled: disabled, error: errorProp, textError: textError, editable: editable, clearButton: clearButton, render: render }, rest, { theme: theme, value: value, parentState: {
6449
6452
  labeled: labeled,
6450
6453
  error: error,
6451
6454
  focused: focused,