2019-06-25 22:20:24 +02:00
|
|
|
// @flow
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
import variable from './../variables/platform';
|
2019-06-25 22:20:24 +02:00
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
export default (variables /* : * */ = variable) => {
|
2019-06-25 22:20:24 +02:00
|
|
|
const inputGroupTheme = {
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.Icon': {
|
2019-06-25 22:20:24 +02:00
|
|
|
fontSize: 24,
|
|
|
|
color: variables.sTabBarActiveTextColor,
|
|
|
|
paddingHorizontal: 5
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
2019-06-25 22:20:24 +02:00
|
|
|
fontSize: 24,
|
|
|
|
color: variables.sTabBarActiveTextColor,
|
|
|
|
paddingHorizontal: 5
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.Input': {
|
2019-06-25 22:20:24 +02:00
|
|
|
height: variables.inputHeightBase,
|
|
|
|
color: variables.inputColor,
|
|
|
|
paddingLeft: 5,
|
|
|
|
paddingRight: 5,
|
|
|
|
flex: 1,
|
|
|
|
fontSize: variables.inputFontSize,
|
|
|
|
lineHeight: variables.inputLineHeight
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.underline': {
|
|
|
|
'.success': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.error': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
|
|
|
paddingLeft: 5,
|
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderTopWidth: 0,
|
|
|
|
borderRightWidth: 0,
|
|
|
|
borderLeftWidth: 0,
|
|
|
|
borderColor: variables.inputBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.regular': {
|
|
|
|
'.success': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.error': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
|
|
|
paddingLeft: 5,
|
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderColor: variables.inputBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.rounded': {
|
|
|
|
'.success': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.error': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
|
|
|
paddingLeft: 5,
|
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderRadius: variables.inputGroupRoundedBorderRadius,
|
|
|
|
borderColor: variables.inputBorderColor
|
|
|
|
},
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
'.success': {
|
|
|
|
'NativeBase.Icon': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.rounded': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderRadius: 30,
|
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.regular': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.underline': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderTopWidth: 0,
|
|
|
|
borderRightWidth: 0,
|
|
|
|
borderLeftWidth: 0,
|
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
|
|
|
borderColor: variables.inputSuccessBorderColor
|
|
|
|
},
|
|
|
|
|
2020-01-28 20:07:21 +01:00
|
|
|
'.error': {
|
|
|
|
'NativeBase.Icon': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.inputErrorBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
2019-06-25 22:20:24 +02:00
|
|
|
color: variables.inputErrorBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.rounded': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderRadius: 30,
|
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.regular': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.underline': {
|
2019-06-25 22:20:24 +02:00
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderTopWidth: 0,
|
|
|
|
borderRightWidth: 0,
|
|
|
|
borderLeftWidth: 0,
|
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
|
|
|
borderColor: variables.inputErrorBorderColor
|
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'.disabled': {
|
|
|
|
'NativeBase.Icon': {
|
|
|
|
color: '#384850'
|
2019-06-25 22:20:24 +02:00
|
|
|
},
|
2020-01-28 20:07:21 +01:00
|
|
|
'NativeBase.IconNB': {
|
|
|
|
color: '#384850'
|
2019-06-25 22:20:24 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
paddingLeft: 5,
|
|
|
|
borderWidth: variables.borderWidth,
|
|
|
|
borderTopWidth: 0,
|
|
|
|
borderRightWidth: 0,
|
|
|
|
borderLeftWidth: 0,
|
|
|
|
borderColor: variables.inputBorderColor,
|
2020-01-28 20:07:21 +01:00
|
|
|
backgroundColor: 'transparent',
|
|
|
|
flexDirection: 'row',
|
|
|
|
alignItems: 'center'
|
2019-06-25 22:20:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
return inputGroupTheme;
|
|
|
|
};
|