sapo-components-ui-rn 1.0.14 → 1.0.16
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
|
@@ -5926,9 +5926,7 @@ var Button = function (_a) {
|
|
|
5926
5926
|
return colors.textBrandDefault;
|
|
5927
5927
|
}
|
|
5928
5928
|
};
|
|
5929
|
-
return (React__default.createElement(View, {
|
|
5930
|
-
flexDirection: full ? "column" : "row",
|
|
5931
|
-
} },
|
|
5929
|
+
return (React__default.createElement(View, { row: !full },
|
|
5932
5930
|
React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || false }),
|
|
5933
5931
|
React__default.createElement(View, { style: [
|
|
5934
5932
|
styles$9.button,
|
|
@@ -6733,7 +6731,7 @@ var styles$1 = StyleSheet.create({
|
|
|
6733
6731
|
});
|
|
6734
6732
|
|
|
6735
6733
|
var SelectionField = function (_a) {
|
|
6736
|
-
var style = _a.style, _b = _a.content, content = _b === void 0 ? "
|
|
6734
|
+
var style = _a.style, _b = _a.content, content = _b === void 0 ? "" : _b, _c = _a.label, label = _c === void 0 ? "" : _c, _d = _a.error, error = _d === void 0 ? "" : _d, borderColor = _a.borderColor; _a.left; var right = _a.right, textStyle = _a.textStyle; _a.labelStyle; var textProps = _a.textProps, onPress = _a.onPress, _e = _a.disabled, disabled = _e === void 0 ? false : _e, textColor = _a.textColor, labelColor = _a.labelColor, _f = _a.size, size = _f === void 0 ? 16 : _f; _a.theme; var _g = _a.required, required = _g === void 0 ? false : _g, props = __rest(_a, ["style", "content", "label", "error", "borderColor", "left", "right", "textStyle", "labelStyle", "textProps", "onPress", "disabled", "textColor", "labelColor", "size", "theme", "required"]);
|
|
6737
6735
|
var theme = useInternalTheme();
|
|
6738
6736
|
var colors = theme.colors;
|
|
6739
6737
|
var disabledTextStyle = {
|
|
@@ -6744,6 +6742,9 @@ var SelectionField = function (_a) {
|
|
|
6744
6742
|
return colors.textPlaceholder;
|
|
6745
6743
|
if (error.length > 0)
|
|
6746
6744
|
return colors.textErrorDefault;
|
|
6745
|
+
if (content.toString() === "") {
|
|
6746
|
+
return textColor || colors.textSecondary;
|
|
6747
|
+
}
|
|
6747
6748
|
return textColor || colors.textDefault;
|
|
6748
6749
|
};
|
|
6749
6750
|
return (React__default.createElement(View, null,
|