secullum-react-native-ui 4.3.8-beta.0 → 4.3.8-beta.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.
|
@@ -133,9 +133,12 @@ class DropDown extends React.Component {
|
|
|
133
133
|
const theme = theme_1.getTheme();
|
|
134
134
|
const { icon } = this.props;
|
|
135
135
|
const styles = react_native_1.StyleSheet.create({
|
|
136
|
-
container: Object.assign({ paddingHorizontal: 16, paddingVertical: 8, borderWidth: 1, borderColor: theme.borderColor1, borderRadius: 3 }, (icon
|
|
137
|
-
? {
|
|
138
|
-
|
|
136
|
+
container: Object.assign({ paddingHorizontal: 16, paddingVertical: 8, borderWidth: 1, borderColor: theme.borderColor1, borderRadius: 3 }, (icon
|
|
137
|
+
? {
|
|
138
|
+
flexDirection: 'row',
|
|
139
|
+
minHeight: react_native_1.Platform.OS === 'web' || react_native_1.Platform.OS === 'ios' ? 40 : 46
|
|
140
|
+
}
|
|
141
|
+
: {})),
|
|
139
142
|
label: {
|
|
140
143
|
color: theme.textColor2,
|
|
141
144
|
fontFamily: theme.fontFamily3,
|
|
@@ -213,7 +216,7 @@ class DropDown extends React.Component {
|
|
|
213
216
|
paddingVertical: 8,
|
|
214
217
|
fontSize: 26
|
|
215
218
|
},
|
|
216
|
-
|
|
219
|
+
iconOnLine: {
|
|
217
220
|
color: theme.textColor2,
|
|
218
221
|
fontSize: layout_1.isTablet() ? 21 : 19,
|
|
219
222
|
marginRight: 10,
|
|
@@ -233,7 +236,7 @@ class DropDown extends React.Component {
|
|
|
233
236
|
const theme = theme_1.getTheme();
|
|
234
237
|
return (React.createElement(react_native_1.TouchableWithoutFeedback, { onPress: () => this.setState({ modalOpen: true }), disabled: disabled },
|
|
235
238
|
React.createElement(react_native_1.View, { nativeID: nativeID, style: [styles.container, style, disabled ? styles.readonly : null] },
|
|
236
|
-
icon ? (React.createElement(FontAwesome_1.default, { name: icon, style: styles.
|
|
239
|
+
icon ? (React.createElement(FontAwesome_1.default, { name: icon, style: styles.iconOnLine })) : (React.createElement(react_native_1.Text, { style: [styles.label, labelStyle] }, label)),
|
|
237
240
|
this.renderClosedDropDown(selectedItem, inputStyle),
|
|
238
241
|
React.createElement(Modal_1.Modal, { visible: modalOpen, onRequestClose: () => this.setState({ modalOpen: false }), overlayStyle: styles.modalOverlay },
|
|
239
242
|
React.createElement(react_native_1.TouchableWithoutFeedback, null,
|
|
@@ -58,7 +58,7 @@ export declare class TextBox extends React.Component<TextBoxProperties> {
|
|
|
58
58
|
icon: {
|
|
59
59
|
color: string;
|
|
60
60
|
fontSize: number;
|
|
61
|
-
|
|
61
|
+
marginRight: number;
|
|
62
62
|
alignSelf: "center";
|
|
63
63
|
minHeight: number;
|
|
64
64
|
};
|
|
@@ -69,6 +69,7 @@ export declare class TextBox extends React.Component<TextBoxProperties> {
|
|
|
69
69
|
lineHeight: number;
|
|
70
70
|
};
|
|
71
71
|
input: {
|
|
72
|
+
flex: number;
|
|
72
73
|
outline: string;
|
|
73
74
|
color: string;
|
|
74
75
|
fontFamily: string;
|
|
@@ -78,6 +79,7 @@ export declare class TextBox extends React.Component<TextBoxProperties> {
|
|
|
78
79
|
padding: number;
|
|
79
80
|
margin: number;
|
|
80
81
|
} | {
|
|
82
|
+
flex: number;
|
|
81
83
|
color: string;
|
|
82
84
|
fontFamily: string;
|
|
83
85
|
fontWeight: "normal";
|
|
@@ -17,7 +17,7 @@ class TextBox extends React.Component {
|
|
|
17
17
|
icon: {
|
|
18
18
|
color: theme.textColor2,
|
|
19
19
|
fontSize: layout_1.isTablet() ? 21 : 19,
|
|
20
|
-
|
|
20
|
+
marginRight: 10,
|
|
21
21
|
alignSelf: 'center',
|
|
22
22
|
minHeight: 22
|
|
23
23
|
},
|
|
@@ -27,7 +27,7 @@ class TextBox extends React.Component {
|
|
|
27
27
|
fontSize: layout_1.isTablet() ? 15 : 12,
|
|
28
28
|
lineHeight: 16
|
|
29
29
|
},
|
|
30
|
-
input: Object.assign({ color: theme.textColor1, fontFamily: this.props.value ? theme.fontFamily1 : theme.fontFamily3, fontWeight: 'normal', fontSize: 16, minHeight: 22, padding: 0, margin: 0 }, (react_native_1.Platform.OS === 'web' ? { outline: 'none' } : {})),
|
|
30
|
+
input: Object.assign({ color: theme.textColor1, fontFamily: this.props.value ? theme.fontFamily1 : theme.fontFamily3, fontWeight: 'normal', fontSize: 16, minHeight: 22, padding: 0, margin: 0 }, (react_native_1.Platform.OS === 'web' ? { outline: 'none' } : {}), { flex: 1 }),
|
|
31
31
|
readonly: {
|
|
32
32
|
backgroundColor: theme.disabledColor
|
|
33
33
|
}
|