secullum-react-native-ui 4.12.0 → 4.13.0
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/lib/components/Card.js
CHANGED
|
@@ -17,6 +17,7 @@ const react_native_elevated_view_1 = require("react-native-elevated-view");
|
|
|
17
17
|
const FontAwesome_1 = require("react-native-vector-icons/FontAwesome");
|
|
18
18
|
const theme_1 = require("../modules/theme");
|
|
19
19
|
const layout_1 = require("../modules/layout");
|
|
20
|
+
const test_1 = require("../modules/test");
|
|
20
21
|
const react_native_1 = require("react-native");
|
|
21
22
|
class CardHeader extends React.Component {
|
|
22
23
|
constructor() {
|
|
@@ -49,7 +50,7 @@ class CardHeader extends React.Component {
|
|
|
49
50
|
render() {
|
|
50
51
|
const { title, titleStyle, onHelpPress, nativeID, containerStyle, numberOfLines } = this.props;
|
|
51
52
|
const styles = this.getStyles();
|
|
52
|
-
return (React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, containerStyle] },
|
|
53
|
+
return (React.createElement(react_native_1.View, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [styles.container, containerStyle] },
|
|
53
54
|
React.createElement(react_native_1.Text, { style: [styles.title, titleStyle], numberOfLines: numberOfLines }, title),
|
|
54
55
|
onHelpPress && (React.createElement(react_native_1.TouchableOpacity, { onPress: onHelpPress, style: styles.help },
|
|
55
56
|
React.createElement(FontAwesome_1.default, { name: "question-circle", style: styles.helpIcon })))));
|
|
@@ -58,15 +59,15 @@ class CardHeader extends React.Component {
|
|
|
58
59
|
exports.CardHeader = CardHeader;
|
|
59
60
|
class CardFooter extends React.Component {
|
|
60
61
|
render() {
|
|
61
|
-
const _a = this.props, { children } = _a, otherProps = __rest(_a, ["children"]);
|
|
62
|
-
return (React.createElement(react_native_1.View, Object.assign({ style: [cardFooterStyles.container] }, otherProps), children));
|
|
62
|
+
const _a = this.props, { children, nativeID } = _a, otherProps = __rest(_a, ["children", "nativeID"]);
|
|
63
|
+
return (React.createElement(react_native_1.View, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [cardFooterStyles.container] }, otherProps), children));
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
exports.CardFooter = CardFooter;
|
|
66
67
|
class CardSection extends React.Component {
|
|
67
68
|
render() {
|
|
68
|
-
const _a = this.props, { children, style } = _a, otherProps = __rest(_a, ["children", "style"]);
|
|
69
|
-
return (React.createElement(react_native_1.View, Object.assign({ style: [cardSectionStyles.container, style] }, otherProps), children));
|
|
69
|
+
const _a = this.props, { children, style, nativeID } = _a, otherProps = __rest(_a, ["children", "style", "nativeID"]);
|
|
70
|
+
return (React.createElement(react_native_1.View, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [cardSectionStyles.container, style] }, otherProps), children));
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
exports.CardSection = CardSection;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
exports.TextBox = void 0;
|
|
4
15
|
const React = require("react");
|
|
@@ -41,7 +52,10 @@ class TextBox extends React.Component {
|
|
|
41
52
|
this.input.focus();
|
|
42
53
|
}
|
|
43
54
|
};
|
|
44
|
-
this.renderInput = (props) =>
|
|
55
|
+
this.renderInput = (props) => {
|
|
56
|
+
const { nativeID } = props, otherProps = __rest(props, ["nativeID"]);
|
|
57
|
+
return (React.createElement(react_native_1.TextInput, Object.assign({ nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID) }, otherProps)));
|
|
58
|
+
};
|
|
45
59
|
}
|
|
46
60
|
render() {
|
|
47
61
|
const { label, style, labelStyle, editable, inputRef, renderInput, icon, onPress } = this.props;
|
|
@@ -7,6 +7,7 @@ const ImageButton_1 = require("./ImageButton");
|
|
|
7
7
|
const format_1 = require("../modules/format");
|
|
8
8
|
const layout_1 = require("../modules/layout");
|
|
9
9
|
const theme_1 = require("../modules/theme");
|
|
10
|
+
const test_1 = require("../modules/test");
|
|
10
11
|
const react_native_1 = require("react-native");
|
|
11
12
|
class TimePicker extends React.Component {
|
|
12
13
|
constructor() {
|
|
@@ -97,7 +98,7 @@ class TimePicker extends React.Component {
|
|
|
97
98
|
}
|
|
98
99
|
return (React.createElement(React.Fragment, null,
|
|
99
100
|
React.createElement(react_native_1.TouchableWithoutFeedback, { disabled: disabled, onPress: this.handlePress },
|
|
100
|
-
React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, style, disabled ? styles.readonly : null] },
|
|
101
|
+
React.createElement(react_native_1.View, { nativeID: nativeID, testID: (0, test_1.getTestID)(nativeID), style: [styles.container, style, disabled ? styles.readonly : null] },
|
|
101
102
|
React.createElement(react_native_1.View, null,
|
|
102
103
|
React.createElement(react_native_1.Text, { style: styles.label }, label),
|
|
103
104
|
React.createElement(react_native_1.Text, { style: styles.value }, value)),
|