secullum-react-native-ui 4.17.2-beta.1 → 4.17.3

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.
@@ -345,7 +345,7 @@ class DropDown extends React.Component {
345
345
  ] },
346
346
  icon ? (React.createElement(FontAwesome_1.default, { name: icon, style: styles.iconOnLine })) : (React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, label)),
347
347
  this.renderClosedDropDown(selectedItem, inputStyle),
348
- React.createElement(Modal_1.Modal, { visible: modalOpen, onRequestClose: () => this.setState({ modalOpen: false }), overlayStyle: styles.modalOverlay, animation: animation !== null && animation !== void 0 ? animation : 'fade' }, useKeyboardAvoidingView ? (React.createElement(react_native_1.KeyboardAvoidingView, { behavior: react_native_1.Platform.OS === 'ios' ? 'padding' : 'height' }, conteudoModal)) : (conteudoModal)))));
348
+ React.createElement(Modal_1.Modal, { visible: modalOpen, onRequestClose: () => this.setState({ modalOpen: false }), overlayStyle: styles.modalOverlay, animation: animation || 'fade' }, useKeyboardAvoidingView ? (React.createElement(react_native_1.KeyboardAvoidingView, { behavior: react_native_1.Platform.OS === 'ios' ? 'padding' : 'height' }, conteudoModal)) : (conteudoModal)))));
349
349
  }
350
350
  }
351
351
  exports.DropDown = DropDown;
@@ -1,12 +1,5 @@
1
1
  import * as React from 'react';
2
- import { StyleProp, TextStyle, ViewStyle } from 'react-native';
3
- export interface MessageButtonProperties {
4
- text: string;
5
- onPress: () => void;
6
- style?: StyleProp<ViewStyle>;
7
- textStyle?: StyleProp<TextStyle>;
8
- nativeID?: string;
9
- }
2
+ import { StyleProp, TextStyle } from 'react-native';
10
3
  export interface MessageProperties {
11
4
  message: string;
12
5
  visible: boolean;
@@ -15,8 +8,6 @@ export interface MessageProperties {
15
8
  nativeID?: string;
16
9
  textStyle?: StyleProp<TextStyle>;
17
10
  animation?: 'none' | 'fade' | 'slide';
18
- firstButton?: MessageButtonProperties;
19
- secondButton?: MessageButtonProperties;
20
11
  }
21
12
  export declare class Message extends React.Component<MessageProperties> {
22
13
  static defaultProps: {
@@ -8,8 +8,6 @@ const Modal_1 = require("./Modal");
8
8
  const theme_1 = require("../modules/theme");
9
9
  const layout_1 = require("../modules/layout");
10
10
  const test_1 = require("../modules/test");
11
- const Space_1 = require("./Space");
12
- const Button_1 = require("./Button");
13
11
  class Message extends React.Component {
14
12
  constructor() {
15
13
  super(...arguments);
@@ -39,20 +37,13 @@ class Message extends React.Component {
39
37
  };
40
38
  }
41
39
  render() {
42
- const { message, visible, type, onRequestClose, nativeID, textStyle, animation, firstButton, secondButton } = this.props;
40
+ const { message, visible, type, onRequestClose, nativeID, textStyle, animation } = this.props;
43
41
  const styles = this.getStyles();
44
42
  const theme = (0, theme_1.getTheme)();
45
- return (React.createElement(Modal_1.Modal, { visible: visible, onRequestClose: onRequestClose, overlayStyle: styles.overlay, animation: animation !== null && animation !== void 0 ? animation : 'fade' },
43
+ return (React.createElement(Modal_1.Modal, { visible: visible, onRequestClose: onRequestClose, overlayStyle: styles.overlay, animation: animation || 'fade' },
46
44
  React.createElement(react_native_1.View, { nativeID: nativeID, style: styles.container },
47
45
  React.createElement(FontAwesome_1.default, { name: type === 'warning' ? 'warning' : 'check-circle', color: type === 'warning' ? theme.warningColor : theme.successColor, size: (0, layout_1.isTablet)() ? 52 : 42 }),
48
- React.createElement(react_native_1.Text, { style: [styles.text, textStyle], testID: (0, test_1.getTestID)(nativeID) }, message),
49
- React.createElement(react_native_1.View, null,
50
- firstButton && (React.createElement(React.Fragment, null,
51
- React.createElement(Space_1.Space, null),
52
- React.createElement(Button_1.Button, { text: firstButton.text, textStyle: firstButton.textStyle, onPress: firstButton.onPress, style: firstButton.style, nativeID: firstButton.nativeID }))),
53
- secondButton && (React.createElement(React.Fragment, null,
54
- React.createElement(Space_1.Space, null),
55
- React.createElement(Button_1.Button, { text: secondButton.text, textStyle: secondButton.textStyle, onPress: secondButton.onPress, style: secondButton.style, nativeID: secondButton.nativeID })))))));
46
+ React.createElement(react_native_1.Text, { style: [styles.text, textStyle], testID: (0, test_1.getTestID)(nativeID) }, message))));
56
47
  }
57
48
  }
58
49
  exports.Message = Message;
@@ -21,7 +21,7 @@ class Modal extends React.Component {
21
21
  render() {
22
22
  const { children, visible, overlayStyle, onRequestClose, animation } = this.props;
23
23
  const { isMounted } = this.state;
24
- return (React.createElement(react_native_1.Modal, { animationType: animation !== null && animation !== void 0 ? animation : 'fade', transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose, onShow: this.handleShow },
24
+ return (React.createElement(react_native_1.Modal, { animationType: animation || 'fade', transparent: true, visible: visible, supportedOrientations: ['landscape', 'portrait'], onRequestClose: onRequestClose, onShow: this.handleShow },
25
25
  React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: onRequestClose },
26
26
  React.createElement(react_native_1.View, { style: [styles.overlay, overlayStyle] }, react_native_1.Platform.OS !== 'android' || isMounted ? children : React.createElement(react_native_1.View, null)))));
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.17.2-beta.1",
3
+ "version": "4.17.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [