sapo-components-ui-rn 1.1.40 → 1.1.41
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 +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Text/index.tsx +1 -1
- package/src/components/TextInput/Label/InputLabel.tsx +1 -1
- package/src/components/TextInput/TextInputFlat.tsx +8 -3
package/dist/index.esm.js
CHANGED
|
@@ -4784,7 +4784,7 @@ var Text = function (props) {
|
|
|
4784
4784
|
color: colors.textDefault,
|
|
4785
4785
|
fontFamily: "Inter-Regular",
|
|
4786
4786
|
fontSize: 15,
|
|
4787
|
-
lineHeight: 24,
|
|
4787
|
+
// lineHeight: 24,
|
|
4788
4788
|
};
|
|
4789
4789
|
var _a = props.size, size = _a === void 0 ? 15 : _a, lineHeight = props.lineHeight, center = props.center, color = props.color, bold = props.bold, medium = props.medium, semibold = props.semibold;
|
|
4790
4790
|
style.color = theme.colors.textDefault || "black";
|
|
@@ -4879,7 +4879,7 @@ var InputLabel = function (props) {
|
|
|
4879
4879
|
var commonStyles = [
|
|
4880
4880
|
placeholderStyle,
|
|
4881
4881
|
{
|
|
4882
|
-
top: topPosition - (Platform.OS === "android" ?
|
|
4882
|
+
top: topPosition - (Platform.OS === "android" ? 1 : inputValue ? 0 : 2),
|
|
4883
4883
|
},
|
|
4884
4884
|
{
|
|
4885
4885
|
maxWidth: labelWidth,
|
|
@@ -5292,7 +5292,11 @@ var TextInputFlat = function (_a) {
|
|
|
5292
5292
|
renderPrefix(), render === null || render === void 0 ? void 0 :
|
|
5293
5293
|
render(__assign(__assign({}, rest), { ref: innerRef, onChangeText: handleChangeText, value: inputValue, placeholder: rest.placeholder, editable: !disabled && editable, selectionColor: selectionColor, cursorColor: typeof cursorColor === "undefined" ? activeColor : cursorColor, placeholderTextColor: placeholderTextColorBasedOnState, onFocus: onFocus, onBlur: onBlur, underlineColorAndroid: "transparent", multiline: multiline, style: [
|
|
5294
5294
|
styles$e.input,
|
|
5295
|
-
__assign(__assign({ paddingLeft: paddingLeft, paddingRight: paddingRight, paddingTop: parentState.focused || parentState.value
|
|
5295
|
+
__assign(__assign({ paddingLeft: paddingLeft, paddingRight: paddingRight, paddingTop: parentState.focused || parentState.value
|
|
5296
|
+
? Platform.OS === "android"
|
|
5297
|
+
? SPACE_16
|
|
5298
|
+
: SPACE_12
|
|
5299
|
+
: 0 }, font), { fontSize: fontSize, lineHeight: lineHeight, fontWeight: fontWeight, color: inputTextColor, textAlignVertical: multiline ? "top" : "center", marginTop: Platform.OS === "android" ? SPACE_8 : SPACE_6 }),
|
|
5296
5300
|
contentStyle,
|
|
5297
5301
|
] })),
|
|
5298
5302
|
renderSuffix())),
|