secullum-react-native-ui 4.13.0 → 4.14.1
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
|
@@ -50,8 +50,8 @@ class CardHeader extends React.Component {
|
|
|
50
50
|
render() {
|
|
51
51
|
const { title, titleStyle, onHelpPress, nativeID, containerStyle, numberOfLines } = this.props;
|
|
52
52
|
const styles = this.getStyles();
|
|
53
|
-
return (React.createElement(react_native_1.View, { nativeID: nativeID,
|
|
54
|
-
React.createElement(react_native_1.Text, { style: [styles.title, titleStyle], numberOfLines: numberOfLines }, title),
|
|
53
|
+
return (React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, containerStyle] },
|
|
54
|
+
React.createElement(react_native_1.Text, { testID: (0, test_1.getTestID)(nativeID), style: [styles.title, titleStyle], numberOfLines: numberOfLines }, title),
|
|
55
55
|
onHelpPress && (React.createElement(react_native_1.TouchableOpacity, { onPress: onHelpPress, style: styles.help },
|
|
56
56
|
React.createElement(FontAwesome_1.default, { name: "question-circle", style: styles.helpIcon })))));
|
|
57
57
|
}
|
|
@@ -142,7 +142,7 @@ class DropDown extends React.Component {
|
|
|
142
142
|
};
|
|
143
143
|
this.getStyles = () => {
|
|
144
144
|
const theme = (0, theme_1.getTheme)();
|
|
145
|
-
const { icon } = this.props;
|
|
145
|
+
const { icon, arrowColor } = this.props;
|
|
146
146
|
const styles = react_native_1.StyleSheet.create({
|
|
147
147
|
container: Object.assign({ paddingHorizontal: 16, paddingVertical: 8, borderWidth: 1, borderColor: theme.borderColor1, borderRadius: 3 }, (icon
|
|
148
148
|
? {
|
|
@@ -172,14 +172,14 @@ class DropDown extends React.Component {
|
|
|
172
172
|
fontSize: 16
|
|
173
173
|
},
|
|
174
174
|
seta: {
|
|
175
|
-
color: theme.textColor1,
|
|
175
|
+
color: arrowColor ? arrowColor : theme.textColor1,
|
|
176
176
|
fontSize: 16,
|
|
177
177
|
position: 'absolute',
|
|
178
178
|
bottom: 10,
|
|
179
179
|
right: 16
|
|
180
180
|
},
|
|
181
181
|
setaIcone: {
|
|
182
|
-
color: theme.textColor1,
|
|
182
|
+
color: arrowColor ? arrowColor : theme.textColor1,
|
|
183
183
|
fontSize: 16,
|
|
184
184
|
position: 'absolute',
|
|
185
185
|
bottom: 25,
|