sapo-components-ui-rn 1.0.60 → 1.0.61
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.
|
|
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.
|
|
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.
|
|
2435
|
+
errorColor: theme.colors.textErrorDefault,
|
|
2436
2436
|
};
|
|
2437
2437
|
};
|
|
2438
2438
|
var getConstants = function () {
|
|
@@ -6427,7 +6427,7 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
6427
6427
|
var _s = rest.maxFontSizeMultiplier, maxFontSizeMultiplier = _s === void 0 ? 1.5 : _s;
|
|
6428
6428
|
var scaledLabel = !!(value || focused);
|
|
6429
6429
|
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: {
|
|
6430
|
+
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
6431
|
labeled: labeled,
|
|
6432
6432
|
error: error,
|
|
6433
6433
|
focused: focused,
|
|
@@ -6445,7 +6445,7 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
6445
6445
|
if (mode === "number") {
|
|
6446
6446
|
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
6447
|
}
|
|
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: {
|
|
6448
|
+
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
6449
|
labeled: labeled,
|
|
6450
6450
|
error: error,
|
|
6451
6451
|
focused: focused,
|