secullum-react-native-ui 4.17.1 → 4.17.2

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.
@@ -58,8 +58,10 @@ class TextBox extends React.Component {
58
58
  };
59
59
  }
60
60
  render() {
61
- const { label, style, labelStyle, editable, inputRef, renderInput, icon, onPress } = this.props;
61
+ const { label, style, labelStyle, editable, inputRef, renderInput, icon, onPress, autoCapitalize, secureTextEntry } = this.props;
62
62
  const styles = this.getStyles();
63
+ // Força primeira letra minúscula em campos de senha, a menos que autoCapitalize seja definido explicitamente.
64
+ const capitalize = secureTextEntry && !autoCapitalize ? 'none' : autoCapitalize;
63
65
  const incomingProps = {
64
66
  nativeID: this.props.nativeID,
65
67
  testID: (0, test_1.getTestID)(this.props.nativeID),
@@ -79,13 +81,13 @@ class TextBox extends React.Component {
79
81
  // We set a fixed color for the placeholder to prevent it from being affected by the device's theme.
80
82
  // Related issue on GitLab: 12074
81
83
  placeholderTextColor: (0, theme_1.getTheme)().textColor3,
82
- secureTextEntry: this.props.secureTextEntry,
84
+ secureTextEntry: secureTextEntry,
83
85
  multiline: this.props.multiline,
84
86
  editable: this.props.editable,
85
87
  keyboardType: this.props.keyboardType,
86
88
  maxLength: this.props.maxLength,
87
89
  onSubmitEditing: this.props.onSubmitEditing,
88
- autoCapitalize: this.props.autoCapitalize,
90
+ autoCapitalize: capitalize,
89
91
  autoCorrect: this.props.autoCorrect,
90
92
  returnKeyType: react_native_1.Platform.OS === 'ios' &&
91
93
  this.props.keyboardType === 'numeric' &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.17.1",
3
+ "version": "4.17.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [