secullum-react-native-ui 4.15.1-beta.4 → 4.15.1-beta.6

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.
@@ -12,7 +12,7 @@ export interface DropDownProperties {
12
12
  value: any | null;
13
13
  onChange: (value: any) => void;
14
14
  onPress?: () => void | boolean | Promise<void> | Promise<boolean>;
15
- emptyMessage?: string;
15
+ emptyMessage: string;
16
16
  disabled?: boolean;
17
17
  style?: StyleProp<ViewStyle>;
18
18
  disabledStyle?: StyleProp<ViewStyle>;
@@ -33,9 +33,6 @@ export interface DropDownState {
33
33
  searchText: string;
34
34
  }
35
35
  export declare class DropDown extends React.Component<DropDownProperties, DropDownState> {
36
- static defaultProps: {
37
- emptyMessage: string;
38
- };
39
36
  state: DropDownState;
40
37
  handleItemPress: (value: any) => void;
41
38
  filterItems: () => {
@@ -154,7 +154,6 @@ class DropDown extends React.Component {
154
154
  return null;
155
155
  };
156
156
  this.getStyles = () => {
157
- var _a;
158
157
  const theme = (0, theme_1.getTheme)();
159
158
  const { icon, arrowColor } = this.props;
160
159
  const styles = react_native_1.StyleSheet.create({
@@ -203,8 +202,8 @@ class DropDown extends React.Component {
203
202
  justifyContent: this.shouldDisplaySearchField()
204
203
  ? 'flex-start'
205
204
  : 'center',
206
- paddingTop: this.shouldDisplaySearchField()
207
- ? (react_native_1.Platform.OS === 'ios' ? 44 : (_a = react_native_1.StatusBar.currentHeight) !== null && _a !== void 0 ? _a : 0)
205
+ paddingTop: this.shouldDisplaySearchField() && react_native_1.Platform.OS === 'ios'
206
+ ? 44
208
207
  : 0
209
208
  },
210
209
  modalContainer: {
@@ -340,6 +339,3 @@ class DropDown extends React.Component {
340
339
  }
341
340
  }
342
341
  exports.DropDown = DropDown;
343
- DropDown.defaultProps = {
344
- emptyMessage: 'Não há registros cadastrados'
345
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.15.1-beta.4",
3
+ "version": "4.15.1-beta.6",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [