secullum-react-native-ui 4.14.1 → 4.14.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.
@@ -12,6 +12,7 @@ export interface HeaderProperties {
12
12
  title: string;
13
13
  leftButton?: HeaderButton;
14
14
  rightButton?: HeaderButton;
15
+ nativeID?: string;
15
16
  }
16
17
  export declare class Header extends React.Component<HeaderProperties> {
17
18
  static defaultProps: {
@@ -74,13 +74,13 @@ class Header extends React.Component {
74
74
  };
75
75
  }
76
76
  render() {
77
- const { title, leftButton, rightButton } = this.props;
77
+ const { title, leftButton, rightButton, nativeID } = this.props;
78
78
  const styles = this.getStyles();
79
79
  return (React.createElement(react_native_1.View, { style: styles.header },
80
80
  leftButton
81
81
  ? this.renderButton(leftButton, 'left')
82
82
  : this.renderButtonInvisible('left'),
83
- React.createElement(react_native_1.Text, { style: styles.title }, title),
83
+ React.createElement(react_native_1.Text, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: styles.title }, title),
84
84
  rightButton
85
85
  ? this.renderButton(rightButton, 'right')
86
86
  : this.renderButtonInvisible('right')));
@@ -8,6 +8,7 @@ const layout_1 = require("../modules/layout");
8
8
  const Button_1 = require("./Button");
9
9
  const Space_1 = require("./Space");
10
10
  const react_native_1 = require("react-native");
11
+ const test_1 = require("../modules/test");
11
12
  class Question extends React.Component {
12
13
  constructor() {
13
14
  super(...arguments);
@@ -59,7 +60,7 @@ class Question extends React.Component {
59
60
  React.createElement(react_native_1.View, { style: [styles.overlay], nativeID: nativeID },
60
61
  React.createElement(react_native_1.View, { style: styles.container },
61
62
  React.createElement(FontAwesome_1.default, { name: 'question-circle', style: styles.icon }),
62
- React.createElement(react_native_1.Text, { style: [styles.text, textStyle] }, message),
63
+ React.createElement(react_native_1.Text, { style: [styles.text, textStyle], nativeID: nativeID + '-message', testID: (0, test_1.getTestID)(nativeID + '-message') }, message),
63
64
  React.createElement(Space_1.Space, null),
64
65
  React.createElement(react_native_1.View, { style: styles.botoesAcao },
65
66
  React.createElement(Button_1.Button, { text: leftButtonProps.text, onPress: leftButtonProps.onPress, style: [
@@ -5,6 +5,7 @@ export interface TextProperties {
5
5
  bold: boolean;
6
6
  size: number;
7
7
  flex?: number;
8
+ numberOfLines: number;
8
9
  color: string;
9
10
  align?: 'auto' | 'left' | 'right' | 'center' | 'justify';
10
11
  nativeID?: string;
@@ -25,9 +25,9 @@ class Text extends React.Component {
25
25
  };
26
26
  }
27
27
  render() {
28
- const { style, children, nativeID } = this.props;
28
+ const { style, children, nativeID, numberOfLines } = this.props;
29
29
  const textStyle = this.getStyles();
30
- return (React.createElement(react_native_1.Text, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [textStyle.text, style] }, children));
30
+ return (React.createElement(react_native_1.Text, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [textStyle.text, style], numberOfLines: numberOfLines }, children));
31
31
  }
32
32
  }
33
33
  exports.Text = Text;
package/lib/index.d.ts CHANGED
@@ -36,4 +36,5 @@ export * from './modules/format';
36
36
  export * from './modules/layout';
37
37
  export * from './modules/theme';
38
38
  export * from './modules/validation';
39
+ export * from './modules/test';
39
40
  export * from './components/NoRecordMessage';
package/lib/index.js CHANGED
@@ -52,4 +52,5 @@ __exportStar(require("./modules/format"), exports);
52
52
  __exportStar(require("./modules/layout"), exports);
53
53
  __exportStar(require("./modules/theme"), exports);
54
54
  __exportStar(require("./modules/validation"), exports);
55
+ __exportStar(require("./modules/test"), exports);
55
56
  __exportStar(require("./components/NoRecordMessage"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.14.1",
3
+ "version": "4.14.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [